Jack Pham
31fe084ffa
usb: gadget: core: unmap request from DMA only if previously mapped
...
In the SG case this is already handled since a non-zero
request->num_mapped_sgs is a clear indicator that dma_map_sg()
had been called. While it would be nice to do the same for the
singly mapped case by simply checking for non-zero request->dma,
it's conceivable that 0 is a valid dma_addr_t handle. Hence add
a flag 'dma_mapped' to struct usb_request and use this to
determine the need to call dma_unmap_single(). Otherwise, if a
request is not DMA mapped then the result of calling
usb_request_unmap_request() would safely be a no-op.
Signed-off-by: Jack Pham <jackp@codeaurora.org >
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com >
2017-08-15 14:18:54 +03:00
..
2017-08-01 16:46:45 +02:00
2017-08-01 16:46:44 +02:00
2017-07-12 10:04:56 -07:00
2017-07-13 15:58:02 -04:00
2017-07-11 09:55:47 -07:00
2017-07-17 21:21:24 -04:00
2017-07-27 16:40:17 +03:00
2017-07-13 12:07:44 -07:00
2017-07-27 13:43:22 +01:00
2017-07-17 15:05:52 +02:00
2017-07-19 08:55:18 -07:00
2017-07-13 13:56:24 -07:00
2017-08-15 14:18:54 +03:00
2017-07-12 16:26:05 -07:00
2017-07-20 15:20:27 -07:00
2017-07-17 13:37:56 -07:00
2017-07-14 12:37:41 -07:00
2017-07-19 08:55:18 -07:00
2017-07-19 08:55:18 -07:00
2017-07-14 13:12:32 -07:00
2017-08-02 17:16:12 -07:00
2017-07-12 16:26:00 -07:00
2017-07-19 08:55:18 -07:00
2017-07-26 15:55:44 -04:00
2017-07-19 08:55:18 -07:00
2017-07-14 16:09:55 -03:00
2017-07-20 16:09:10 +02:00
2017-07-12 16:26:01 -07:00
2017-07-19 08:55:18 -07:00
2017-07-20 09:27:29 -04:00
2017-07-12 13:32:46 +02:00
2017-07-12 16:26:03 -07:00
2017-08-15 12:46:03 +03:00
2017-07-15 12:00:42 -07:00
2017-07-19 08:55:18 -07:00
2017-07-31 22:01:21 -07:00
2017-07-27 15:40:02 +02:00
2017-07-17 09:22:34 -07:00
2017-07-12 16:25:59 -07:00
2017-07-12 16:26:00 -07:00
2017-07-19 08:55:18 -07:00
2017-08-02 16:34:47 -07:00
2017-08-02 22:41:02 +02:00
2017-07-19 15:33:50 -07:00
2017-07-19 08:55:18 -07:00
2017-07-12 16:26:04 -07:00
2017-08-02 16:34:46 -07:00
2017-07-19 08:55:18 -07:00
2017-07-17 17:01:10 +02:00
2017-07-13 16:00:15 -04:00
2017-07-13 16:00:12 -04:00
2017-07-21 11:51:19 -04:00
2017-07-13 17:12:07 -04:00
2017-08-01 16:28:55 -04:00
2017-07-12 16:26:02 -07:00
2017-07-25 18:05:25 +02:00
2017-07-25 17:58:32 +02:00
2017-08-02 17:16:13 -07:00
2017-07-25 12:33:43 -07:00
2017-07-15 12:44:02 -07:00
2017-07-12 23:11:23 +02:00
2017-07-19 08:55:18 -07:00
2017-07-19 08:55:18 -07:00
2017-07-12 16:26:03 -07:00
2017-07-15 12:00:42 -07:00
2017-07-19 08:55:18 -07:00
2017-07-20 09:27:29 -04:00
2017-07-19 08:55:18 -07:00
2017-07-24 17:50:37 +02:00
2017-07-26 13:30:23 -06:00
2017-07-25 11:17:02 +02:00
2017-07-25 13:28:56 -04:00