mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-20 16:13:15 +00:00
![]() Accidentally noticed, that this driver is the only user of
while (time_after(jiffies...)).
It looks like typo, because likely this while loop will finish after 1st
iteration, because time_after() returns true when 1st argument _is after_
2nd one.
There is one possible problem with this poll loop: the scheduler could put
the thread to sleep, and it does not get woken up for
OCELOT_FDMA_CH_SAFE_TIMEOUT_US. During that time, the hardware has done
its thing, but you exit the while loop and return -ETIMEDOUT.
Fix it by using sane poll API that avoids all problems described above
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ocelot.c | ||
ocelot.h | ||
ocelot_devlink.c | ||
ocelot_fdma.c | ||
ocelot_fdma.h | ||
ocelot_flower.c | ||
ocelot_io.c | ||
ocelot_mrp.c | ||
ocelot_net.c | ||
ocelot_police.c | ||
ocelot_police.h | ||
ocelot_ptp.c | ||
ocelot_qs.h | ||
ocelot_rew.h | ||
ocelot_vcap.c | ||
ocelot_vcap.h | ||
ocelot_vsc7514.c | ||
vsc7514_regs.c |