lkml.org 
[lkml]   [2018]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/5] USB: serial: f81232: enable remote wakeup via RX/RI pin
Date
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@gmail.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
\
 
 \ /
  Last update: 2018-01-22 09:00    [W:0.044 / U:3.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site