* [PATCH] Documentation: usb: dwc3: add missing doc for sg
@ 2024-11-19 2:03 Luis Felipe Hernandez
2024-11-19 2:08 ` Thinh Nguyen
0 siblings, 1 reply; 2+ messages in thread
From: Luis Felipe Hernandez @ 2024-11-19 2:03 UTC (permalink / raw)
To: Thinh.Nguyen, gregkh; +Cc: Luis Felipe Hernandez, skhan, ricardo, linux-usb
This patch updates the documentation for the dwc3_request struct to
describe the purpose of the sg field. This field is a pointer to a
scatter-gather list used for managing memory buffers in DMA
operations during USB transfers.
- Add description for 'sg' in the doc block for dwc3_request
This change resolves a documentation warning related to the missing
description for this field.
Signed-off-by: Luis Felipe Hernandez <luis.hernandez093@gmail.com>
---
drivers/usb/dwc3/core.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index ee73789326bc..a53e6e14f27d 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -941,6 +941,7 @@ struct dwc3_hwparams {
* @request: struct usb_request to be transferred
* @list: a list_head used for request queueing
* @dep: struct dwc3_ep owning this request
+ * @sg: pointer to the sg for this request
* @start_sg: pointer to the sg which should be queued next
* @num_pending_sgs: counter to pending sgs
* @remaining: amount of data remaining
--
2.47.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation: usb: dwc3: add missing doc for sg
2024-11-19 2:03 [PATCH] Documentation: usb: dwc3: add missing doc for sg Luis Felipe Hernandez
@ 2024-11-19 2:08 ` Thinh Nguyen
0 siblings, 0 replies; 2+ messages in thread
From: Thinh Nguyen @ 2024-11-19 2:08 UTC (permalink / raw)
To: Luis Felipe Hernandez
Cc: Thinh Nguyen, gregkh@linuxfoundation.org,
skhan@linuxfoundation.org, ricardo@marliere.net,
linux-usb@vger.kernel.org
On Mon, Nov 18, 2024, Luis Felipe Hernandez wrote:
> This patch updates the documentation for the dwc3_request struct to
> describe the purpose of the sg field. This field is a pointer to a
> scatter-gather list used for managing memory buffers in DMA
> operations during USB transfers.
>
> - Add description for 'sg' in the doc block for dwc3_request
>
> This change resolves a documentation warning related to the missing
> description for this field.
>
> Signed-off-by: Luis Felipe Hernandez <luis.hernandez093@gmail.com>
> ---
> drivers/usb/dwc3/core.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
> index ee73789326bc..a53e6e14f27d 100644
> --- a/drivers/usb/dwc3/core.h
> +++ b/drivers/usb/dwc3/core.h
> @@ -941,6 +941,7 @@ struct dwc3_hwparams {
> * @request: struct usb_request to be transferred
> * @list: a list_head used for request queueing
> * @dep: struct dwc3_ep owning this request
> + * @sg: pointer to the sg for this request
> * @start_sg: pointer to the sg which should be queued next
> * @num_pending_sgs: counter to pending sgs
> * @remaining: amount of data remaining
> --
> 2.47.0
>
No, you should remove the sg member, and not putting back the
description. It's no longer in use. I forgot to remove it in my patch
for some reason.
BR,
Thinh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-19 2:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-19 2:03 [PATCH] Documentation: usb: dwc3: add missing doc for sg Luis Felipe Hernandez
2024-11-19 2:08 ` Thinh Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox