diff options
author | Ravi Babu <ravibabu@ti.com> | 2013-04-02 03:51:54 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-04-02 04:42:50 -0400 |
commit | 96449f097e3874af0e8ddd721d3ebeed2ec389da (patch) | |
tree | c308014a781fb9941754889ca4789aa1f5909455 /drivers | |
parent | 8408fd1d83e39bf856d31a36b70bcc53527702fd (diff) |
usb: musb: dsps: print babble message only when musb is active host
The musb controller uses single bit defintion for both reset and
babble events. The babble event is valid only when controller is
active a-host, and hence print the babble message only when the
controller is active a-host.
Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/musb/musb_dsps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 1ea553d2b77f..3a18e44e9391 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c | |||
@@ -335,7 +335,7 @@ static irqreturn_t dsps_interrupt(int irq, void *hci) | |||
335 | * value but DEVCTL.BDEVICE is invalid without DEVCTL.SESSION set. | 335 | * value but DEVCTL.BDEVICE is invalid without DEVCTL.SESSION set. |
336 | * Also, DRVVBUS pulses for SRP (but not at 5V) ... | 336 | * Also, DRVVBUS pulses for SRP (but not at 5V) ... |
337 | */ | 337 | */ |
338 | if (usbintr & MUSB_INTR_BABBLE) | 338 | if (is_host_active(musb) && usbintr & MUSB_INTR_BABBLE) |
339 | pr_info("CAUTION: musb: Babble Interrupt Occurred\n"); | 339 | pr_info("CAUTION: musb: Babble Interrupt Occurred\n"); |
340 | 340 | ||
341 | if (usbintr & ((1 << wrp->drvvbus) << wrp->usb_shift)) { | 341 | if (usbintr & ((1 << wrp->drvvbus) << wrp->usb_shift)) { |