MLK-20160-1 usb: ehci-mx6: Fix PHY power up issue on iMX8 platforms
authorYe Li <ye.li@nxp.com>
Thu, 1 Nov 2018 07:30:47 +0000 (00:30 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 09:39:09 +0000 (02:39 -0700)
commit1c3f3b617d112677d1bc30910bd517b1b46bc43b
tree96cdef6b32cf48bd082d212e37a3c59ffdfbd7bb
parentd7dd046251ea22b32f0714e9e23a4d4039e76c99
MLK-20160-1 usb: ehci-mx6: Fix PHY power up issue on iMX8 platforms

On iMX8 platforms like 8QM/QXP, we must power up the USB PHY resource
before accessing the PHY. However, current init flow access the USB PHY
in ehci_mx6_common_init prior than ehci_usb_phy_mode where the PHY is power
up.

Fix the issue by adding ehci_get_usb_phy function to parse the PHY address
from DTB and power up the PHY before ehci_mx6_common_init.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 477dd3a2cbd73a0ff67cbf15e1e6b7809864b516)
drivers/usb/host/ehci-mx6.c