]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: lpass-lpi: implement .get_direction() for the GPIO driver
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 3 Feb 2026 23:48:50 +0000 (18:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2026 15:44:25 +0000 (16:44 +0100)
commitadaa2f00c9a079cd3624e62fa39aa646810f2d5f
treef1444117475b081221156cefc98075bffc5e7047
parent4aaff8f6ab38f81e00ab8aa1fcfb7eb20cd87ba1
pinctrl: lpass-lpi: implement .get_direction() for the GPIO driver

[ Upstream commit 4f0d22ec60cee420125f4055af76caa0f373a3fe ]

GPIO controller driver should typically implement the .get_direction()
callback as GPIOLIB internals may try to use it to determine the state
of a pin. Add it for the LPASS LPI driver.

Reported-by: Abel Vesa <abelvesa@kernel.org>
Cc: stable@vger.kernel.org
Fixes: 6e261d1090d6 ("pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Tested-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> # X1E CRD
Tested-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
[ PIN_CONFIG_LEVEL => PIN_CONFIG_OUTPUT ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/qcom/pinctrl-lpass-lpi.c