]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (axi-fan-control) Handle irqs in natural order
authorNuno Sá <nuno.sa@analog.com>
Wed, 11 Aug 2021 11:48:52 +0000 (13:48 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 17 Aug 2021 21:54:26 +0000 (14:54 -0700)
commit4a0d9177ed8137fe47fcd90764679df3cef42f97
tree77a654522d3e2523ffb274bd09e5cfd61a4d0d19
parentf9a80edd2bda2f67e5fa1e2e6b5a5c85c0b3a6b1
hwmon: (axi-fan-control) Handle irqs in natural order

The core will now start out of reset at boot as soon as clocking is
available. Hence, by the time we unmask the interrupts we already might
have some of them set. Thus, it's important to handle them in the
natural order the core generates them. Otherwise, we could process
'ADI_IRQ_SRC_PWM_CHANGED' before 'ADI_IRQ_SRC_TEMP_INCREASE' and
erroneously set 'update_tacho_params' to true.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210811114853.159298-3-nuno.sa@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/axi-fan-control.c