[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160429103436.GB22229@localhost>
Date: Fri, 29 Apr 2016 12:34:36 +0200
From: Johan Hovold <johan@...nel.org>
To: Peter Hurley <peter@...leysoftware.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jslaby@...e.cz>, linux-kernel@...r.kernel.org,
linux-serial@...r.kernel.org,
Grant Edwards <grant.b.edwards@...il.com>
Subject: Re: [PATCH 6/8] tty: Replace ASYNC_INITIALIZED bit and update
atomically
On Sat, Apr 09, 2016 at 05:53:25PM -0700, Peter Hurley wrote:
> Replace ASYNC_INITIALIZED bit in the tty_port::flags field with
> TTY_PORT_INITIALIZED bit in the tty_port::iflags field. Introduce helpers
> tty_port_set_initialized() and tty_port_initialized() to abstract
> atomic bit ops.
>
> Note: the transforms for test_and_set_bit() and test_and_clear_bit()
> are unnecessary as the state transitions are already mutually exclusive;
> the tty lock prevents concurrent open/close/hangup.
>
> Signed-off-by: Peter Hurley <peter@...leysoftware.com>
> ---
> drivers/char/pcmcia/synclink_cs.c | 12 +++++-----
> drivers/ipack/devices/ipoctal.c | 5 ++---
> drivers/isdn/i4l/isdn_tty.c | 10 ++++-----
> drivers/s390/char/con3215.c | 12 +++++-----
> drivers/tty/amiserial.c | 14 ++++++------
> drivers/tty/cyclades.c | 14 ++++++------
> drivers/tty/isicom.c | 6 ++---
> drivers/tty/moxa.c | 10 ++++-----
> drivers/tty/mxser.c | 14 +++++-------
> drivers/tty/n_gsm.c | 8 +++----
> drivers/tty/rocket.c | 10 ++++-----
> drivers/tty/serial/crisv10.c | 17 +++++++-------
> drivers/tty/serial/serial_core.c | 24 +++++++++++---------
> drivers/tty/synclink.c | 46 ++++++++++++++++++--------------------
> drivers/tty/synclink_gt.c | 16 ++++++-------
> drivers/tty/synclinkmp.c | 16 ++++++-------
> drivers/tty/tty_port.c | 13 ++++++-----
> drivers/usb/class/cdc-acm.c | 4 ++--
> drivers/usb/serial/console.c | 4 ++--
> drivers/usb/serial/generic.c | 6 ++---
> drivers/usb/serial/mxuport.c | 6 ++---
> drivers/usb/serial/sierra.c | 4 ++--
> drivers/usb/serial/usb-serial.c | 2 +-
> drivers/usb/serial/usb_wwan.c | 4 ++--
For usb-serial
Acked-by: Johan Hovold <johan@...nel.org>
Thanks,
Johan
Powered by blists - more mailing lists