Skip to content

Remove ASYNC_CLOSING

Peter Hurley linux-s390 linux-serial lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tty: mxser: Remove ASYNC_CLOSINGdrivers/tty/mxser.c+5 -40 replies
2/3isdn: Remove ASYNC_CLOSINGdrivers/isdn/i4l/isdn_tty.c include/linux/isdn.h+7 -60 replies
3/3tty: Remove ASYNC_CLOSINGdrivers/s390/char/con3215.c drivers/tty/rocket.c drivers/tty/serial/68328serial.c +4 more+5 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Remove ASYNC_CLOSING

Changes for v2: rebased on top of tty-next

Hi Greg,

This series removes ASYNC_CLOSING from kernel use. However, the definition is in a uapi header so I think it needs to stay.

The mxser driver used ASYNC_CLOSING to purge its fifo _with each byte received_ while closing. This is clearly unnecessary but the hangup/shutdown sequence in that driver is spaghetti and I don't have the hardware to test (what I would consider to be) the proper fix:
cleaning up its hangup/shutdown so that clearing the fifo can be done once in shutdown.

The isdn subsystem used ASYNC_CLOSING for unclear purposes; the immediate effect was to prevent sending AT commands from the emulator, but its not clear why that's necessary when closing. Since idsn does not use the tty_port helpers, I simply added to isdn the equivalent of an ASYNC_CLOSING flag.

Regards,

Peter Hurley (3):
tty: mxser: Remove ASYNC_CLOSING
isdn: Remove ASYNC_CLOSING
tty: Remove ASYNC_CLOSING

 drivers/isdn/i4l/isdn_tty.c      | 12 ++++++------
 drivers/s390/char/con3215.c      |  3 +--
 drivers/tty/mxser.c              |  9 +++++----
 drivers/tty/rocket.c             |  2 +-
 drivers/tty/serial/68328serial.c |  3 +--
 drivers/tty/serial/crisv10.c     |  3 +--
 drivers/tty/serial/serial_core.c |  1 -
 drivers/tty/tty_port.c           |  3 +--
 include/linux/isdn.h             |  1 +
 net/irda/ircomm/ircomm_tty.c     |  4 ----
 10 files changed, 17 insertions(+), 24 deletions(-)
Signature · 1 line
2.7.0