aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/sunxi.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-11-21 08:59:22 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-21 17:35:36 +0100
commitd24b63abf4bc866ead04660b5265af77ac910abb (patch)
treef5cc6868bd7a5b0a4e9de37e4926abea3fbeb446 /drivers/usb/musb/sunxi.c
parentUSB: musb: remove obsolete resume-signalling comments (diff)
downloadlinux-dev-d24b63abf4bc866ead04660b5265af77ac910abb.tar.xz
linux-dev-d24b63abf4bc866ead04660b5265af77ac910abb.zip
musb: sunxi: Remove custom babble handling
The musb core already handles babble interrupts, so the sunxi glue having its own custom handling is redundant. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/sunxi.c')
-rw-r--r--drivers/usb/musb/sunxi.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c
index 1408245be18e..82eba92284c0 100644
--- a/drivers/usb/musb/sunxi.c
+++ b/drivers/usb/musb/sunxi.c
@@ -186,16 +186,6 @@ static irqreturn_t sunxi_musb_interrupt(int irq, void *__hci)
if (musb->int_usb)
writeb(musb->int_usb, musb->mregs + SUNXI_MUSB_INTRUSB);
- /*
- * sunxi musb often signals babble on low / full speed device
- * disconnect, without ever raising MUSB_INTR_DISCONNECT, since
- * normally babble never happens treat it as disconnect.
- */
- if ((musb->int_usb & MUSB_INTR_BABBLE) && is_host_active(musb)) {
- musb->int_usb &= ~MUSB_INTR_BABBLE;
- musb->int_usb |= MUSB_INTR_DISCONNECT;
- }
-
if ((musb->int_usb & MUSB_INTR_RESET) && !is_host_active(musb)) {
/* ep0 FADDR must be 0 when (re)entering peripheral mode */
musb_ep_select(musb->mregs, 0);