]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: bcm281xx: Fix incorrect regmap max_registers value
authorArtur Weber <aweber.kernel@gmail.com>
Fri, 7 Feb 2025 20:02:41 +0000 (21:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:09 +0000 (12:54 -0700)
commit319900a10835d08c281cbad3ea3723d62e6f13f1
treebad61382d5b1f25383083f126933ac02ad962265
parentea8411db9fba53a853213abcfed23530b107c875
pinctrl: bcm281xx: Fix incorrect regmap max_registers value

[ Upstream commit 68283c1cb573143c0b7515e93206f3503616bc10 ]

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: 54b1aa5a5b16 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/bcm/pinctrl-bcm281xx.c