summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorFabio Baltieri <fabio.baltieri@linaro.org>2013-03-08 10:27:09 +0800
committerFelipe Balbi <balbi@ti.com>2013-03-18 14:41:33 +0200
commitaf6882be363d3a7bf0f72dd17ac2a639c4da0059 (patch)
tree5b652ffd6e7980c1de44517dceac3db55cd4a863 /drivers/usb/musb
parent73f226cbd79adb5f3f25ee14c18900bb4a9acd15 (diff)
downloadlinux-af6882be363d3a7bf0f72dd17ac2a639c4da0059.tar.gz
linux-af6882be363d3a7bf0f72dd17ac2a639c4da0059.tar.bz2
linux-af6882be363d3a7bf0f72dd17ac2a639c4da0059.zip
usb: phy: ab8500-usb: update irq handling code
Update irq handling code to notify all possible link status changes of AB8500 and AB8505 to the ux500-musb glue driver. The additional event codes will be used for pm-runtime implementation, and are defined in a separate ux500-specific header. This also modify the irq registration code to use devm_* helpers and drop all non necessary fail path code. Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/ux500.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c
index 0ae9472a68a8..88795f532370 100644
--- a/drivers/usb/musb/ux500.c
+++ b/drivers/usb/musb/ux500.c
@@ -26,6 +26,7 @@
#include <linux/err.h>
#include <linux/io.h>
#include <linux/platform_device.h>
+#include <linux/usb/musb-ux500.h>
#include "musb_core.h"
@@ -107,15 +108,15 @@ static int musb_otg_notifications(struct notifier_block *nb,
event, usb_otg_state_string(musb->xceiv->state));
switch (event) {
- case USB_EVENT_ID:
+ case UX500_MUSB_ID:
dev_dbg(musb->controller, "ID GND\n");
ux500_musb_set_vbus(musb, 1);
break;
- case USB_EVENT_VBUS:
+ case UX500_MUSB_VBUS:
dev_dbg(musb->controller, "VBUS Connect\n");
ux500_musb_set_vbus(musb, 0);
break;
- case USB_EVENT_NONE:
+ case UX500_MUSB_NONE:
dev_dbg(musb->controller, "VBUS Disconnect\n");
if (is_host_active(musb))
ux500_musb_set_vbus(musb, 0);