Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: meson: fix gpio request disabling other modes

The pinctrl_gpio_request is called with the "full" gpio number, already
containing the base, then meson_pmx_request_gpio is then called with the
final pin number.
Remove the base addition when calling meson_pmx_disable_other_groups.

Fixes: 6ac730951104 ("pinctrl: add driver for Amlogic Meson SoCs")
CC: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Acked-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Neil Armstrong and committed by
Linus Walleij
f24d311f 2983f296

+1 -1
+1 -1
drivers/pinctrl/meson/pinctrl-meson.c
··· 212 212 { 213 213 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); 214 214 215 - meson_pmx_disable_other_groups(pc, range->pin_base + offset, -1); 215 + meson_pmx_disable_other_groups(pc, offset, -1); 216 216 217 217 return 0; 218 218 }