openwrt/target/linux/bcm63xx/patches-5.15/145-pinctrl-BCM6362-fix-gpio-mode.patch
Álvaro Fernández Rojas 2317a7426e bcm63xx: add linux v5.15 support
Build system: x86_64
Build-tested: generic, smp
Run-tested: generic/AR-5387un, smp/VR-3032u

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2022-05-20 15:53:16 +02:00

12 lines
325 B
Diff

--- a/drivers/pinctrl/bcm63xx/pinctrl-bcm6362.c
+++ b/drivers/pinctrl/bcm63xx/pinctrl-bcm6362.c
@@ -566,7 +566,7 @@ static int bcm6362_pinctrl_set_mux(struc
val = BIT(grp->pins[0]);
break;
case BCM6362_MODE:
- reg = pctl->ctrl;
+ reg = pctl->mode;
mask = BIT(grp->pins[0]);
val = BIT(grp->pins[0]);
break;