Merge "usb: f_gsi: Disable function remote wake-up capability for DPL"
diff --git a/drivers/usb/gadget/function/f_gsi.c b/drivers/usb/gadget/function/f_gsi.c
index b7fcc35..0c4baf2 100644
--- a/drivers/usb/gadget/function/f_gsi.c
+++ b/drivers/usb/gadget/function/f_gsi.c
@@ -2565,6 +2565,11 @@
static int gsi_get_status(struct usb_function *f)
{
unsigned int remote_wakeup_en_status = f->func_wakeup_allowed ? 1 : 0;
+ struct f_gsi *gsi = func_to_gsi(f);
+
+ /* Disable function remote wake-up for DPL interface */
+ if (gsi->prot_id == USB_PROT_DIAG_IPA)
+ return 0;
return (remote_wakeup_en_status << FUNC_WAKEUP_ENABLE_SHIFT) |
(1 << FUNC_WAKEUP_CAPABLE_SHIFT);