]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: sc16is7xx: implement gpio get_direction() callback
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Thu, 16 Jul 2026 21:08:09 +0000 (17:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jul 2026 11:07:32 +0000 (13:07 +0200)
commitaf071d9e07e57cfff239e8d09d2f3b05ebc9c667
tree7793a0bf59908b2400a849b6bb9a60267932a943
parent7fb13fd7e9a59a37cd911efff83abe19e3ee029d
serial: sc16is7xx: implement gpio get_direction() callback

It's strongly recommended for GPIO drivers to always implement the
.get_direction() callback - even when the direction is tracked in
software. The GPIO core emits a warning when the callback is missing
and a user reads the direction of a line, e.g. via
/sys/kernel/debug/gpio.

Fixes: dfeae619d781 ("serial: sc16is7xx")
Cc: stable <stable@kernel.org>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260716210813.2582826-1-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c