diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2013-07-19 13:34:23 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-24 01:59:38 +0400 |
commit | 7de76ee118ce013bb17c924515cb45464d8a059b (patch) | |
tree | 41a760a81a8b77ac332e3cf13d7891d3215727d3 /drivers/staging/xgifb | |
parent | a0112f487180bd243aec86b5a8c4b5e2d45e8404 (diff) | |
download | linux-7de76ee118ce013bb17c924515cb45464d8a059b.tar.xz |
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>
Diffstat (limited to 'drivers/staging/xgifb')
0 files changed, 0 insertions, 0 deletions