mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-28 00:00:22 +02:00
usb: ehci-msm: Fix LOW Speed device enumeration issue
Disable ULPI_TX_PKT_EN_CLR_FIX which is valid only for HSIC core. It otherwise causes enumeration failures with low speed devices. Change-Id: I987bba3a8e0d609b6de6b5d33e11ca3bb0e03b1c Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
This commit is contained in:
@@ -48,7 +48,7 @@ static int ehci_msm_reset(struct usb_hcd *hcd)
|
||||
return retval;
|
||||
|
||||
/* bursts of unspecified length. */
|
||||
writel(0, USB_AHBBURST);
|
||||
writel_relaxed(0, USB_AHBBURST);
|
||||
/* Use the AHB transactor */
|
||||
writel_relaxed(0x08, USB_AHBMODE);
|
||||
/* Disable streaming mode and select host mode */
|
||||
@@ -60,6 +60,10 @@ static int ehci_msm_reset(struct usb_hcd *hcd)
|
||||
USB_PHY_CTRL2);
|
||||
}
|
||||
|
||||
/* Disable ULPI_TX_PKT_EN_CLR_FIX which is valid only for HSIC */
|
||||
writel_relaxed(readl_relaxed(USB_GENCONFIG2) & ~(1<<19),
|
||||
USB_GENCONFIG2);
|
||||
|
||||
ehci_port_power(ehci, 1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user