OSDN Git Service

USB: fsl/ehci: fix failure of checking PHY_CLK_VALID during reinitialization
authorShengzhou Liu <Shengzhou.Liu@freescale.com>
Mon, 2 Sep 2013 05:25:52 +0000 (13:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 23:22:29 +0000 (16:22 -0700)
commiteee41b49b80420e3e8c118d18dfacb7da43c1caa
tree160ec2054d1625de0ee073feec75c41ec719eb2e
parent2606b28aabd7dea1766c23a105e1124c95409c96
USB: fsl/ehci: fix failure of checking PHY_CLK_VALID during reinitialization

In case of usb phy reinitialization:
e.g. insmod usb-module(usb works well) -> rmmod usb-module -> insmod usb-module
It found the PHY_CLK_VALID bit didn't work if it's not with the power-on reset.
So we just check PHY_CLK_VALID bit during the stage with POR, this can be met
by the tricky of checking FSL_SOC_USB_PRICTRL register.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-fsl.c