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

Thermal: Intel SoC DTS: Change interrupt request behavior

The interrupt request call in Intel SoC DTS driver may fail if
there is no underlying BIOS support. However, the user space
thermal daemon can still use the thermal zones created by the
SoC DTS driver in polling mode, therefore, instead of bailing
out on interrupt request failures, it is better just to log
a warning message and continue the init process.

Signed-off-by: Brian Bian <brian.bian@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>

authored by

Brian Bian and committed by
Zhang Rui
68b2440b 39da7c50

+6 -3
+6 -3
drivers/thermal/intel_soc_dts_thermal.c
··· 73 73 IRQF_TRIGGER_RISING | IRQF_ONESHOT, 74 74 "soc_dts", soc_dts); 75 75 if (err) { 76 - pr_err("request_threaded_irq ret %d\n", err); 77 - goto error_irq; 76 + /* 77 + * Do not just error out because the user space thermal 78 + * daemon such as DPTF may use polling instead of being 79 + * interrupt driven. 80 + */ 81 + pr_warn("request_threaded_irq ret %d\n", err); 78 82 } 79 83 } 80 84 ··· 92 88 error_trips: 93 89 if (soc_dts_thres_irq) 94 90 free_irq(soc_dts_thres_irq, soc_dts); 95 - error_irq: 96 91 intel_soc_dts_iosf_exit(soc_dts); 97 92 98 93 return err;