Commit 64e0d839 authored by Hans de Goede's avatar Hans de Goede Committed by Lee Jones
Browse files

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: 6bac0606 ("mfd: Add support for Cherry Trail Dollar Cove TI PMIC")
Cc: stable@vger.kernel.org
Reviewed-by: default avatarAndy Shevchenko <andy@kernel.org>
Signed-off-by: default avatarHans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250804133240.312383-1-hansg@kernel.org


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 71f529e9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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[] = {