tty: n_gsm: add ioctl to map serial device to mux'ed tty
authorMartin Hundebøll <martin@geanix.com>
Mon, 12 Aug 2019 21:12:43 +0000 (23:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:54 +0000 (12:43 +0200)
commita7b121b4b8b0bcc14fc1c2a81d34096109a65dd6
tree19c00636e4d396d430f254ad841f4226134b6f30
parentd193db7fb10d3ae8322e5f65e4c39946156e24c2
tty: n_gsm: add ioctl to map serial device to mux'ed tty

Guessing the first tty for a gsm0710 multiplexed serial device is not
currently possible, which makes it racy to use with multiple modems.

Add a way to map the physical serial tty to its related mux devices
using an ioctl.

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Link: https://lore.kernel.org/r/20190812211243.98686-1-martin@geanix.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/serial/n_gsm.rst
drivers/tty/n_gsm.c
include/uapi/linux/gsmmux.h