diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-12-19 18:43:24 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-12-19 18:50:44 -0300 |
commit | 1266be78c18c0b8b747615b8e21d32a4ecddd76d (patch) | |
tree | 5adddeed877d43b6002b5e33c1e3a7332a5ee9f3 /libre/linux-libre-grsec/0002-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch | |
parent | a298fed09f99fd179b6778130590abd7128edd6c (diff) |
linux-libre-grsec{,-knock}-4.3.3_gnu.201512162141-1: updating version
* fixup configs
* add CONFIG_MTD_PCMCIA=m - FS#46316 -> https://bugs.archlinux.org/task/46316
* add CONFIG_MTD_UBI_BLOCK=Y - FS#47066 -> https://bugs.archlinux.org/task/47066
* add CONFIG_SENSORS_NCT7904=m - FS#46488 -> https://bugs.archlinux.org/task/46488
* add CONFIG_BPF_SYSCALL=Y - FS#47008 -> https://bugs.archlinux.org/task/47008
* add CONFIG_DISPLAY_PANEL_TPO_TD028TTEC1=m - #857 -> https://labs.parabola.nu/issues/857
* add CONFIG_USB_G_DBGP=m - #858 -> https://labs.parabola.nu/issues/858
Diffstat (limited to 'libre/linux-libre-grsec/0002-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch')
-rw-r--r-- | libre/linux-libre-grsec/0002-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libre/linux-libre-grsec/0002-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch b/libre/linux-libre-grsec/0002-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch new file mode 100644 index 000000000..adf5a48ff --- /dev/null +++ b/libre/linux-libre-grsec/0002-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch @@ -0,0 +1,39 @@ +From d2702eb8157f845c81b1a6049139f342f12db494 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= <kyosti.malkki@gmail.com> +Date: Mon, 26 Aug 2013 19:19:44 +0300 +Subject: [PATCH 2/2] usb serial gadget: no TTY hangup on USB disconnect [WIP] +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +We may want to maintain the TTY over USB disconnects. + +This is useful when we have a terminal console to a host which +power-cycles or for other reasons resets the USB host controller. + +Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> +--- + drivers/usb/gadget/function/u_serial.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/drivers/usb/gadget/function/u_serial.c b/drivers/usb/gadget/function/u_serial.c +index b369292..d156a28 100644 +--- a/drivers/usb/gadget/function/u_serial.c ++++ b/drivers/usb/gadget/function/u_serial.c +@@ -1258,8 +1258,13 @@ void gserial_disconnect(struct gserial *gser) + gser->ioport = NULL; + if (port->port.count > 0 || port->openclose) { + wake_up_interruptible(&port->drain_wait); ++#if 0 + if (port->port.tty) + tty_hangup(port->port.tty); ++#else ++ if (port->port.tty) ++ stop_tty(port->port.tty); ++#endif + } + spin_unlock_irqrestore(&port->port_lock, flags); + +-- +1.8.1.1 + |