tty: n_gsm: add ioctl for DLC config via ldisc handle
authorDaniel Starke <daniel.starke@siemens.com>
Wed, 15 Mar 2023 10:53:54 +0000 (11:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2023 08:50:48 +0000 (10:50 +0200)
commitafe3154ba87e798de87ab65c72d6e3f6cd32d9d1
treed75409e2393f815c67d50e375ce280244fbef28a
parent8629745ccc21ba1c20bbb2aead2800cf96643536
tty: n_gsm: add ioctl for DLC config via ldisc handle

The application which initializes the n_gsm ldisc may like to set
individual default parameters for each DLCI or take over of the application
specific DLCI configuration completely. This is currently not possible.
It is either possible to set common default parameters for all DLCIs or let
the user application set its DLCI specific configuration parameters.

Add support of GSMIOC_GETCONF_DLCI and GSMIOC_SETCONF_DLCI for the n_gsm
ldisc handle to support DLCI specific parameter configuration upfront.

Add a code example for this use case to the n_gsm documentation.

Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20230315105354.6234-3-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/tty/n_gsm.rst
drivers/tty/n_gsm.c