linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag
@ 2025-08-04 13:32 Hans de Goede
  2025-09-02  8:11 ` (subset) " Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2025-08-04 13:32 UTC (permalink / raw)
  To: Lee Jones, Andy Shevchenko; +Cc: Hans de Goede, linux-kernel, stable

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")
Cc: stable@vger.kernel.org
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hansg@kernel.org>
---
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(+)

diff --git a/drivers/mfd/intel_soc_pmic_chtdc_ti.c b/drivers/mfd/intel_soc_pmic_chtdc_ti.c
index 4c1a68c9f575..6daf33e07ea0 100644
--- a/drivers/mfd/intel_soc_pmic_chtdc_ti.c
+++ b/drivers/mfd/intel_soc_pmic_chtdc_ti.c
@@ -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[] = {
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: (subset) [PATCH v3] mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag
  2025-08-04 13:32 [PATCH v3] mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag Hans de Goede
@ 2025-09-02  8:11 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2025-09-02  8:11 UTC (permalink / raw)
  To: Lee Jones, Andy Shevchenko, Hans de Goede; +Cc: linux-kernel, stable

On Mon, 04 Aug 2025 15:32:40 +0200, Hans de Goede wrote:
> 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 [李琼斯]


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-02  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-04 13:32 [PATCH v3] mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag Hans de Goede
2025-09-02  8:11 ` (subset) " Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).