From: Sebastian Andrzej Siewior <bige...@linutronix.de> Date: Tue, 18 Aug 2020 18:14:39 +0200
> 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. > > Cc: Mark Starovoytov <mstarovoi...@marvell.com> > Cc: Igor Russkikh <irussk...@marvell.com> > Signed-off-by: Sebastian Andrzej Siewior <sebast...@breakpoint.cc> Applied, thanks.