Skip to content

Commit 8a2ca33

Browse files
Hans de Goedegregkh
authored andcommitted
mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag
commit 64e0d83 upstream. 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: 6bac060 ("mfd: Add support for Cherry Trail Dollar Cove TI PMIC") Cc: stable@vger.kernel.org Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Hans de Goede <hansg@kernel.org> Link: https://lore.kernel.org/r/20250804133240.312383-1-hansg@kernel.org Signed-off-by: Lee Jones <lee@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3ecf627 commit 8a2ca33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mfd/intel_soc_pmic_chtdc_ti.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ static const struct regmap_config chtdc_ti_regmap_config = {
8282
.reg_bits = 8,
8383
.val_bits = 8,
8484
.max_register = 0xff,
85+
/* The hardware does not support reading multiple registers at once */
86+
.use_single_read = true,
8587
};
8688

8789
static const struct regmap_irq chtdc_ti_irqs[] = {

0 commit comments

Comments
 (0)