aboutsummaryrefslogtreecommitdiff
path: root/kernel/mutex-debug.c
diff options
context:
space:
mode:
authorSimon Arlott <simon@fire.lp0.eu>2012-03-26 21:19:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-22 15:39:02 -0700
commite9775b0d35fdd30abc9b79f5d025c6b6277685c0 (patch)
tree62598a5224e7429d92975a0952d4507433555101 /kernel/mutex-debug.c
parent7661a5c71836bad6dfc37c8d97526ddddcadba2e (diff)
USB: ftdi_sio: fix status line change handling for TIOCMIWAIT and TIOCGICOUNT
commit fca5430d48d53eaf103498c33fd0d1984b9f448b upstream. Handling of TIOCMIWAIT was changed by commit 1d749f9afa657f6ee9336b2bc1fcd750a647d157 USB: ftdi_sio.c: Use ftdi async_icount structure for TIOCMIWAIT, as in other drivers FTDI_STATUS_B0_MASK does not indicate the changed modem status lines, it indicates the value of the current modem status lines. An xor is still required to determine which lines have changed. The count was only being incremented if the line was high. The only reason TIOCMIWAIT still worked was because the status packet is repeated every 1ms, so the count was always changing. The wakeup itself still ran based on the status lines changing. This change fixes handling of updates to the modem status lines and allows multiple processes to use TIOCMIWAIT concurrently. Tested with two processes waiting on different status lines being toggled independently. Signed-off-by: Simon Arlott <simon@fire.lp0.eu> Cc: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions