linux-stable/drivers/staging/dwc2
Matthijs Kooijman 7de76ee118 staging: dwc2: when dma is disabled, clear hcd->self.uses_dma
When dma is disabled inside dwc2 (because the hardware does not support
it, or the code was changed to disable it for testing), let the usb core
know about this by clearing hcd->self.uses_dma.

By default, the usb core assumes that dma is used when a dma_mask is
set, but this might not always match the dma_enable value in dwc2. To
prevent problems resulting from a mismatch, better to explicitely
disable dma in this case (though everything seemed to work with the
wrong value of uses_dma as well, probably only resulted in some unneeded
work).

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Acked-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-23 14:59:38 -07:00
..
core.c staging: dwc2: add driver parameter to set AHB config register value 2013-07-23 14:56:19 -07:00
core.h staging: dwc2: add driver parameter to set AHB config register value 2013-07-23 14:56:19 -07:00
core_intr.c staging: dwc2: remove dummy interrupt handling 2013-05-16 15:22:39 -07:00
hcd.c staging: dwc2: when dma is disabled, clear hcd->self.uses_dma 2013-07-23 14:59:38 -07:00
hcd.h staging: dwc2: refactor dwc2_host_complete() 2013-07-23 14:54:48 -07:00
hcd_ddma.c staging: dwc2: refactor dwc2_host_complete() 2013-07-23 14:54:48 -07:00
hcd_intr.c staging: dwc2: reduce noisy debug messages 2013-07-23 14:54:49 -07:00
hcd_queue.c staging: dwc2: fix dwc2_hcd_qtd_add() 2013-07-23 14:54:48 -07:00
hw.h staging: dwc2: add driver parameter to set AHB config register value 2013-07-23 14:56:19 -07:00
Kconfig staging: dwc2: remove use of bus_to_virt() 2013-07-23 14:54:49 -07:00
Makefile staging: dwc2: add platform device bindings 2013-04-23 10:37:55 -07:00
pci.c staging: dwc2: add driver parameter to set AHB config register value 2013-07-23 14:56:19 -07:00
platform.c Staging driver fixes for 3.10-rc2 2013-05-23 09:27:49 -07:00