From: Johan Hovold <johan@kernel.org>
To: Peter Hurley <peter@hurleysoftware.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jslaby@suse.cz>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
Grant Edwards <grant.b.edwards@gmail.com>
Subject: Re: [PATCH 6/8] tty: Replace ASYNC_INITIALIZED bit and update atomically
Date: Fri, 29 Apr 2016 12:34:36 +0200 [thread overview]
Message-ID: <20160429103436.GB22229@localhost> (raw)
In-Reply-To: <1460249607-8014-7-git-send-email-peter@hurleysoftware.com>
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@hurleysoftware.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@kernel.org>
Thanks,
Johan
next prev parent reply other threads:[~2016-04-29 10:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-10 0:53 [PATCH 0/8] Replace kernel-defined ASYNC_ bits Peter Hurley
2016-04-10 0:53 ` [PATCH 1/8] tty: Define ASYNC_ replacement bits Peter Hurley
2016-04-10 0:53 ` [PATCH 2/8] tty: Replace ASYNC_CTS_FLOW bit and update atomically Peter Hurley
2016-04-10 0:53 ` [PATCH 3/8] tty: Replace ASYNC_NORMAL_ACTIVE " Peter Hurley
2016-04-10 0:53 ` [PATCH 4/8] tty: Replace ASYNC_CHECK_CD " Peter Hurley
2016-04-10 0:53 ` [PATCH 5/8] tty: Replace ASYNC_SUSPENDED bit " Peter Hurley
2016-04-10 0:53 ` [PATCH 6/8] tty: Replace ASYNC_INITIALIZED " Peter Hurley
2016-04-29 10:34 ` Johan Hovold [this message]
2016-04-10 0:53 ` [PATCH 7/8] tty: mxser: Remove unused ASYNC_SHARE_IRQ flag Peter Hurley
2016-04-10 0:53 ` [PATCH 8/8] tty: core: Undefine ASYNC_* flags superceded by TTY_PORT* flags Peter Hurley
2016-04-28 20:36 ` [PATCH 0/8] Replace kernel-defined ASYNC_ bits Greg Kroah-Hartman
2016-04-28 20:44 ` Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160429103436.GB22229@localhost \
--to=johan@kernel.org \
--cc=grant.b.edwards@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=peter@hurleysoftware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).