]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf883b4b9ebb0787f0d0ddf835d0efc15731a1d02
tree19c00636e4d396d430f254ad841f4226134b6f30
parent57e382128faeddf65c12dac10adaf0b9c382184d
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