serial: core: Privatize tty->hw_stopped
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 10 Sep 2014 19:06:26 +0000 (15:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:19:35 +0000 (21:19 -0700)
commitd01f4d181c92877ecc678adce248a30cb7077ff1
treef4b9a5723be98e63e2b238f8290fd418179a238a
parent317c1360200059a7a8a832294a58409c73b784bf
serial: core: Privatize tty->hw_stopped

tty->hw_stopped is not used by the tty core and is thread-unsafe;
hw_stopped is a member of a bitfield whose fields are updated
non-atomically and no lock is suitable for serializing updates.

Replace serial core usage of tty->hw_stopped with uport->hw_stopped.
Use int storage which works around Alpha EV4/5 non-atomic byte storage,
since uart_port uses different locks to protect certain fields within the
structure.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/bfin_uart.c
drivers/tty/serial/serial_core.c
include/linux/serial_core.h