aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPankaj <pankaj.dubey@samsung.com>2011-10-17 15:38:14 +0530
committerAngus Ainslie <angus.ainslie@linaro.org>2011-11-16 10:32:06 -0700
commit5a6060121c8d050f0a707fb7cdd2f83bead31341 (patch)
tree3dda65672d3092e93279a368519f51603d4645b4
parent004958c968a29bfe009c13d841b73e25d2871eed (diff)
ARM: EXYNOS4: USB: Fix for USB host issue with Pegasus Ethernet Dongle.linux-release-2011-113.0.0-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.c8
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);