From: yangkai Date: Wed, 22 Aug 2012 09:09:10 +0000 (+0800) Subject: don't disable usb clock X-Git-Tag: firefly_0821_release~8872 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=056440e3f0f7add2727dd9ccbd4cde0f416b245f;p=firefly-linux-kernel-4.4.55.git don't disable usb clock --- diff --git a/drivers/usb/dwc_otg/dwc_otg_driver.c b/drivers/usb/dwc_otg/dwc_otg_driver.c index e6df8f501132..0e47b5fd99e7 100755 --- a/drivers/usb/dwc_otg/dwc_otg_driver.c +++ b/drivers/usb/dwc_otg/dwc_otg_driver.c @@ -1619,37 +1619,6 @@ static __devinit int dwc_otg_driver_probe(struct platform_device *pdev) * handlers are installed. */ dwc_otg_enable_global_interrupts( dwc_otg_device->core_if ); -#ifdef CONFIG_ARCH_RK29 -#ifndef CONFIG_DWC_OTG_DEVICE_ONLY - if(dwc_otg_device->hcd->host_enabled == 0) - { - clk_disable(dwc_otg_device->phyclk); - clk_disable(dwc_otg_device->ahbclk); - *otg_phy_con1 |= (0x01<<2); - *otg_phy_con1 &= ~(0x01<<3); // enter suspend. - } -#endif -#endif -#ifdef CONFIG_ARCH_RK30 -#ifndef CONFIG_DWC_OTG_DEVICE_ONLY - if(dwc_otg_device->hcd->host_enabled == 0) - { - clk_disable(dwc_otg_device->phyclk); - clk_disable(dwc_otg_device->ahbclk); - *otg_phy_con = ((0x01<<2)|(0x00<<3)|(0x05<<6))|(((0x01<<2)|(0x01<<3)|(0x07<<6))<<16); // enter suspend. - } -#endif -#endif -#ifdef CONFIG_ARCH_RK2928 -#ifndef CONFIG_DWC_OTG_DEVICE_ONLY - if(dwc_otg_device->hcd->host_enabled == 0) - { - clk_disable(dwc_otg_device->phyclk); - clk_disable(dwc_otg_device->ahbclk); - *otg_phy_con = ((0x01<<0)|(0x00<<1)|(0x05<<4))|(((0x01<<0)|(0x01<<1)|(0x07<<4))<<16); // enter suspend. - } -#endif -#endif return 0; fail: devm_kfree(&pdev->dev, dwc_otg_device);