linux/drivers/thermal
Aravind Anilraj 8aa807a89d thermal: intel: int340x: Check return value of ptc_create_groups()
proc_thermal_ptc_add() ignores the return value of ptc_create_groups()
causing the driver to silenty continue even if sysfs group creation
fails.

The thermal control interface would be unavailable with no indication
of failure.

Check the return value and on failure clean up any sysfs groups that
were successfully created before the error, then propagate the error to
the caller which already handles it correctly via goto err_rem_rapl.

Signed-off-by: Aravind Anilraj <aravindanilraj0702@gmail.com>
Link: https://patch.msgid.link/20260329070642.10721-3-aravindanilraj0702@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2026-05-26 19:27:53 +02:00
..
broadcom thermal/drivers/brcmstb_thermal: Use max to simplify brcmstb_get_temp 2026-04-02 19:23:54 +02:00
intel thermal: intel: int340x: Check return value of ptc_create_groups() 2026-05-26 19:27:53 +02:00
mediatek thermal/drivers/mediatek/lvts_thermal: Add mt7987 support 2026-01-20 20:55:03 +01:00
qcom thermal/qcom/lmh: Replace IRQF_ONESHOT with IRQF_NO_THREAD 2026-02-01 17:37:16 +01:00
renesas thermal: renesas: rzg3e: Remove stale @trim_offset kernel-doc entry 2026-04-09 21:47:15 +02:00
samsung thermal: Switch back to struct platform_driver::remove() 2024-11-13 16:17:57 +01:00
st thermal/drivers/stm32: Use predefined HZ_PER_MHZ instead of a custom one 2026-01-21 16:29:23 +01:00
tegra thermal/drivers/tegra: Add Tegra114 specific SOCTHERM driver 2025-09-25 22:11:00 +02:00
testing Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
ti-soc-thermal More thermal control updates for 6.13-rc1 2024-11-22 19:43:18 -08:00
airoha_thermal.c thermal/drivers/airoha: Fix spelling mistake "calibrarion" -> "calibration" 2025-05-23 17:01:42 +02:00
amlogic_thermal.c thermal/drivers/amlogic: Rename Uptat to uptat to follow kernel coding style 2025-05-16 12:50:01 +02:00
armada_thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
cpufreq_cooling.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
cpuidle_cooling.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
da9062-thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
db8500_thermal.c thermal/drivers/db8500: Remove redundant of_match_ptr() 2023-08-16 12:09:19 +02:00
devfreq_cooling.c thermal: devfreq_cooling: avoid unnecessary kfree of freq_table 2026-03-23 14:51:06 +01:00
dove_thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
gov_bang_bang.c thermal: core: Rename function argument related to trip crossing 2025-01-17 18:48:58 +01:00
gov_fair_share.c thermal: core: Introduce thermal_cdev_update_nocheck() 2024-10-23 11:57:11 +02:00
gov_power_allocator.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
gov_step_wise.c thermal: gov_step_wise: Allow cooling level to be reduced earlier 2025-09-04 21:28:01 +02:00
gov_user_space.c thermal: core: Rename function argument related to trip crossing 2025-01-17 18:48:58 +01:00
hisi_thermal.c thermal: hisi: Use kcalloc() instead of kzalloc() with multiplication 2025-02-26 20:55:42 +01:00
imx_sc_thermal.c thermal/drivers/imx_sc_thermal: Use dev_err_probe 2024-09-04 15:31:29 +02:00
imx_thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
imx8mm_thermal.c thermal: Switch back to struct platform_driver::remove() 2024-11-13 16:17:57 +01:00
imx91_thermal.c thermal/drivers/imx91: Add hwmon support 2026-03-10 00:12:19 +01:00
k3_bandgap.c thermal: Switch back to struct platform_driver::remove() 2024-11-13 16:17:57 +01:00
k3_j72xx_bandgap.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig thermal/drivers/imx91: Add support for i.MX91 thermal monitoring unit 2025-11-26 15:51:28 +01:00
khadas_mcu_fan.c
kirkwood_thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
loongson2_thermal.c thermal/drivers/loongson2: Constify struct thermal_zone_device_ops 2025-07-15 15:23:38 +02:00
Makefile thermal/drivers/imx91: Add support for i.MX91 thermal monitoring unit 2025-11-26 15:51:28 +01:00
max77620_thermal.c thermal/drivers/max77620: Remove duplicate error message 2023-10-15 23:40:10 +02:00
pcie_cooling.c thermal: Add PCIe cooling driver 2024-11-16 10:09:30 -06:00
qoriq_thermal.c thermal/drivers/qoriq: Power down TMU on system suspend 2025-03-25 20:52:03 +01:00
rockchip_thermal.c thermal/drivers/rockchip: Shut up GRF warning 2025-09-25 22:11:00 +02:00
spear_thermal.c thermal/drivers/spear: Fix error condition for reading st,thermal-flags 2026-03-27 11:26:43 +01:00
sprd_thermal.c thermal/drivers/sprd: Use min instead of clamp in sprd_thm_temp_to_rawdata 2026-03-10 11:54:12 +01:00
sun8i_thermal.c thermal: sun8i: Use scoped device node handling to simplify error paths 2024-11-26 13:28:43 +01:00
thermal_core.c thermal: core: Suspend thermal zones later and resume them earlier 2026-04-08 12:30:31 +02:00
thermal_core.h thermal: core: thermal_core.h: fix all kernel-doc warnings 2026-01-28 22:07:27 +01:00
thermal_debugfs.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
thermal_debugfs.h thermal/debugfs: Do not extend mitigation episodes beyond system resume 2024-06-11 21:04:00 +02:00
thermal_helpers.c thermal: core: Add and use cooling device guard 2024-10-24 14:48:23 +02:00
thermal_hwmon.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
thermal_hwmon.h
thermal_mmio.c
thermal_netlink.c thermal: netlink: Add the commands and the events for the thresholds 2024-10-24 14:54:01 +02:00
thermal_netlink.h thermal: netlink: Add the commands and the events for the thresholds 2024-10-24 14:54:01 +02:00
thermal_of.c thermal/of: Add OF node address to output message 2026-03-10 00:12:19 +01:00
thermal_sysfs.c thermal: sysfs: Use str_enabled_disabled() helper in mode_show() 2026-03-14 12:15:56 +01:00
thermal_thresholds.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
thermal_thresholds.h thermal: netlink: Add the commands and the events for the thresholds 2024-10-24 14:54:01 +02:00
thermal_trace_ipa.h thermal: core: Make struct thermal_zone_device definition internal 2024-04-08 16:01:20 +02:00
thermal_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
thermal_trip.c thermal: core: Relocate functions that update trip points 2024-10-24 17:15:07 +02:00
thermal-generic-adc.c thermal/drivers/thermal-generic-adc: Add temperature sensor channel 2025-09-25 22:11:00 +02:00
uniphier_thermal.c thermal: Switch back to struct platform_driver::remove() 2024-11-13 16:17:57 +01:00