mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 11:04:44 +08:00
b76d26d69e
There is no reason to assume that the IRQ rising edge (indicating that
the device start up phase is done) will happen after we request the IRQ.
If the device is already up by the time we request it, the call to
'wait_for_completion_timeout()' will timeout and we will fail the device
probe even though there's nothing wrong.
Fix it by just polling the status register until we get the indication that
the device is up and running. As a side effect of this fix, requesting the
IRQ is also moved to after the setup function.
Fixes:
|
||
---|---|---|
.. | ||
hid-sensor-temperature.c | ||
iqs620at-temp.c | ||
Kconfig | ||
ltc2983.c | ||
Makefile | ||
max31856.c | ||
maxim_thermocouple.c | ||
mlx90614.c | ||
mlx90632.c | ||
tmp006.c | ||
tmp007.c | ||
tmp117.c | ||
tsys01.c | ||
tsys02d.c |