Skip to contentSkip to conversation

mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag

PATCH Applied Hans de Goede 2 participants 2 messages Aug 4, 2025 – Sep 2, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag

Testing has shown that reading multiple registers at once (for 10-bit ADC values) does not work. Set the use_single_read regmap_config flag to make regmap split these for us.

This should fix temperature opregion accesses done by drivers/acpi/pmic/intel_pmic_chtdc_ti.c and is also necessary for the upcoming drivers for the ADC and battery MFD cells.

Fixes 6bac0606fdba ("mfd: Add support for Cherry Trail Dollar Cove TI PMIC")

---
Changes in v3:
- Fix a few typos in the commit message

Changes in v2:
- Update comment to: "The hardware does not support reading multiple registers at once"

---
 drivers/mfd/intel_soc_pmic_chtdc_ti.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mfd/intel_soc_pmic_chtdc_ti.c +2 -0
index 4c1a68c9f575..6daf33e07ea0 100644
@@ -82,6 +82,8 @@ static const struct regmap_config chtdc_ti_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.max_register = 0xff,
+	/* The hardware does not support reading multiple registers at once */
+	.use_single_read = true,
 };
 
 static const struct regmap_irq chtdc_ti_irqs[] = {
Signature · 1 line
2.49.0
maintainer Applied
#1 lore raw

Re: (subset) [PATCH v3] mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag

Quoted 9 lines · Hans de Goede

Testing has shown that reading multiple registers at once (for 10-bit ADC values) does not work. Set the use_single_read regmap_config flag to make regmap split these for us.

This should fix temperature opregion accesses done by drivers/acpi/pmic/intel_pmic_chtdc_ti.c and is also necessary for the upcoming drivers for the ADC and battery MFD cells.

[...]

Applied, thanks!

[1/1] mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag

      commit: 0bcf2a8dd86b4bc610cc2d31784e36dd643c90a0

--
Lee Jones [李琼斯]