1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-21 05:44:14 +00:00
Christoph Hellwig edfbcb321f usb: add a hcd_uses_dma helper
The USB buffer allocation code is the only place in the usb core (and in
fact the whole kernel) that uses is_device_dma_capable, while the URB
mapping code uses the uses_dma flag in struct usb_bus.  Switch the buffer
allocation to use the uses_dma flag used by the rest of the USB code,
and create a helper in hcd.h that checks this flag as well as the
CONFIG_HAS_DMA to simplify the caller a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20190811080520.21712-3-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-15 15:18:05 +02:00
..
2019-07-18 11:05:25 -07:00
2019-07-17 09:55:43 -07:00
2019-07-15 20:18:40 -07:00
2019-07-11 18:11:21 -07:00
2019-07-19 17:13:56 -07:00
2019-07-18 14:32:33 -07:00
2019-08-15 15:18:05 +02:00
2019-07-18 09:12:34 -07:00
2019-07-10 09:00:57 -06:00
2019-07-15 21:20:52 -07:00
2019-07-18 09:49:30 +02:00
2019-07-27 08:25:51 -07:00
2019-07-17 09:55:43 -07:00
2019-07-23 13:59:33 -07:00
\n
2019-07-10 20:09:17 -07:00
2019-07-12 15:13:55 -07:00
2019-07-14 19:42:11 -07:00
2019-07-14 19:42:11 -07:00
2019-07-09 14:15:37 -07:00
2019-07-26 17:01:29 -06:00
2019-07-17 09:55:43 -07:00
2019-07-16 19:23:25 -07:00
2019-07-15 20:44:49 -07:00
2019-07-09 14:32:14 -06:00
2019-07-12 11:05:43 -07:00
2019-07-13 10:36:53 -07:00
2019-08-15 15:18:05 +02:00
2019-07-18 10:20:13 -06:00
2019-07-14 16:51:47 -07:00
2019-07-10 09:00:57 -06:00