usb: musb: core: Fix handling of the phy notifications
authorTony Lindgren <tony@atomide.com>
Tue, 1 Dec 2015 05:37:12 +0000 (21:37 -0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Dec 2015 16:07:28 +0000 (10:07 -0600)
commit8055555fc4590fbda32d4bbf7888bdb2cd4b2b74
tree45f8fc1144159c86355971a35ddf8d73cc24502f
parent1a1716260008b16887d72b417bd069ee4220c42e
usb: musb: core: Fix handling of the phy notifications

We currently can't unload omap2430 MUSB platform glue driver module and
this cause issues for fixing the MUSB code further. The reason we can't
remove omap2430 is because it uses the PHY functions and also exports the
omap_musb_mailbox function that some PHY drivers are using.

Let's fix the issue by exporting a more generic musb_mailbox function
from the MUSB core and allow platform glue layers to register phy_callback
function as needed.

And now we can now also get rid of the include/linux/musb-omap.h.

Cc: Bin Liu <b-liu@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: NeilBrown <neil@brown.name>
Reviewed-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/phy/phy-twl4030-usb.c
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/omap2430.c
drivers/usb/phy/phy-twl6030-usb.c
include/linux/usb/musb-omap.h [deleted file]
include/linux/usb/musb.h