diff options
author | Tomasz Moń <tomasz.mon@camlingroup.com> | 2022-03-01 09:03:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-02 00:16:59 +0300 |
commit | 21144bab4f1191e01e1cf785720e6af99d86a347 (patch) | |
tree | 9c5ef3fc7cf3c53e1ae1bd1afca06c3ad5ac9d5a /security/inode.c | |
parent | cc4c1d05eb10c3ad4c6315f1897bc56b1e7429aa (diff) | |
download | linux-21144bab4f1191e01e1cf785720e6af99d86a347.tar.xz |
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 <l.perczak@camlintechnologies.com>
Co-developed-by: Tomasz Moń <tomasz.mon@camlingroup.com>
Signed-off-by: Lech Perczak <l.perczak@camlintechnologies.com>
Signed-off-by: Tomasz Moń <tomasz.mon@camlingroup.com>
Link: https://lore.kernel.org/r/20220301060332.2561851-3-tomasz.mon@camlingroup.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/inode.c')
0 files changed, 0 insertions, 0 deletions