linux_dsm_epyc7002/drivers/usb/musb
Ming Lei 9001d80df9 usb: musb: gadget: fix dma mode 0 in double buffer Rx case
1, In Rx double buffer case, FIFO may have two packets, so
rxstate should be called to unload fifo if RXPKTRDY is set
even the current request has not been completed.

2, Commit 633ba7876b96ec339ef685357e2f7c60b5a8ce85
introduces autoclear to support double buffer in dma mode 0,
so remove clearing RXPKTRDY manually for dma mode 0.

3, Commit c7af6b29ffeffbeb28caf39e5b2ce29b11807c7d may break
dma mode 1 for non-doublebuffer endpoint, fix it.

With this patch, either usbtest #5 or g_file_storage(writing
file to device in usb host) or g_ether have been tested OK in
double buffer case(using fifo mode 3). Also, this patch has
been verified that single buffer case can't be broken.

Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Anand Gadiyar <gadiyar@ti.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2010-11-05 13:42:31 +02:00
..
am35x.c USB: musb: AM35x: Workaround for fifo read issue 2010-10-22 10:22:17 -07:00
blackfin.c usb: musb: blackfin: call gpio_free() on error path in musb_platform_init() 2010-10-22 10:21:59 -07:00
blackfin.h USB: musb: workaround Blackfin FIFO anomalies 2009-12-23 11:34:19 -08:00
cppi_dma.c USB: musb: suppress warning about unused flags 2010-10-22 10:21:55 -07:00
cppi_dma.h headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
da8xx.c usb: musb: introduce DA8xx/OMAP-L1x glue layer 2010-10-22 10:21:52 -07:00
davinci.c USB: MUSB: fix kernel WARNING/oops when unloading module in OTG mode 2010-10-22 10:21:58 -07:00
davinci.h USB: musb: partial DaVinci dm355 support 2009-03-24 16:20:36 -07:00
Kconfig USB: musb: add musb support for AM35x 2010-10-22 10:22:16 -07:00
Makefile USB: musb: add musb support for AM35x 2010-10-22 10:22:16 -07:00
musb_core.c USB: musb: AM35x: Workaround for fifo read issue 2010-10-22 10:22:17 -07:00
musb_core.h USB: musb: add musb support for AM35x 2010-10-22 10:22:16 -07:00
musb_debug.h USB: musb: make DBG() calls actually depend on CONFIG_USB_MUSB_DEBUG 2010-10-22 10:21:52 -07:00
musb_debugfs.c usb: musb_debugfs: don't use the struct file private_data field with seq_files 2010-09-20 16:04:56 -07:00
musb_dma.h USB: musb: add work around for Blackfin anomaly 05000456 2009-12-11 11:55:24 -08:00
musb_gadget_ep0.c usb: musb: gadget: restart request on clearing endpoint halt 2010-09-24 11:05:01 -07:00
musb_gadget.c usb: musb: gadget: fix dma mode 0 in double buffer Rx case 2010-11-05 13:42:31 +02:00
musb_gadget.h usb: musb: support ISO high bandwidth for gadget mode 2010-10-22 10:21:53 -07:00
musb_host.c usb: musb: host: support DMA transfers greater than max channel length 2010-10-22 10:21:54 -07:00
musb_host.h musb: add high bandwidth ISO support 2009-06-15 21:44:41 -07:00
musb_io.h USB: musb: Blackfin provides read/write I/O accessor in header files 2009-01-07 10:00:08 -08:00
musb_regs.h usb: musb: add ulpi access operations 2010-05-20 13:21:36 -07:00
musb_virthub.c USB: convert usb_hcd bitfields into atomic flags 2010-08-10 14:35:37 -07:00
musbhsdma.c usb: musb: musbhsdma: increase max_len to 1MB 2010-10-22 10:21:53 -07:00
musbhsdma.h usb: musb: hsdma: use musb_read/writel 2010-05-20 13:21:32 -07:00
omap2430.c USB: MUSB: fix kernel WARNING/oops when unloading module in OTG mode 2010-10-22 10:21:58 -07:00
omap2430.h USB: musb: get rid of omap_readl/writel 2010-03-02 14:54:38 -08:00
tusb6010_omap.c usb: Fix tusb6010 for DMA API 2010-04-30 09:25:09 -07:00
tusb6010.c USB: MUSB: fix kernel WARNING/oops when unloading module in OTG mode 2010-10-22 10:21:58 -07:00
tusb6010.h USB: musb: Remove my email address from few musb related drivers 2009-04-23 14:15:27 -07:00