diff options
Diffstat (limited to 'arch/arm/mach-exynos/setup-usb-phy.c')
-rw-r--r-- | arch/arm/mach-exynos/setup-usb-phy.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/arm/mach-exynos/setup-usb-phy.c b/arch/arm/mach-exynos/setup-usb-phy.c index c844752335d..22621c5a0f4 100644 --- a/arch/arm/mach-exynos/setup-usb-phy.c +++ b/arch/arm/mach-exynos/setup-usb-phy.c @@ -1044,11 +1044,14 @@ int exynos4_check_usb_op(void) if (phypwr & (PHY1_STD_FORCE_SUSPEND | EXYNOS4212_HSIC0_FORCE_SUSPEND | EXYNOS4212_HSIC1_FORCE_SUSPEND)) { -#if defined(CONFIG_LINK_DEVICE_HSIC) || defined(CONFIG_LINK_DEVICE_USB) \ - || defined(CONFIG_MDM_HSIC_PM) - /* HSIC LPA: LPA USB phy retention reume call the usb - * reset resume, so we should let CP to HSIC L3 mode. */ +#if defined(CONFIG_LINK_DEVICE_HSIC) || defined(CONFIG_LINK_DEVICE_USB) set_hsic_lpa_states(STATE_HSIC_LPA_ENTER); +#elif defined(CONFIG_MDM_HSIC_PM) + ret = set_hsic_lpa_states(STATE_HSIC_LPA_ENTER); + if (ret < 0) { + op = 1; + goto done; + } #endif /* unset to normal of Host */ writel(readl(EXYNOS4_PHYPWR) |