Skip to contentSkip to conversation

Documentation: usb: dwc3: add missing doc for sg

PATCH In review Luis Felipe Hernandez 2 participants 2 messages Nov 19, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: usb: dwc3: add missing doc for sg

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.

---
 drivers/usb/dwc3/core.h | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/dwc3/core.h +1 -0
index ee73789326bc..a53e6e14f27d 100644
@@ -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
Signature · 1 line
2.47.0
maintainer
#1 lore raw
Quoted 30 lines · Luis Felipe Hernandez

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.

---
 drivers/usb/dwc3/core.h | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/dwc3/core.h +1 -0
index ee73789326bc..a53e6e14f27d 100644
@@ -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
Signature · 1 line
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