diff options
author | Pankaj <pankaj.dubey@samsung.com> | 2011-10-17 15:38:14 +0530 |
---|---|---|
committer | Angus Ainslie <angus.ainslie@linaro.org> | 2011-11-16 10:37:47 -0700 |
commit | 18d1cda3e43f4858b5887a0dae431d4775b7c307 (patch) | |
tree | 1c22fcf50f091739696d81ed70c2804df8ed95e1 | |
parent | c6592869e402c543e27376a395b452b3cadcacb3 (diff) |
ARM: EXYNOS4: USB: Fix for USB host issue with Pegasus Ethernet Dongle.android-release-2011-11.1
This is a temporary commit for fixing Pegasus ethernet dongle issue.
It has been reported that using Pegasus ethernet dongle, network connection
over USB is not working, while when tested with another dongle such as
Devicom ethernet dongle it works well. So reverting some of previous commit
till real issue is identified and fixed.
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
-rw-r--r-- | arch/arm/mach-exynos4/setup-usb-phy.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-exynos4/setup-usb-phy.c b/arch/arm/mach-exynos4/setup-usb-phy.c index 935d6dd70a34..e5f51d0ca739 100644 --- a/arch/arm/mach-exynos4/setup-usb-phy.c +++ b/arch/arm/mach-exynos4/setup-usb-phy.c @@ -30,10 +30,12 @@ int s5p_usb_phy_init(struct platform_device *pdev, int type) u32 phyclk; u32 rstcon; int err; +/* if(type == S5P_USB_PHY_HOST && host_phy_initialized != 0) { host_phy_initialized++; return 0; } +*/ otg_clk = clk_get(&pdev->dev, "otg"); if (IS_ERR(otg_clk)) { dev_err(&pdev->dev, "Failed to get otg clock\n"); @@ -91,7 +93,7 @@ int s5p_usb_phy_init(struct platform_device *pdev, int type) rstcon &= ~(HOST_LINK_PORT_SWRST_MASK | PHY1_SWRST_MASK); writel(rstcon, EXYNOS4_RSTCON); - host_phy_initialized++; +// host_phy_initialized++; } else if (type == S5P_USB_PHY_DEVICE) { writel(readl(S5P_USBDEVICE_PHY_CONTROL) | (0x1<<0), S5P_USBDEVICE_PHY_CONTROL); @@ -131,10 +133,10 @@ int s5p_usb_phy_exit(struct platform_device *pdev, int type) } if (type == S5P_USB_PHY_HOST) { - host_phy_initialized--; +/* host_phy_initialized--; if(host_phy_initialized !=0) goto end; - +*/ writel((readl(EXYNOS4_PHYPWR) | PHY1_STD_ANALOG_POWERDOWN), EXYNOS4_PHYPWR); |