diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-08-18 19:14:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-20 02:25:29 +0300 |
commit | 9553b62c1dd27df67ab2f52ec8a3bc3501887619 (patch) | |
tree | 2ac058fe257d0d119980644369a968582dcf608f /drivers/pci/hotplug/acpiphp_glue.c | |
parent | 957ff4278e0db34f56c2bc121fdd6393e4523ef2 (diff) | |
download | linux-9553b62c1dd27df67ab2f52ec8a3bc3501887619.tar.xz |
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 <mstarovoitov@marvell.com>
Cc: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_glue.c')
0 files changed, 0 insertions, 0 deletions