usb: gadget: u_serial: Implement remote wakeup capability
authorPrashanth K <prashanth.k@oss.qualcomm.com>
Thu, 24 Apr 2025 12:11:42 +0000 (17:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 11:42:04 +0000 (13:42 +0200)
commit3baea29dc0a7b561170d7082f831a613ae6aa56e
tree11388abb58daa8b438e98025aad86f8472baa9a0
parent11e80d371bbb02b993caff546a9217eef864232d
usb: gadget: u_serial: Implement remote wakeup capability

Implement the remote wakeup capability for u_serial. The newly added
function gserial_wakeup_host() wakes up the host when there is some
data to be sent while the device is suspended. Add gser_get_status()
callbacks to advertise f_serial interface as function wakeup capable.

Signed-off-by: Prashanth K <prashanth.k@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250424121142.4180241-1-prashanth.k@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_serial.c
drivers/usb/gadget/function/u_serial.c