aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2020-08-18 16:14:39 +0000
committerDavid S. Miller <[email protected]>2020-08-19 23:25:29 +0000
commit9553b62c1dd27df67ab2f52ec8a3bc3501887619 (patch)
tree2ac058fe257d0d119980644369a968582dcf608f /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
parentptp: ptp_clockmatrix: use i2c_master_send for i2c write (diff)
downloadkernel-9553b62c1dd27df67ab2f52ec8a3bc3501887619.tar.gz
kernel-9553b62c1dd27df67ab2f52ec8a3bc3501887619.zip
net: atlantic: Use readx_poll_timeout() for large timeout
Commit 8dcf2ad39fdb2 ("net: atlantic: add hwmon getter for MAC temperature") implemented a read callback with an udelay(10000U). This fails to compile on ARM because the delay is >1ms. I doubt that it is needed to spin for 10ms even if possible on x86. >From looking at the code, the context appears to be preemptible so using usleep() should work and avoid busy spinning. Use readx_poll_timeout() in the poll loop. Fixes: 8dcf2ad39fdb2 ("net: atlantic: add hwmon getter for MAC temperature") Cc: Mark Starovoytov <[email protected]> Cc: Igor Russkikh <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Acked-by: Guenter Roeck <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions