• Anand Gadiyar's avatar
    usb: musb: workaround MUSB DMA_INTR sometimes reads zero · f933a0c0
    Anand Gadiyar authored
    MUSB DMA_INTR register may sometimes read zero when infact there
    was a pending interrupt. Workaround this by reading the DMA_COUNT
    values for all enabled channels when this condition occurs.
    Flag these channels as the ones needing to be serviced.
    
    Additionally, the absence of a debug print meant we would never
    catch a spurious DMA interrupt in MUSB. So this patch adds a
    debug print in the IRQ handler.
    Signed-off-by: default avatarAnand Gadiyar <gadiyar@ti.com>
    Cc: Ajay Kumar Gupta <ajay.gupta@ti.com>
    Cc: David Brownell <dbrownell@users.sourceforge.net>
    Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
    Cc: Vikram Pandita <vikram.pandita@ti.com>
    Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    f933a0c0
musbhsdma.c 11.2 KB