Skip to contentSkip to conversation

soc: ti: k3-ringacc: Fixup documentation errors

PATCH Superseded Nishanth Menon 2 participants 3 messages Jun 21, 2023 TI Keystone multicore navigator drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Nishanth Menon

author maintainer
#0 lore raw

PATCH 1/1 soc: ti: k3-ringacc: Fixup documentation errors

Fixup couple of misses in documentation. This squashes the following
warnings:
drivers/soc/ti/k3-ringacc.c:135: warning: Function parameter or member 'tdown_complete' not described in 'k3_ring_state' drivers/soc/ti/k3-ringacc.c:238: warning: expecting prototype for struct k3_ringacc. Prototype was for struct k3_ringacc_soc_data instead

---
 drivers/soc/ti/k3-ringacc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/soc/ti/k3-ringacc.c +2 -1
index 8f131368a758..548b9f605d86 100644
@@ -125,6 +125,7 @@ struct k3_ring_ops {
  * @occ: Occupancy
  * @windex: Write index
  * @rindex: Read index
+ * @tdown_complete: Tear down complete state
  */
 struct k3_ring_state {
 	u32 free;
@@ -229,7 +230,7 @@ struct k3_ringacc {
 };
 
 /**
- * struct k3_ringacc - Rings accelerator SoC data
+ * struct k3_ringacc_soc_data - Rings accelerator SoC data
  *
  * @dma_ring_reset_quirk:  DMA reset w/a enable
  */
Signature · 1 line
2.40.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Nishanth Menon

Fixup couple of misses in documentation. This squashes the following
warnings:
drivers/soc/ti/k3-ringacc.c:135: warning: Function parameter or member 'tdown_complete' not described in 'k3_ring_state' drivers/soc/ti/k3-ringacc.c:238: warning: expecting prototype for struct k3_ringacc. Prototype was for struct k3_ringacc_soc_data instead

(more below)

Quoted 17 lines
---
 drivers/soc/ti/k3-ringacc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/soc/ti/k3-ringacc.c +1 -0
index 8f131368a758..548b9f605d86 100644
@@ -125,6 +125,7 @@ struct k3_ring_ops {
  * @occ: Occupancy
  * @windex: Write index
  * @rindex: Read index
+ * @tdown_complete: Tear down complete state
  */
 struct k3_ring_state {
 	u32 free;

drivers/soc/ti/k3-ringacc.c struct k3_ringacc { · line 235

Quoted 7 lines
drivers/soc/ti/k3-ringacc.c +1 -1
@@ -229,7 +230,7 @@ struct k3_ringacc {
 };
 
 /**
- * struct k3_ringacc - Rings accelerator SoC data
+ * struct k3_ringacc_soc_data - Rings accelerator SoC data
  *
  * @dma_ring_reset_quirk:  DMA reset w/a enable

What does "w/a" mean?

drivers/soc/ti/k3-ringacc.c struct k3_ringacc { · line 236

Quoted 1 line
drivers/soc/ti/k3-ringacc.c +0 -0
  */

Thanks.

Signature · 1 line
~Randy
author maintainer
#2 lore raw
Quoted 34 lines · Randy Dunlap
Quoted 7 lines · Nishanth Menon

Fixup couple of misses in documentation. This squashes the following
warnings:
drivers/soc/ti/k3-ringacc.c:135: warning: Function parameter or member 'tdown_complete' not described in 'k3_ring_state' drivers/soc/ti/k3-ringacc.c:238: warning: expecting prototype for struct k3_ringacc. Prototype was for struct k3_ringacc_soc_data instead

(more below)

Quoted 19 lines
---
 drivers/soc/ti/k3-ringacc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/soc/ti/k3-ringacc.c +1 -0
index 8f131368a758..548b9f605d86 100644
@@ -125,6 +125,7 @@ struct k3_ring_ops {
  * @occ: Occupancy
  * @windex: Write index
  * @rindex: Read index
+ * @tdown_complete: Tear down complete state
  */
 struct k3_ring_state {
 	u32 free;
@@ -229,7 +230,7 @@ struct k3_ringacc {
 };
 
Quoted 7 lines

drivers/soc/ti/k3-ringacc.c struct k3_ringacc { · line 235

Quoted 5 lines
drivers/soc/ti/k3-ringacc.c +1 -1
 /**
- * struct k3_ringacc - Rings accelerator SoC data
+ * struct k3_ringacc_soc_data - Rings accelerator SoC data
  *
  * @dma_ring_reset_quirk:  DMA reset w/a enable

What does "w/a" mean?

I think it means work around.. (going by the "quirk" terminology).. Let me respin this with w/a replaced with workaround as well.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D