Skip to contentSkip to conversation

usb: octeon-hcd: fix the kernel-doc of struct octeon_hcd

PATCH RESEND New Orgad Shaneh 2 participants 2 messages Nov 17 USB

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 usb: octeon-hcd: fix the kernel-doc of struct octeon_hcd

The struct octeon_hcd comment opens with /** but names its members without the @ prefix, so kernel-doc sees none of them and warns about every member. aebbc7d63407 added sof_timer without a line at all, which the robot reports as a new W=1 warning.

Prefix the members with @, drop "pipe", which is no longer a member, and describe the three that were missing: periodic, nonperiodic and sof_timer. scripts/kernel-doc -Wall reports nothing for octeon_hcd afterwards.

Fixes aebbc7d63407 ("usb: octeon-hcd: sleep on an hrtimer for far-off periodic transfers")

---
RESEND: no change but the Assisted-by tag, now dropped (an LLM helped write this patch). The warning is still there in v7.4-rc1, and this applies to it unchanged.
v1: https://lore.kernel.org/all/[email protected]/

 drivers/usb/host/octeon-hcd.c | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)
drivers/usb/host/octeon-hcd.c +17 -14
index 4929c6a..d6ba52b 100644
@@ -348,20 +348,23 @@ struct cvmx_usb_tx_fifo {
 /**
  * struct octeon_hcd - the state of the USB block
  *
- * lock:		   Serialization lock.
- * init_flags:		   Flags passed to initialize.
- * index:		   Which USB block this is for.
- * idle_hardware_channels: Bit set for every idle hardware channel.
- * usbcx_hprt:		   Stored port status so we don't need to read a CSR to
- *			   determine splits.
- * pipe_for_channel:	   Map channels to pipes.
- * pipe:		   Storage for pipes.
- * indent:		   Used by debug output to indent functions.
- * port_status:		   Last port status used for change notification.
- * idle_pipes:		   List of open pipes that have no transactions.
- * active_pipes:	   Active pipes indexed by transfer type.
- * frame_number:	   Increments every SOF interrupt for time keeping.
- * active_split:	   Points to the current active split, or NULL.
+ * @lock:		Serialization lock.
+ * @init_flags:		Flags passed to initialize.
+ * @index:		Which USB block this is for.
+ * @idle_hardware_channels: Bit set for every idle hardware channel.
+ * @usbcx_hprt:		Stored port status so we don't need to read a CSR to
+ *			determine splits.
+ * @pipe_for_channel:	Map channels to pipes.
+ * @indent:		Used by debug output to indent functions.
+ * @port_status:	Last port status used for change notification.
+ * @idle_pipes:		List of open pipes that have no transactions.
+ * @active_pipes:	Active pipes indexed by transfer type.
+ * @frame_number:	Increments every SOF interrupt for time keeping.
+ * @active_split:	Points to the current active split, or NULL.
+ * @periodic:		Pending TX FIFO writes for periodic channels.
+ * @nonperiodic:	Pending TX FIFO writes for non-periodic channels.
+ * @sof_timer:		Polls the block when the next periodic transfer is
+ *			due, so SOF interrupts can stay off until then.
  */
 struct octeon_hcd {
 	spinlock_t lock; /* serialization lock */
Signature · 1 line
2.53.0
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 10 lines

The struct octeon_hcd comment opens with /** but names its members without the @ prefix, so kernel-doc sees none of them and warns about every member. aebbc7d63407 added sof_timer without a line at all, which the robot reports as a new W=1 warning.

Prefix the members with @, drop "pipe", which is no longer a member, and describe the three that were missing: periodic, nonperiodic and sof_timer. scripts/kernel-doc -Wall reports nothing for octeon_hcd afterwards.

Quoted 4 lines
Fixes aebbc7d63407 ("usb: octeon-hcd: sleep on an hrtimer for far-off periodic transfers")

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1