Skip to content

Commit 68283c1

Browse files
refractionwarelinusw
authored andcommitted
pinctrl: bcm281xx: Fix incorrect regmap max_registers value
The max_registers value does not take into consideration the stride; currently, it's set to the number of the last pin, but this does not accurately represent the final register. Fix this by multiplying the current value by 4. Fixes: 54b1aa5 ("ARM: pinctrl: Add Broadcom Capri pinctrl driver") Signed-off-by: Artur Weber <aweber.kernel@gmail.com> Link: https://lore.kernel.org/20250207-bcm21664-pinctrl-v1-2-e7cfac9b2d3b@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent d082ecb commit 68283c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/bcm/pinctrl-bcm281xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ static const struct regmap_config bcm281xx_pinctrl_regmap_config = {
974974
.reg_bits = 32,
975975
.reg_stride = 4,
976976
.val_bits = 32,
977-
.max_register = BCM281XX_PIN_VC_CAM3_SDA,
977+
.max_register = BCM281XX_PIN_VC_CAM3_SDA * 4,
978978
};
979979

980980
static int bcm281xx_pinctrl_get_groups_count(struct pinctrl_dev *pctldev)

0 commit comments

Comments
 (0)