usb: gadget: HSIC wake from suspend workaround
For some MSM targets, there is an HW limitation that doesn't
allow wakeing up from USB bus suspend, when certain USB core
clocks are turned off as part of runtime suspend.
When this workaround is turned ON, the clocks that are mandatory
will not be disabled on runtime suspend.
Change-Id: Iab397c4f3b2918a5aa5eef7a60123bf7ede58d81
Signed-off-by: Amit Blay <ablay@codeaurora.org>
diff --git a/include/linux/usb/msm_hsusb.h b/include/linux/usb/msm_hsusb.h
index cf6bb4b..b53d9dd 100644
--- a/include/linux/usb/msm_hsusb.h
+++ b/include/linux/usb/msm_hsusb.h
@@ -342,6 +342,10 @@
unsigned int dock_connect_irq;
};
+struct msm_hsic_peripheral_platform_data {
+ bool keep_core_clk_on_suspend_workaround;
+};
+
struct usb_bam_pipe_connect {
u32 src_phy_addr;
int src_pipe_index;