summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-gic-v3-its-pci-msi.c
diff options
context:
space:
mode:
authorDaniel Starke <daniel.starke@siemens.com>2022-07-01 08:16:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-01 10:07:26 +0200
commit01aecd917114577c423f07cec0d186ad007d76fc (patch)
tree60eb0f346b85c4c7bd4e435e6b1162c05f4615d2 /drivers/irqchip/irq-gic-v3-its-pci-msi.c
parenttty: n_gsm: fix user open not possible at responder until initiator open (diff)
downloadlinux-01aecd917114577c423f07cec0d186ad007d76fc.tar.xz
linux-01aecd917114577c423f07cec0d186ad007d76fc.zip
tty: n_gsm: fix tty registration before control channel open
The current implementation registers/deregisters the user ttys at mux attach/detach. That means that the user devices are available before any control channel is open. However, user channel initialization requires an open control channel. Furthermore, the user is not informed if the mux restarts due to configuration changes. Put the registration/deregistration procedure into separate function to improve readability. Move registration to mux activation and deregistration to mux cleanup to keep the user devices only open as long as a control channel exists. The user will be informed via the device driver if the mux was reconfigured in a way that required a mux re-activation. This makes it necessary to add T2 initialization to gsmld_open() for the ldisc open code path (not the reconfiguration code path) to avoid deletion of an uninitialized T2 at mux cleanup. Fixes: d50f6dcaf22a ("tty: n_gsm: expose gsmtty device nodes at ldisc open time") Signed-off-by: Daniel Starke <daniel.starke@siemens.com> Link: https://lore.kernel.org/r/20220701061652.39604-2-daniel.starke@siemens.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/irqchip/irq-gic-v3-its-pci-msi.c')
0 files changed, 0 insertions, 0 deletions