summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorJinseob Kim <kimjinseob88@gmail.com>2026-11-04 20:59:38 +0900
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-11-05 09:54:52 +0100
commitc20464a78162cf8b3a1c9dc7e0d764e535bfe582 (patch)
tree4616316cce2bf944b7e2aa72afd863e86246d0cd /rust/kernel/alloc
parentc2d0710318b8cd57d0ef6088d0ee4bbc1e827fd3 (diff)
gpiolib: reset lookup flags for each hogged line
gpiochip_add_hog() initializes lflags once before iterating over the GPIO specifiers. In the non-OF path, an active-low line sets GPIO_ACTIVE_LOW, but a later active-high line does not clear it. A single firmware hog with mixed polarities therefore configures later active-high lines as active-low, including inverting their initial output value. Initialize the lookup flags for each line before translating its flags. The OF helper already overwrites the flags for each specifier; the non-OF path must also start with a fresh value. Codex assisted with identifying the issue and developing the fix. Fixes: 802c51a83e9a ("gpiolib: fix hogs with multiple lines") Signed-off-by: Jinseob Kim <kimjinseob88@gmail.com> Link: https://patch.msgid.link/20261104115938.226-1-kimjinseob88@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions