linux-sg2042/drivers/usb/musb
Anand Gadiyar fb85d99161 MUSB: Fix index register corruption seen with g_ether and Windows host
If Indexed Mode register accesses are enabled, the ep0_rxstate()
function calls musb_g_ep0_giveback() before writing to the CSR
register. When control returns to this ep0_rxstate, the index
register contents are over-written. This causes the CSR register
write to fail.

Fixed by writing the correct value into the index register before
writing to the CSR.

This was observed only in ep0_rxstate() with g_ether loaded and
the device connected to a MS Windows host PC. Anticipatively fixed
ep0_txstate() as well.

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-08-21 10:26:34 -07:00
..
Kconfig usb: musb: get rid of MUSB_LOGLEVEL and use parameter 2008-08-21 10:26:34 -07:00
Makefile usb: musb: get rid of MUSB_LOGLEVEL and use parameter 2008-08-21 10:26:34 -07:00
cppi_dma.c USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
cppi_dma.h USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
davinci.c USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
davinci.h USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
musb_core.c usb: musb: get rid of MUSB_LOGLEVEL and use parameter 2008-08-21 10:26:34 -07:00
musb_core.h usb: musb: get rid of procfs entry 2008-08-21 10:26:33 -07:00
musb_debug.h usb: musb: get rid of MUSB_LOGLEVEL and use parameter 2008-08-21 10:26:34 -07:00
musb_dma.h USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
musb_gadget.c usb: musb: fix hanging when rmmod gadget driver 2008-08-13 17:33:00 -07:00
musb_gadget.h USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
musb_gadget_ep0.c MUSB: Fix index register corruption seen with g_ether and Windows host 2008-08-21 10:26:34 -07:00
musb_host.c USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
musb_host.h USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
musb_io.h USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
musb_regs.h USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
musb_virthub.c USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
musbhsdma.c USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
omap2430.c USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
omap2430.h USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
tusb6010.c USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00
tusb6010.h usb: musb: pass configuration specifics via pdata 2008-08-13 17:33:01 -07:00
tusb6010_omap.c USB: Add MUSB and TUSB support 2008-08-13 17:33:00 -07:00