]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mfd: intel_soc_pmic_chtdc_ti: Fix invalid regmap-config max_register value
authorHans de Goede <hdegoede@redhat.com>
Sun, 8 Dec 2024 15:00:27 +0000 (16:00 +0100)
committerLee Jones <lee@kernel.org>
Tue, 17 Dec 2024 13:17:25 +0000 (13:17 +0000)
The max_register = 128 setting in the regmap config is not valid.

The Intel Dollar Cove TI PMIC has an eeprom unlock register at address 0x88
and a number of EEPROM registers at 0xF?. Increase max_register to 0xff so
that these registers can be accessed.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20241208150028.325349-1-hdegoede@redhat.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/intel_soc_pmic_chtdc_ti.c

index 992855bfda3e47b68576e85071016efc471cad3d..8582ae65a80292e75072cf5654b939a09183fda2 100644 (file)
@@ -81,7 +81,7 @@ static struct mfd_cell chtdc_ti_dev[] = {
 static const struct regmap_config chtdc_ti_regmap_config = {
        .reg_bits = 8,
        .val_bits = 8,
-       .max_register = 128,
+       .max_register = 0xff,
        .cache_type = REGCACHE_NONE,
 };