Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d46b9e1d authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru Committed by Hemant Kumar
Browse files

usb: f_cdev: Add function suspend support for serial interfaces



USB super-speed mode requires device to advertise remote wakeup
capability at function driver level called as function
wakeup capability. Host queries this using get_status and
uses set_feature to enable function remote wakeup before
initiating function suspend. This is required to initiate
remote wakeup as well which is failed by udc otherwise in SS mode.

Also Add debugfs node to initiate function remote wakeup for serial
interfaces. In USBCV Function remote wakeup enable test requires to
initiate function wakeup notification from the device. Hence add a
debugfs node to initiate function wakeup notification from the device.

Use below commands to initiate function wakeup notification
for Modem:
echo 1 > /sys/kernel/debug/at_usb0/remote_wakeup

for NMEA:
echo 1 > /sys/kernel/debug/at_usb1/remote_wakeup.

Change-Id: I1c4c02282a50dc96dd67b646788a5e08818c34c0
Signed-off-by: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
parent 568e87ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment