]> www.infradead.org Git - nvme.git/commit
thermal: intel: int340x: Allow limited thermal MSI support
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 23 Jul 2024 14:02:27 +0000 (07:02 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Jul 2024 14:36:51 +0000 (16:36 +0200)
commitb85a2d300a37641456c238591a056404436675c2
tree33ef6c5e281869ef7f3598af057e45dc5cbeb2bb
parentb630a04121519c0f93f9cc8994147191cc3c17b4
thermal: intel: int340x: Allow limited thermal MSI support

On some Lunar Lake pre-production systems, not all the MSI thermal
vectors are valid. In that case instead of failing module load, continue
with partial thermal interrupt support.

pci_alloc_irq_vectors() can return less than expected maximum vectors.
In that case call devm_request_threaded_irq() only for current maximum
vectors.

Fixes: 7a9a8c5faf41 ("thermal: intel: int340x: Support MSI interrupt for Lunar Lake")
Reported-by: Yijun Shen <Yijun.Shen@dell.com>
Tested-by: Yijun Shen <Yijun.Shen@dell.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Link: https://patch.msgid.link/20240723140228.865919-3-srinivas.pandruvada@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c