linux-stable/drivers/usb
Christoph Hellwig 7b81cb6bdd usb: add a HCD_DMA flag instead of guestimating DMA capabilities
The usb core is the only major place in the kernel that checks for
a non-NULL device dma_mask to see if a device is DMA capable.  This
is generally a bad idea, as all major busses always set up a DMA mask,
even if the device is not DMA capable - in fact bus layers like PCI
can't even know if a device is DMA capable at enumeration time.  This
leads to lots of workaround in HCD drivers, and also prevented us from
setting up a DMA mask for platform devices by default last time we
tried.

Replace this guess with an explicit HCD_DMA that is set by drivers that
appear to have DMA support.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20190816062435.881-4-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-21 10:03:35 -07:00
..
atm USB: atm: cxacru: convert to use dev_groups 2019-08-09 07:55:45 +02:00
c67x00
chipidea Merge 5.3-rc5 into usb-next 2019-08-19 07:15:42 +02:00
class Merge 5.3-rc5 into usb-next 2019-08-19 07:15:42 +02:00
common USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
core usb: add a HCD_DMA flag instead of guestimating DMA capabilities 2019-08-21 10:03:35 -07:00
dwc2 usb: add a HCD_DMA flag instead of guestimating DMA capabilities 2019-08-21 10:03:35 -07:00
dwc3 usb: dwc3: meson-g12a: use devm_platform_ioremap_resource() to simplify code 2019-08-05 17:19:46 +02:00
early drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
gadget Merge 5.3-rc5 into usb-next 2019-08-19 07:15:42 +02:00
host usb: add a HCD_DMA flag instead of guestimating DMA capabilities 2019-08-21 10:03:35 -07:00
image scsi: usb: image: microtek: use sg helper to iterate over scatterlist 2019-06-20 15:21:32 -04:00
isp1760 usb: add a HCD_DMA flag instead of guestimating DMA capabilities 2019-08-21 10:03:35 -07:00
misc Merge 5.3-rc4 into usb-next 2019-08-12 07:42:51 +02:00
mon docs: usb: rename files to .rst and add them to drivers-api 2019-06-20 14:28:36 +02:00
mtu3 usb: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:29:18 +02:00
musb usb: add a HCD_DMA flag instead of guestimating DMA capabilities 2019-08-21 10:03:35 -07:00
phy USB: phy: fsl-usb: convert platform driver to use dev_groups 2019-08-16 12:33:18 +02:00
renesas_usbhs usb: add a HCD_DMA flag instead of guestimating DMA capabilities 2019-08-21 10:03:35 -07:00
roles device connection: Find connections also by checking the references 2019-06-03 10:55:38 +02:00
serial USB: serial: option: add the BroadMobi BM818 card 2019-08-15 13:46:22 +02:00
storage USB: storage: isd200: remove redundant assignment to variable sendToTransport 2019-08-15 21:30:14 +02:00
typec usb: typec: fusb302: Call fusb302_debugfs_init earlier 2019-08-18 13:32:26 +02:00
usbip USB: usbip: convert to use dev_groups 2019-08-09 07:55:45 +02:00
Kconfig USB: Move wusbcore and UWB to staging as it is obsolete 2019-08-08 07:52:01 +02:00
Makefile USB: Move wusbcore and UWB to staging as it is obsolete 2019-08-08 07:52:01 +02:00
usb-skeleton.c usb: usb-skeleton: make comment block in line with coding style 2019-08-21 09:57:36 -07:00