phy: usb: PHY's MDIO registers not accessible without device installed
authorAl Cooper <alcooperx@gmail.com>
Fri, 3 Jan 2020 18:18:08 +0000 (13:18 -0500)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 8 Jan 2020 07:28:06 +0000 (12:58 +0530)
commitfc430aea02068150d053ef24bc424db3dd1357d4
treef8808fba0e89a1dba1cb201170f8cbfa020d08fc
parent89927fe0061aaa69b39e95ed793d2c61903b7895
phy: usb: PHY's MDIO registers not accessible without device installed

When there is no device connected and FSM is enabled, the XHCI puts
the PHY into suspend mode.  When the PHY is put into suspend mode
the USB LDO powers down the PHY. This causes the MDIO to be
inaccessible and its registers reset to default. The fix is to
disable FSM.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c