Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1390975 > unrolled thread

Re: [PATCH 6/8] tty: Replace ASYNC_INITIALIZED bit and update atomically

Started byJohan Hovold <johan@kernel.org>
First post2016-04-29 12:40 +0200
Last post2016-04-29 12:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 6/8] tty: Replace ASYNC_INITIALIZED bit and update  atomically Johan Hovold <johan@kernel.org> - 2016-04-29 12:40 +0200

#1390975 — Re: [PATCH 6/8] tty: Replace ASYNC_INITIALIZED bit and update atomically

FromJohan Hovold <johan@kernel.org>
Date2016-04-29 12:40 +0200
SubjectRe: [PATCH 6/8] tty: Replace ASYNC_INITIALIZED bit and update atomically
Message-ID<rte01-4gY-3@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web