Date:2013-12-17 12:13:13 (6 years 6 months ago)
Author:Lars C.
Commit:fbeaeeb8316117b7dd3d6ab5dacba7ca5eaff9d1
Message:usb: musb-jz4740: Mask host mode only IRQ bits

As the device is gadget only the host mode IRQ bits are not implemented by the
device. Make sure the musb core driver never sees any of the host mode IRQ bits
set.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Files: drivers/usb/musb/jz4740.c (1 diff)

Change Details

drivers/usb/musb/jz4740.c
7777    musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX);
7878    musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX);
7979
80    /*
81     * The controller is gadget only, the state of the host mode IRQ bits is
82     * undefined. Mask them to make sure that the musb driver core will
83     * never see them set
84     */
85    musb->int_usb &= MUSB_INTR_SUSPEND | MUSB_INTR_RESUME |
86        MUSB_INTR_RESET | MUSB_INTR_SOF;
87
8088    if (musb->int_usb || musb->int_tx || musb->int_rx)
8189        retval = musb_interrupt(musb);
8290

Archive Download the corresponding diff file



interactive