Skip to contentSkip to conversation

drm/drm_bridge: Document 'connector' parameter in drm_bridge_detect()

PATCH In review Sukrut Heroorkar 2 participants 5 messages Aug 2, 2025 – Aug 4, 2025

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

PATCH 1/1 drm/drm_bridge: Document 'connector' parameter in drm_bridge_detect()

drm: drm_bridge: fix missing parameter documentation

The function documentation was missing description for the parameter 'connector'.

Add missing function parameter documentation for drm_bridge_detect() to fix kernel-doc warnings.

Warning: drivers/gpu/drm/drm_bridge.c:1241 function parameter 'connector' not described in 'drm_bridge_detect'

---
 drivers/gpu/drm/drm_bridge.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_bridge.c +1 -0
index dd45d9b504d8..387a3b6cda54 100644
@@ -1227,6 +1227,7 @@ EXPORT_SYMBOL(drm_atomic_bridge_chain_check);
 /**
  * drm_bridge_detect - check if anything is attached to the bridge output
  * @bridge: bridge control structure
+ * @connector: connector associated with the bridge
  *
  * If the bridge supports output detection, as reported by the
  * DRM_BRIDGE_OP_DETECT bridge ops flag, call &drm_bridge_funcs.detect for the
Signature · 1 line
2.43.0
#1 lore raw
Quoted 10 lines · Sukrut Heroorkar

drm: drm_bridge: fix missing parameter documentation

The function documentation was missing description for the parameter 'connector'.

Add missing function parameter documentation for drm_bridge_detect() to fix kernel-doc warnings.

Warning: drivers/gpu/drm/drm_bridge.c:1241 function parameter 'connector' not described in 'drm_bridge_detect'

A Fixes: tag would be nice.

Quoted 10 lines
---
 drivers/gpu/drm/drm_bridge.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_bridge.c +0 -0
index dd45d9b504d8..387a3b6cda54 100644

drivers/gpu/drm/drm_bridge.c EXPORT_SYMBOL(drm_atomic_bridge_chain_check); · line 1230

Quoted 4 lines
drivers/gpu/drm/drm_bridge.c +1 -0
@@ -1227,6 +1227,7 @@ EXPORT_SYMBOL(drm_atomic_bridge_chain_check);
 /**
  * drm_bridge_detect - check if anything is attached to the bridge output
  * @bridge: bridge control structure
+ * @connector: connector associated with the bridge

"associated with the bridge" isn't very clear.

Quoted 3 lines
drivers/gpu/drm/drm_bridge.c +0 -0
  *
  * If the bridge supports output detection, as reported by the
  * DRM_BRIDGE_OP_DETECT bridge ops flag, call &drm_bridge_funcs.detect for the
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw

Hi Laurent,

Quoted 32 lines · Laurent Pinchart
Quoted 10 lines · Sukrut Heroorkar

drm: drm_bridge: fix missing parameter documentation

The function documentation was missing description for the parameter 'connector'.

Add missing function parameter documentation for drm_bridge_detect() to fix kernel-doc warnings.

Warning: drivers/gpu/drm/drm_bridge.c:1241 function parameter 'connector' not described in 'drm_bridge_detect'

A Fixes: tag would be nice.

Quoted 10 lines
---
 drivers/gpu/drm/drm_bridge.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_bridge.c +0 -0
index dd45d9b504d8..387a3b6cda54 100644

drivers/gpu/drm/drm_bridge.c EXPORT_SYMBOL(drm_atomic_bridge_chain_check); · line 1230

Quoted 4 lines
drivers/gpu/drm/drm_bridge.c +1 -0
@@ -1227,6 +1227,7 @@ EXPORT_SYMBOL(drm_atomic_bridge_chain_check);
 /**
  * drm_bridge_detect - check if anything is attached to the bridge output
  * @bridge: bridge control structure
+ * @connector: connector associated with the bridge

"associated with the bridge" isn't very clear.

Quoted 8 lines

drivers/gpu/drm/drm_bridge.c EXPORT_SYMBOL(drm_atomic_bridge_chain_check); · line 1233

Quoted 3 lines
drivers/gpu/drm/drm_bridge.c +0 -0
  *
  * If the bridge supports output detection, as reported by the
  * DRM_BRIDGE_OP_DETECT bridge ops flag, call &drm_bridge_funcs.detect for the

--
Regards,

Laurent Pinchart

Thanks for the review.
I will send a V2 shortly with updated connector description and Fixes tag, as suggested.

#3 lore raw
Quoted 32 lines · sukrut heroorkar
Quoted 31 lines · Laurent Pinchart
Quoted 10 lines · Sukrut Heroorkar

drm: drm_bridge: fix missing parameter documentation

The function documentation was missing description for the parameter 'connector'.

Add missing function parameter documentation for drm_bridge_detect() to fix kernel-doc warnings.

Warning: drivers/gpu/drm/drm_bridge.c:1241 function parameter 'connector' not described in 'drm_bridge_detect'

A Fixes: tag would be nice.

Quoted 10 lines
---
 drivers/gpu/drm/drm_bridge.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_bridge.c +0 -0
index dd45d9b504d8..387a3b6cda54 100644

drivers/gpu/drm/drm_bridge.c EXPORT_SYMBOL(drm_atomic_bridge_chain_check); · line 1230

Quoted 4 lines
drivers/gpu/drm/drm_bridge.c +1 -0
@@ -1227,6 +1227,7 @@ EXPORT_SYMBOL(drm_atomic_bridge_chain_check);
 /**
  * drm_bridge_detect - check if anything is attached to the bridge output
  * @bridge: bridge control structure
+ * @connector: connector associated with the bridge

"associated with the bridge" isn't very clear.

Quoted 7 lines
Quoted 3 lines

drivers/gpu/drm/drm_bridge.c EXPORT_SYMBOL(drm_atomic_bridge_chain_check); · line 1233

Quoted 3 lines
drivers/gpu/drm/drm_bridge.c +0 -0
  *
  * If the bridge supports output detection, as reported by the
  * DRM_BRIDGE_OP_DETECT bridge ops flag, call &drm_bridge_funcs.detect for the

Thanks for the review.
I will send a V2 shortly with updated connector description and Fixes tag, as suggested.

It appears that a competing patch got merged in the meantime:
https://lore.kernel.org/r/[email protected]

It was submitted earlier than yours, and the usual rule in the kernel is that the first patch wins when there are multiple similar or identical submissions.

Signature · 3 lines
Regards,

Laurent Pinchart
#4 lore raw
Quoted 45 lines · Laurent Pinchart
Quoted 32 lines · sukrut heroorkar
Quoted 31 lines · Laurent Pinchart
Quoted 10 lines · Sukrut Heroorkar

drm: drm_bridge: fix missing parameter documentation

The function documentation was missing description for the parameter 'connector'.

Add missing function parameter documentation for drm_bridge_detect() to fix kernel-doc warnings.

Warning: drivers/gpu/drm/drm_bridge.c:1241 function parameter 'connector' not described in 'drm_bridge_detect'

A Fixes: tag would be nice.

Quoted 10 lines
---
 drivers/gpu/drm/drm_bridge.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_bridge.c +0 -0
index dd45d9b504d8..387a3b6cda54 100644

drivers/gpu/drm/drm_bridge.c EXPORT_SYMBOL(drm_atomic_bridge_chain_check); · line 1230

Quoted 4 lines
drivers/gpu/drm/drm_bridge.c +1 -0
@@ -1227,6 +1227,7 @@ EXPORT_SYMBOL(drm_atomic_bridge_chain_check);
 /**
  * drm_bridge_detect - check if anything is attached to the bridge output
  * @bridge: bridge control structure
+ * @connector: connector associated with the bridge

"associated with the bridge" isn't very clear.

Quoted 7 lines
Quoted 3 lines

drivers/gpu/drm/drm_bridge.c EXPORT_SYMBOL(drm_atomic_bridge_chain_check); · line 1233

Quoted 3 lines
drivers/gpu/drm/drm_bridge.c +0 -0
  *
  * If the bridge supports output detection, as reported by the
  * DRM_BRIDGE_OP_DETECT bridge ops flag, call &drm_bridge_funcs.detect for the

Thanks for the review.
I will send a V2 shortly with updated connector description and Fixes tag, as suggested.

It appears that a competing patch got merged in the meantime:
https://lore.kernel.org/r/[email protected]

Quoted 8 lines

It was submitted earlier than yours, and the usual rule in the kernel is that the first patch wins when there are multiple similar or identical submissions.

--
Regards,

Laurent Pinchart

Thanks for the update.

Regards,
Sukrut.