Hi Greg,
Some platforms don't have DMA, but we should still be able to build USB
drivers for these platforms. They could still be used through vhci_hcd,
usbip_host, or maybe something like USB passthrough in UML from a
capable host.
This patch series allows to compile USB on platforms where NO_DMA=y.
I've been using it for quite a while to make allmodconfig/allyesconfig
build for m68k/sun3.
Vegard used this on UML to read a USB flash drive plugged into the host
machine using USB-over-IP.
Changes compared to v1:
- Replace remaining #ifdefs by IS_ENABLED() checks,
- Add to patch description that this actually allows using USB on UML,
- Add Acked-by.
Thanks!
Geert Uytterhoeven (3):
usb: core: Allow compilation on platforms where NO_DMA=y
usb: host: Host drivers relying on DMA should depend on HAS_DMA
usb: dwc2: USB_DWC2 should depend on HAS_DMA
drivers/usb/core/buffer.c | 18 ++++++++++++------
drivers/usb/core/hcd.c | 16 ++++++++++------
drivers/usb/dwc2/Kconfig | 1 +
drivers/usb/host/Kconfig | 5 ++++-
4 files changed, 27 insertions(+), 13 deletions(-)
--
1.9.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html