Re: [PATCH 0/2] thermal/drivers/qcom/tsens: Drop __init from the ->init callbacks

From: Nicola Nicodemo

Date: Wed Nov 25 2026 - 03:47:24 EST


On this boot path, 7.3 with CONFIG_QCOM_TSENS=m and qcom_tsens in the
initramfs, Samsung Galaxy Book4 Edge 14" (X1E80100, NP940XMA):

Without the series, the probe is deferred and the retry from
deferred_probe_work_func jumps into the module's freed .init.text,
on every boot:

Unable to handle kernel execute from non-executable memory at virtual address ffffc2f2779b4150
pc : 0xffffc2f2779b4150
lr : tsens_probe+0x170/0x670 [qcom_tsens]
Workqueue: events_unbound deferred_probe_work_func

With the series applied (same kernel config, same initramfs), it boots;
all four controllers probe and every thermal zone reads normally. The
compatible is qcom,x1e80100-tsens / qcom,tsens-v2, so this exercises
init_common() via ops_generic_v2, i.e. patch 1; patch 2's callbacks are
not used on this SoC.

Tested-by: Nicola Nicodemo <nicola084@xxxxxxxxx> # X1E80100, CONFIG_QCOM_TSENS=m