From c7c6b1e662ab0f572427b266ba5025ae93b2be95 Mon Sep 17 00:00:00 2001 From: Mayank Rana Date: Mon, 19 Oct 2020 11:35:27 -0700 Subject: [PATCH] usb: f_gsi: Don't set remote_wakeup_allowed to true by default Currently USB remote wakeup functionality is not fully supported. Hence set remote_wakeup_allowed to false instead of setting true. This helps to disconnect USB IPA GSI channel instead of suspending on getting suspend interrupt when USB is enumerated into high speed. It prevents getting any unwanted remote wakeup from IPA which is racing against USB LPM functionality causing unclock USB controller register access while handling remote wakeup. Change-Id: I1691e3989b9d008ea541a51dd51aafca116fe0ff Signed-off-by: Mayank Rana --- drivers/usb/gadget/function/f_gsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_gsi.c b/drivers/usb/gadget/function/f_gsi.c index 71582fba818d..4d05d5cb3756 100644 --- a/drivers/usb/gadget/function/f_gsi.c +++ b/drivers/usb/gadget/function/f_gsi.c @@ -34,7 +34,7 @@ static void gsi_ctrl_pkt_free(struct gsi_ctrl_pkt *pkt); static inline bool usb_gsi_remote_wakeup_allowed(struct usb_function *f) { - bool remote_wakeup_allowed = true; + bool remote_wakeup_allowed = false; struct f_gsi *gsi = func_to_gsi(f); if (f->config->cdev->gadget->speed >= USB_SPEED_SUPER)