Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (abx500) drop the use of IRQF_NO_SUSPEND

The description in the driver states: "ABX500 does not provide auto ADC,
so to monitor the required temperatures, a periodic work is used. It is
more important to not wake up the CPU... If the chip gets too hot during
a sleep state it's most likely due to external factors, such as the
surrounding temperature and nothing can be done in S/W."

So it makes no sense to keep IRQs enabled as it need not be wakeup
source. This patch removes the use of IRQF_NO_SUSPEND flag

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Sudeep Holla and committed by
Guenter Roeck
47e4b5e1 791432cf

+1 -1
+1 -1
drivers/hwmon/abx500.c
··· 377 377 } 378 378 379 379 ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, 380 - abx500_temp_irq_handler, IRQF_NO_SUSPEND, "abx500-temp", pdev); 380 + abx500_temp_irq_handler, 0, "abx500-temp", pdev); 381 381 if (ret < 0) 382 382 dev_err(&pdev->dev, "Request threaded irq failed (%d)\n", ret); 383 383