Skip to content

Commit fcb4769

Browse files
Xu Yanggregkh
authored andcommitted
usb: core: add urb->sgt parameter description
The parameter description of urb->sgt is lost, this will add it for completeness. Reported-by: Stephen Rothwell <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Xu Yang <[email protected]> Fixes: 488e6ea ("usb: core: add dma-noncoherent buffer alloc and free API") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5cc1f66 commit fcb4769

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/usb.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,10 @@ typedef void (*usb_complete_t)(struct urb *);
14551455
* @sg: scatter gather buffer list, the buffer size of each element in
14561456
* the list (except the last) must be divisible by the endpoint's
14571457
* max packet size if no_sg_constraint isn't set in 'struct usb_bus'
1458+
* @sgt: used to hold a scatter gather table returned by usb_alloc_noncoherent(),
1459+
* which describes the allocated non-coherent and possibly non-contiguous
1460+
* memory and is guaranteed to have 1 single DMA mapped segment. The
1461+
* allocated memory needs to be freed by usb_free_noncoherent().
14581462
* @num_mapped_sgs: (internal) number of mapped sg entries
14591463
* @num_sgs: number of entries in the sg list
14601464
* @transfer_buffer_length: How big is transfer_buffer. The transfer may

0 commit comments

Comments
 (0)