]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
pinctrl:uphy: set SS_PORT_MAP in phy_power_on
authorBH Hsieh <bhsieh@nvidia.com>
Tue, 15 Nov 2016 09:40:59 +0000 (17:40 +0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Tue, 20 Dec 2016 00:19:32 +0000 (16:19 -0800)
commit409061d4a22c009c40c4a41ccb3a3a9a18e49c0a
tree97e7c4abdce6bd2b94e23e5de0f0e34235894080
parent739afcd1472b102f8ef4fb5547408e572d6c8180
pinctrl:uphy: set SS_PORT_MAP in phy_power_on

Currently uphy driver set XUSB_PADCTL_SS_PORT_MAP_0
in usb3_phy_init/exit, but usb3_phy_init is only invoked
by tegra_xhci_probe

When exiting ELPG/SC7, usb3_phy_init is not executed,
hence XUSB_PADCTL_SS_PORT_MAP_0 isn't being configured
properly after SC7 resume.

Move XUSB_PADCTL_SS_PORT_MAP_0 configuration to
usb3_phy_power_on/off to fix USB device resume failure
seen while exiting SC7.

bug 1811733

Change-Id: I2eb3e1bad6e8a8039627ca5e2cd7151b63b2db8d
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/1253446
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Joseph Lo <josephl@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/pinctrl/pinctrl-tegra21x-padctl-uphy.c