From: Pali Rohár Date: Wed, 18 Sep 2013 17:03:34 +0000 (+0200) Subject: usb: musb: Call atomic_notifier_call_chain when status is changed X-Git-Tag: v3.13-rc1~174^2~22^2~92 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6fa7178ce72764a564b5f5b7d2826d3697b89e3a;p=~emulex%2Finfiniband.git usb: musb: Call atomic_notifier_call_chain when status is changed More power supply drivers depends on vbus events and without it they not working. Power supply drivers using usb_register_notifier, so to deliver events it is needed to call atomic_notifier_call_chain. So without atomic notifier power supply driver isp1704 not retrieving vbus status and reporting bogus values to userspace and also to board platform data functions. Without proper data charger drivers trying to charge battery also when charger is disconnected or do not start charging when wallcharger connects. Atomic notifier in musb driver was used before v3.5 and was replaced with omap mailbox. This patch adding atomic_notifier_call_chain call from function omap_musb_set_mailbox. Signed-off-by: Pali Rohár Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 59d2245db1c..cefafdcbe3a 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -305,6 +305,9 @@ static void omap_musb_set_mailbox(struct omap2430_glue *glue) default: dev_dbg(dev, "ID float\n"); } + + atomic_notifier_call_chain(&musb->xceiv->notifier, + musb->xceiv->last_event, NULL); }