lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 22 Jan 2018 15:58:45 +0800 From: "Ji-Ze Hong (Peter Hong)" <hpeter@...il.com> To: johan@...nel.org Cc: gregkh@...uxfoundation.org, linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org, peter_hong@...tek.com.tw, "Ji-Ze Hong (Peter Hong)" <hpeter+linux_kernel@...il.com> Subject: [PATCH 3/5] USB: serial: f81232: enable remote wakeup via RX/RI pin The F81232 can do remote wakeup via RX/RI pin with pulse. This patch will use device_set_wakeup_enable to enable this feature. Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@...il.com> --- drivers/usb/serial/f81232.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c index bdd7f337cd5f..dadf024ae494 100644 --- a/drivers/usb/serial/f81232.c +++ b/drivers/usb/serial/f81232.c @@ -742,6 +742,7 @@ static int f81232_port_probe(struct usb_serial_port *port) port->port.drain_delay = 256; priv->port = port; + device_set_wakeup_enable(&port->serial->dev->dev, true); return 0; } @@ -752,6 +753,7 @@ static int f81232_port_remove(struct usb_serial_port *port) priv = usb_get_serial_port_data(port); kfree(priv); + device_set_wakeup_enable(&port->serial->dev->dev, false); return 0; } -- 2.7.4
Powered by blists - more mailing lists