]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: sc16is7xx: declare SPR/TLR/XOFF2 register as volatile
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Mon, 27 Oct 2025 14:29:49 +0000 (10:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2025 14:25:41 +0000 (15:25 +0100)
commit983f91e5f13149ade6dbd9568053ecd0ab5e9265
treee39d08743198100b6c8cacf4fb5e2970837301f7
parente0925b4a0417d32189484b19606962c15019645a
serial: sc16is7xx: declare SPR/TLR/XOFF2 register as volatile

SPR shares the same address space as TLR and XOFF2. If SPR or TLR were to
be used eventually, this could lead to incorrect read value from the cache.

Prevent this potential bug by declaring SPR/TLR/XOFF2 as volatile.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://patch.msgid.link/20251027142957.1032073-8-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c