8250: microchip: pci1xxxx: Add Syslock support for reading UART system registers
authorRengarajan S <rengarajan.s@microchip.com>
Fri, 15 Dec 2023 15:11:21 +0000 (20:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 15:22:23 +0000 (16:22 +0100)
commitb7fbca372bb6247990e2419c09fe6064d107542d
tree6955efb78257f4787c3de76203d8f8a553bd20d6
parente0ae1431dfb6899836f5689225ac464394570b18
8250: microchip: pci1xxxx: Add Syslock support for reading UART system registers

Different Host drivers can attempt to access system registers
simultaneously from different memory spaces at the same time. The
syslock mechanism provides a safe option for reading UART system
registers and prevents conflicts by serializing access. Added
three padding bytes in the structure for memory alignment.

Signed-off-by: Rengarajan S <rengarajan.s@microchip.com>
Link: https://lore.kernel.org/r/20231215151123.41812-3-rengarajan.s@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci1xxxx.c