Skip to content
Commit 21144bab authored by Tomasz Moń's avatar Tomasz Moń Committed by Greg Kroah-Hartman
Browse files

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: default avatarLech Perczak <l.perczak@camlintechnologies.com>
Co-developed-by: default avatarTomasz Moń <tomasz.mon@camlingroup.com>
Signed-off-by: default avatarLech Perczak <l.perczak@camlintechnologies.com>
Signed-off-by: default avatarTomasz Moń <tomasz.mon@camlingroup.com>
Link: https://lore.kernel.org/r/20220301060332.2561851-3-tomasz.mon@camlingroup.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cc4c1d05
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment