OSDN Git Service

hwmon: (pmbus/core) Request threaded interrupt with IRQF_ONESHOT
authorGuenter Roeck <linux@roeck-us.net>
Wed, 12 Apr 2023 18:11:17 +0000 (11:11 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 19 Apr 2023 14:08:40 +0000 (07:08 -0700)
commitab3e00416a0078be6d4126edc139536286d816e2
treee44abc5ee2800ffd409325aa1369acb2dac44830
parent5dcd53e315b7cd3efb591227c281f979bebd2155
hwmon: (pmbus/core) Request threaded interrupt with IRQF_ONESHOT

0-day rightfully complains:

drivers/hwmon/pmbus/pmbus_core.c:3164:7-32: WARNING:
Threaded IRQ with no primary handler requested without IRQF_ONESHOT
(unless it is nested IRQ)

Without IRQF_ONESHOT, the primary interrupt may end up in a loop,
and the threaded interrupt handler may never execute. Request interrupt
with IRQF_ONESHOT and assume that the interrupt will cleared and re-enabled
by clearing the fault condition in the threaded interrupt handler.

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/linux-hwmon/6436efbb.08+e+yEDqvRxvHDP%25lkp@intel.com/T/#u
Cc: Patrick Rudolph <patrick.rudolph@9elements.com>
Cc: Naresh Solanki <Naresh.Solanki@9elements.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c