]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: imx: properly check for usbmisc
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 6 Aug 2015 13:09:54 +0000 (15:09 +0200)
committerPeter Chen <peter.chen@freescale.com>
Fri, 14 Aug 2015 01:13:13 +0000 (09:13 +0800)
commite00c98a6da8e12a1eb87831ba39757aefb7a1370
tree42e8385c0436cd868fa4f5963bb9ce9d9b67fee5
parentebd5511477fdcab3a02c6bf33020b9caa487b2c1
usb: chipidea: imx: properly check for usbmisc

If usbmisc hasn't probed yet, defer the probe.

It's not enough to check if the platform device for the OF node of the
usbmisc has been registered, but it also needs to have been probed
already before we can call imx_usbmisc_init().

This can happen if the order in which devices are probed change due to
async probing or on-demand probing of dependencies.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
drivers/usb/chipidea/ci_hdrc_imx.c