diff options
| author | Tomasz Moń <[email protected]> | 2022-03-01 06:03:31 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-03-01 21:16:59 +0000 |
| commit | 21144bab4f1191e01e1cf785720e6af99d86a347 (patch) | |
| tree | 9c5ef3fc7cf3c53e1ae1bd1afca06c3ad5ac9d5a /drivers/tty/serial/sccnxp.c | |
| parent | sc16is7xx: Properly resume TX after stop (diff) | |
| download | kernel-21144bab4f1191e01e1cf785720e6af99d86a347.tar.gz kernel-21144bab4f1191e01e1cf785720e6af99d86a347.zip | |
sc16is7xx: Handle modem status lines
The uart_handle_cts_change() and uart_handle_dcd_change() must be called
with port lock being held. Acquire the lock after reading MSR register.
Do not acquire spin lock when reading MSR register because I2C/SPI port
functions cannot be called with spinlocks held.
Update rng and dsr counters. Wake up delta_msr_wait to allow tty notice
modem status change.
Co-developed-by: Lech Perczak <[email protected]>
Co-developed-by: Tomasz Moń <[email protected]>
Signed-off-by: Lech Perczak <[email protected]>
Signed-off-by: Tomasz Moń <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
