]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: imx: Add usb_phy_shutdown at probe's error path
authorPeter Chen <peter.chen@freescale.com>
Tue, 17 Sep 2013 04:37:23 +0000 (12:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 00:30:30 +0000 (17:30 -0700)
commita99f01ae3c23152274a330db10849b540f561b06
treef8c00b352e28257b01f54b3b4b171f95676f88f0
parent1e15f934f7e8a79f3e98e6b253fa47942759c685
usb: chipidea: imx: Add usb_phy_shutdown at probe's error path

If not, the PHY will be active even the controller is not in use.
We find this issue due to the PHY's clock refcount is not correct
due to -EPROBE_DEFER return after phy's init.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_imx.c