Skip to content

Commit 56019d4

Browse files
committed
Merge tag 'thermal-6.18-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull more thermal control updates from Rafael Wysocki: "Fix RZ/G3E driver introduction fall-out (Geert Uytterhoeven) and improve the compilation and installation of the thermal library for user space (Emil Dahl Juhl and Sascha Hauer)" * tag 'thermal-6.18-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: tools: lib: thermal: expose thermal_exit symbols tools: lib: thermal: don't preserve owner in install tools: lib: thermal: use pkg-config to locate libnl3 thermal: renesas: Fix RZ/G3E fall-out
2 parents 89b59f0 + dea00c2 commit 56019d4

5 files changed

Lines changed: 25 additions & 18 deletions

File tree

MAINTAINERS

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21947,20 +21947,20 @@ S: Maintained
2194721947
F: Documentation/devicetree/bindings/iio/potentiometer/renesas,x9250.yaml
2194821948
F: drivers/iio/potentiometer/x9250.c
2194921949

21950-
RENESAS RZ/G3S THERMAL SENSOR UNIT DRIVER
21951-
M: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
21952-
L: linux-pm@vger.kernel.org
21953-
S: Maintained
21954-
F: Documentation/devicetree/bindings/thermal/renesas,r9a08g045-tsu.yaml
21955-
F: drivers/thermal/renesas/rzg3s_thermal.c
21956-
2195721950
RENESAS RZ/G3E THERMAL SENSOR UNIT DRIVER
2195821951
M: John Madieu <john.madieu.xa@bp.renesas.com>
2195921952
L: linux-pm@vger.kernel.org
2196021953
S: Maintained
2196121954
F: Documentation/devicetree/bindings/thermal/renesas,r9a09g047-tsu.yaml
2196221955
F: drivers/thermal/renesas/rzg3e_thermal.c
2196321956

21957+
RENESAS RZ/G3S THERMAL SENSOR UNIT DRIVER
21958+
M: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
21959+
L: linux-pm@vger.kernel.org
21960+
S: Maintained
21961+
F: Documentation/devicetree/bindings/thermal/renesas,r9a08g045-tsu.yaml
21962+
F: drivers/thermal/renesas/rzg3s_thermal.c
21963+
2196421964
RESET CONTROLLER FRAMEWORK
2196521965
M: Philipp Zabel <p.zabel@pengutronix.de>
2196621966
S: Maintained

drivers/thermal/renesas/Kconfig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ config RZG2L_THERMAL
2727
Enable this to plug the RZ/G2L thermal sensor driver into the Linux
2828
thermal framework.
2929

30+
config RZG3E_THERMAL
31+
tristate "Renesas RZ/G3E thermal driver"
32+
depends on ARCH_RENESAS || COMPILE_TEST
33+
help
34+
Enable this to plug the RZ/G3E thermal sensor driver into the Linux
35+
thermal framework.
36+
3037
config RZG3S_THERMAL
3138
tristate "Renesas RZ/G3S thermal driver"
3239
depends on ARCH_R9A08G045 || COMPILE_TEST
3340
depends on OF && IIO && RZG2L_ADC
3441
help
3542
Enable this to plug the RZ/G3S thermal sensor driver into the Linux
3643
thermal framework.
37-
38-
config RZG3E_THERMAL
39-
tristate "Renesas RZ/G3E thermal driver"
40-
depends on ARCH_RENESAS || COMPILE_TEST
41-
help
42-
Enable this to plug the RZ/G3E thermal sensor driver into the Linux
43-
thermal framework.

drivers/thermal/renesas/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ obj-$(CONFIG_RCAR_THERMAL) += rcar_thermal.o
55
obj-$(CONFIG_RZG2L_THERMAL) += rzg2l_thermal.o
66
obj-$(CONFIG_RZG3E_THERMAL) += rzg3e_thermal.o
77
obj-$(CONFIG_RZG3S_THERMAL) += rzg3s_thermal.o
8-

tools/lib/thermal/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ else
4646
CFLAGS := -g -Wall
4747
endif
4848

49+
NL3_CFLAGS = $(shell pkg-config --cflags libnl-3.0 2>/dev/null)
50+
ifeq ($(NL3_CFLAGS),)
51+
NL3_CFLAGS = -I/usr/include/libnl3
52+
endif
53+
4954
INCLUDES = \
50-
-I/usr/include/libnl3 \
5155
-I$(srctree)/tools/lib/thermal/include \
5256
-I$(srctree)/tools/lib/ \
5357
-I$(srctree)/tools/include \
@@ -59,6 +63,7 @@ INCLUDES = \
5963
override CFLAGS += $(EXTRA_WARNINGS)
6064
override CFLAGS += -Werror -Wall
6165
override CFLAGS += -fPIC
66+
override CFLAGS += $(NL3_CFLAGS)
6267
override CFLAGS += $(INCLUDES)
6368
override CFLAGS += -fvisibility=hidden
6469
override CFGLAS += -Wl,-L.
@@ -134,7 +139,7 @@ endef
134139
install_lib: libs
135140
$(call QUIET_INSTALL, $(LIBTHERMAL_ALL)) \
136141
$(call do_install_mkdir,$(libdir_SQ)); \
137-
cp -fpR $(LIBTHERMAL_ALL) $(DESTDIR)$(libdir_SQ)
142+
cp -fR --preserve=mode,timestamp $(LIBTHERMAL_ALL) $(DESTDIR)$(libdir_SQ)
138143

139144
install_headers:
140145
$(call QUIET_INSTALL, headers) \

tools/lib/thermal/libthermal.map

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
LIBTHERMAL_0.0.1 {
22
global:
3-
thermal_init;
43
for_each_thermal_zone;
54
for_each_thermal_trip;
65
for_each_thermal_cdev;
@@ -9,9 +8,12 @@ LIBTHERMAL_0.0.1 {
98
thermal_zone_find_by_id;
109
thermal_zone_discover;
1110
thermal_init;
11+
thermal_exit;
12+
thermal_events_exit;
1213
thermal_events_init;
1314
thermal_events_handle;
1415
thermal_events_fd;
16+
thermal_cmd_exit;
1517
thermal_cmd_init;
1618
thermal_cmd_get_tz;
1719
thermal_cmd_get_cdev;
@@ -22,6 +24,7 @@ LIBTHERMAL_0.0.1 {
2224
thermal_cmd_threshold_add;
2325
thermal_cmd_threshold_delete;
2426
thermal_cmd_threshold_flush;
27+
thermal_sampling_exit;
2528
thermal_sampling_init;
2629
thermal_sampling_handle;
2730
thermal_sampling_fd;

0 commit comments

Comments
 (0)