summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorBilly Tsai <billy_tsai@aspeedtech.com>2026-11-04 11:58:36 +0800
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-11-05 10:12:53 +0100
commit18cc1d1ad94df8a6760fff2617d3d6923550cba0 (patch)
tree93287c400fcd934f29f6bd7cd9694269492c92b8 /rust/kernel/alloc/kvec/errors.rs
parent5d362564bd2982def7e80d7f1e756a97440c7adb (diff)
gpio: aspeed: Preserve the pending G7 interrupt status on control writes
On G7 each line has its own control register, and its interrupt status bit (bit 12) is write-1-to-clear. aspeed_g7_reg_bit_set() updates a field by reading the control register, replacing that field and writing the value back. When the line's interrupt is pending, the status bit reads as 1 and is written back as 1, so updating an unrelated field such as the interrupt enable, trigger type, direction or debounce selection also clears the pending interrupt. Mask out the status bit when composing the value to write, so it is written as 1 only when the status field itself is being set to ack the interrupt. Fixes: b2e861bd1eaf ("gpio: aspeed: Support G7 Aspeed gpio controller") Cc: stable@vger.kernel.org Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au> Link: https://patch.msgid.link/20261104-gpio-aspeed-irq-status-v1-2-9805645f856d@aspeedtech.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions