]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: omap2430: fix omap_musb_mailbox glue check again
authorAaro Koskinen <aaro.koskinen@iki.fi>
Tue, 5 Mar 2013 11:04:23 +0000 (13:04 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 5 Mar 2013 11:26:59 +0000 (13:26 +0200)
commitb601728c6594f509f0879adb33cf6e4a7211f4b8
tree6aabcbd375af4862a443f67123773f80835b4e65
parent27244b5be9f0506de78b67a0b6f5d0083fa91bcf
usb: musb: omap2430: fix omap_musb_mailbox glue check again

Commit ebab6151 (usb: musb: omap2430: fix the readiness check
in omap_musb_mailbox) made the check incorrect, as we will lose the
glue/link status during the normal built-in probe order (twl4030_usb is
probed after musb omap2430, but before musb core is ready).

As a result, if you boot with USB cable on and load g_ether, the
connection does not work as the code thinks the cable is off and the
phy gets powered down immediately. This is a major regression in 3.9-rc1.

So the proper check should be: exit if _glue is NULL, but if it's
initialized we memorize the status, and then check if the musb core
is ready.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/omap2430.c