]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: tegra: Use correct offset for pin group
authorPrathamesh Shete <pshete@nvidia.com>
Mon, 25 Oct 2021 11:09:59 +0000 (16:39 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 25 Oct 2021 23:27:39 +0000 (01:27 +0200)
commit2bf9003de5a00c0edaef50d13c8516bdfa387c47
tree04df9a747cbf58016650e0043b21367f3c03c7cc
parent61c84992fee1ad05da0d6f24eef4ac49678ea42b
pinctrl: tegra: Use correct offset for pin group

Function tegra_pinctrl_gpio_request_enable() and
tegra_pinctrl_gpio_disable_free() uses pin offset instead
of group offset, causing the driver to use wrong offset
to enable gpio.

Add a helper function tegra_pinctrl_get_group() to parse the
pin group and determine correct offset.

Signed-off-by: Kartik K <kkartik@nvidia.com>
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Link: https://lore.kernel.org/r/20211025110959.27751-1-pshete@nvidia.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/tegra/pinctrl-tegra.c