dwc_otg: Declare DMA capability with HCD_DMA flag
authorPhil Elwell <phil@raspberrypi.org>
Fri, 15 Nov 2019 08:48:08 +0000 (08:48 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:09 +0000 (16:33 +0100)
Following [1], USB controllers have to declare DMA capabilities in
order for them to be used by adding the HCD_DMA flag to their hc_driver
struct.

[1] 7b81cb6bddd2 ("usb: add a HCD_DMA flag instead of guestimating DMA capabilities")

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c

index 9a150d6..70cce7a 100644 (file)
@@ -138,7 +138,7 @@ static struct hc_driver dwc_otg_hc_driver = {
 
        .irq = dwc_otg_hcd_irq,
 
-       .flags = HCD_MEMORY | HCD_USB2,
+       .flags = HCD_MEMORY | HCD_DMA | HCD_USB2,
 
        //.reset =
        .start = hcd_start,