]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7cc2370c64c0b996eaef4cc212544c883b534783
tree160ec2054d1625de0ee073feec75c41ec719eb2e
parent33c3328337c5de995f6e29844f5669d798a7d756
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