Skip to contentSkip to conversation

drm: fix doc warnings related to drm connector

PATCH In review Bragatheswaran Manickavel 3 participants 7 messages Sep 9, 2023 – Sep 10, 2023

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

PATCH 1/1 drm: fix doc warnings related to drm connector

Addressing drm dp/hdmi connector related kernel documentation warning and add more information about these values.

---
 drivers/gpu/drm/drm_connector.c | 2 ++
 include/drm/drm_connector.h     | 2 ++
 2 files changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +2 -0
index bf8371dc2a61..084c95785dda 100644
@@ -2203,6 +2203,7 @@ static int drm_mode_create_colorspace_property(struct drm_connector *connector,
 /**
  * drm_mode_create_hdmi_colorspace_property - create hdmi colorspace property
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get hdmi supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to desired
  * HDMI connectors.
@@ -2227,6 +2228,7 @@ EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);
 /**
  * drm_mode_create_dp_colorspace_property - create dp colorspace property
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get dp supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to desired
  * DP connectors.
include/drm/drm_connector.h +2 -0
index d300fde6c1a4..556d66dd122c 100644
@@ -498,6 +498,8 @@ enum drm_privacy_screen_status {
  *   ITU-R BT.601 colorimetry format
  *   The DP spec does not say whether this is the 525 or the 625
  *   line version.
+ * @DRM_MODE_COLORIMETRY_COUNT:
+ *   Represents the count of colorspaces.
  */
 enum drm_colorspace {
 	/* For Default case, driver will set the colorspace */
Signature · 1 line
2.34.1
#1 lore raw
Quoted 2 lines · Bragatheswaran Manickavel

Addressing drm dp/hdmi connector related kernel documentation warning and add more information about these values.

What are these?

Quoted 32 lines
---
 drivers/gpu/drm/drm_connector.c | 2 ++
 include/drm/drm_connector.h     | 2 ++
 2 files changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +2 -0
index bf8371dc2a61..084c95785dda 100644
@@ -2203,6 +2203,7 @@ static int drm_mode_create_colorspace_property(struct drm_connector *connector,
 /**
  * drm_mode_create_hdmi_colorspace_property - create hdmi colorspace property
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get hdmi supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to desired
  * HDMI connectors.
@@ -2227,6 +2228,7 @@ EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);
 /**
  * drm_mode_create_dp_colorspace_property - create dp colorspace property
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get dp supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to desired
  * DP connectors.
include/drm/drm_connector.h +0 -0
index d300fde6c1a4..556d66dd122c 100644

include/drm/drm_connector.h enum drm_privacy_screen_status { · line 505

Quoted 8 lines
include/drm/drm_connector.h +2 -0
@@ -498,6 +498,8 @@ enum drm_privacy_screen_status {
  *   ITU-R BT.601 colorimetry format
  *   The DP spec does not say whether this is the 525 or the 625
  *   line version.
+ * @DRM_MODE_COLORIMETRY_COUNT:
+ *   Represents the count of colorspaces.
  */
 enum drm_colorspace {
 	/* For Default case, driver will set the colorspace */

Oh, you mean to add description for colorspace-related fields.

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#2 lore raw
Quoted 6 lines · Bagas Sanjaya
Quoted 2 lines · Bragatheswaran Manickavel

Addressing drm dp/hdmi connector related kernel documentation warning and add more information about these values.

What are these?

There are already patches for these issues.

Please check latest linux-next and make patches to it instead of using mainline.

Thanks.

Quoted 46 lines
Quoted 32 lines
---
 drivers/gpu/drm/drm_connector.c | 2 ++
 include/drm/drm_connector.h     | 2 ++
 2 files changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +2 -0
index bf8371dc2a61..084c95785dda 100644
@@ -2203,6 +2203,7 @@ static int drm_mode_create_colorspace_property(struct drm_connector *connector,
 /**
  * drm_mode_create_hdmi_colorspace_property - create hdmi colorspace property
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get hdmi supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to desired
  * HDMI connectors.
@@ -2227,6 +2228,7 @@ EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);
 /**
  * drm_mode_create_dp_colorspace_property - create dp colorspace property
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get dp supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to desired
  * DP connectors.
include/drm/drm_connector.h +0 -0
index d300fde6c1a4..556d66dd122c 100644

include/drm/drm_connector.h enum drm_privacy_screen_status { · line 505

Quoted 8 lines
include/drm/drm_connector.h +2 -0
@@ -498,6 +498,8 @@ enum drm_privacy_screen_status {
  *   ITU-R BT.601 colorimetry format
  *   The DP spec does not say whether this is the 525 or the 625
  *   line version.
+ * @DRM_MODE_COLORIMETRY_COUNT:
+ *   Represents the count of colorspaces.
  */
 enum drm_colorspace {
 	/* For Default case, driver will set the colorspace */

Oh, you mean to add description for colorspace-related fields.

Thanks.

Signature · 1 line
~Randy
#3 lore raw
Quoted 3 lines · Randy Dunlap
Quoted 1 line · Bagas Sanjaya

On Sat, Sep 09, 2023 at 04:33:43PM +0530, Bragatheswaran Manickavel

Quoted 9 lines · wrote:
Quoted 5 lines
Quoted 2 lines

Addressing drm dp/hdmi connector related kernel documentation warning and add more information about these values.

What are these?

There are already patches for these issues.

Please check latest linux-next and make patches to it instead of using

mainline.

Quoted 2 lines

Thanks.

Just had a look at the latest next-20230908. Changes of include/drm/drm_connector.h are
not present.

Thanks,

Quoted 11 lines
Quoted 11 lines

Review

Quoted 11 lines
---
 drivers/gpu/drm/drm_connector.c | 2 ++
 include/drm/drm_connector.h     | 2 ++
 2 files changed, 4 insertions(+)
(quoted diff) +0 -0

b/drivers/gpu/drm/drm_connector.c

Quoted 4 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c static int

Quoted 4 lines

index bf8371dc2a61..084c95785dda 100644

drivers/gpu/drm/drm_connector.c +0 -0
@@ -2203,6 +2203,7 @@ static int

drm_mode_create_colorspace_property(struct drm_connector *connector,

Quoted 2 lines
Quoted 2 lines

drivers/gpu/drm/drm_connector.c static int · line 2204

Quoted 2 lines
drivers/gpu/drm/drm_connector.c +0 -0
 /**
  * drm_mode_create_hdmi_colorspace_property - create hdmi colorspace

property

Quoted 4 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c static int drm_mode_create_colorspace_property(struct drm_connector *connector,

Quoted 4 lines
drivers/gpu/drm/drm_connector.c +1 -0
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get hdmi supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to

desired

Quoted 2 lines
Quoted 2 lines

drivers/gpu/drm/drm_connector.c

Quoted 2 lines
drivers/gpu/drm/drm_connector.c +0 -0
  * HDMI connectors.
@@ -2227,6 +2228,7 @@

EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);

Quoted 2 lines
Quoted 2 lines

drivers/gpu/drm/drm_connector.c line 2229

Quoted 2 lines
drivers/gpu/drm/drm_connector.c +0 -0
 /**
  * drm_mode_create_dp_colorspace_property - create dp colorspace

property

Quoted 4 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);

Quoted 4 lines
drivers/gpu/drm/drm_connector.c +1 -0
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get dp supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to

desired

Quoted 17 lines
Quoted 17 lines
Quoted 6 lines
drivers/gpu/drm/drm_connector.c +0 -0
  * DP connectors.
include/drm/drm_connector.h +0 -0
index d300fde6c1a4..556d66dd122c 100644

include/drm/drm_connector.h enum drm_privacy_screen_status { · line 505

Quoted 8 lines
include/drm/drm_connector.h +2 -0
@@ -498,6 +498,8 @@ enum drm_privacy_screen_status {
  *   ITU-R BT.601 colorimetry format
  *   The DP spec does not say whether this is the 525 or the 625
  *   line version.
+ * @DRM_MODE_COLORIMETRY_COUNT:
+ *   Represents the count of colorspaces.
  */
 enum drm_colorspace {
     /* For Default case, driver will set the colorspace */

Oh, you mean to add description for colorspace-related fields.

Quoted 5 lines
Quoted 3 lines

Thanks.

--

~Randy

#5 lore raw
In reply to Randy Dunlap
Quoted 3 lines · Randy Dunlap
Quoted 1 line · Bagas Sanjaya

On Sat, Sep 09, 2023 at 04:33:43PM +0530, Bragatheswaran Manickavel

Quoted 9 lines · wrote:
Quoted 5 lines
Quoted 2 lines

Addressing drm dp/hdmi connector related kernel documentation warning and add more information about these values.

What are these?

There are already patches for these issues.

Please check latest linux-next and make patches to it instead of using

mainline.

Quoted 2 lines

Thanks.

Just had a look at the latest next-20230908. Changes of include/drm/drm_connector.h are
not present.

Thanks,

Quoted 9 lines
Quoted 9 lines

Review

Quoted 9 lines
---
 drivers/gpu/drm/drm_connector.c | 2 ++
 include/drm/drm_connector.h     | 2 ++
 2 files changed, 4 insertions(+)
(quoted diff) +0 -0

b/drivers/gpu/drm/drm_connector.c

Quoted 4 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c static int

Quoted 4 lines

index bf8371dc2a61..084c95785dda 100644

drivers/gpu/drm/drm_connector.c +0 -0
@@ -2203,6 +2203,7 @@ static int

drm_mode_create_colorspace_property(struct drm_connector *connector,

Quoted 2 lines
Quoted 2 lines

drivers/gpu/drm/drm_connector.c static int · line 2204

Quoted 2 lines
drivers/gpu/drm/drm_connector.c +0 -0
 /**
  * drm_mode_create_hdmi_colorspace_property - create hdmi colorspace

property

Quoted 4 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c static int drm_mode_create_colorspace_property(struct drm_connector *connector,

Quoted 4 lines
drivers/gpu/drm/drm_connector.c +1 -0
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get hdmi supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to

desired

Quoted 2 lines
Quoted 2 lines

drivers/gpu/drm/drm_connector.c

Quoted 2 lines
drivers/gpu/drm/drm_connector.c +0 -0
  * HDMI connectors.
@@ -2227,6 +2228,7 @@

EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);

Quoted 2 lines
Quoted 2 lines

drivers/gpu/drm/drm_connector.c line 2229

Quoted 2 lines
drivers/gpu/drm/drm_connector.c +0 -0
 /**
  * drm_mode_create_dp_colorspace_property - create dp colorspace

property

Quoted 4 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);

Quoted 4 lines
drivers/gpu/drm/drm_connector.c +1 -0
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get dp supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to

desired

Quoted 17 lines
Quoted 17 lines
Quoted 6 lines
drivers/gpu/drm/drm_connector.c +0 -0
  * DP connectors.
include/drm/drm_connector.h +0 -0
index d300fde6c1a4..556d66dd122c 100644

include/drm/drm_connector.h enum drm_privacy_screen_status { · line 505

Quoted 8 lines
include/drm/drm_connector.h +2 -0
@@ -498,6 +498,8 @@ enum drm_privacy_screen_status {
  *   ITU-R BT.601 colorimetry format
  *   The DP spec does not say whether this is the 525 or the 625
  *   line version.
+ * @DRM_MODE_COLORIMETRY_COUNT:
+ *   Represents the count of colorspaces.
  */
 enum drm_colorspace {
     /* For Default case, driver will set the colorspace */

Oh, you mean to add description for colorspace-related fields.

Quoted 4 lines
Quoted 3 lines

Thanks.

--

#6 lore raw
In reply to Randy Dunlap
Quoted 2 lines · Randy Dunlap
Quoted 1 line · Bagas Sanjaya

On Sat, Sep 09, 2023 at 04:33:43PM +0530, Bragatheswaran Manickavel

Quoted 9 lines · wrote:
Quoted 5 lines
Quoted 2 lines

Addressing drm dp/hdmi connector related kernel documentation warning and add more information about these values.

What are these?

There are already patches for these issues.

Please check latest linux-next and make patches to it instead of using

mainline.

Quoted 2 lines

Thanks.

Just had a look at the latest next-20230908. Changes of include/drm/drm_connector.h are
not present.

thanks,

Quoted 9 lines
Quoted 9 lines

Review

Quoted 9 lines
---
 drivers/gpu/drm/drm_connector.c | 2 ++
 include/drm/drm_connector.h     | 2 ++
 2 files changed, 4 insertions(+)
(quoted diff) +0 -0

b/drivers/gpu/drm/drm_connector.c

Quoted 4 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c static int

Quoted 4 lines

index bf8371dc2a61..084c95785dda 100644

drivers/gpu/drm/drm_connector.c +0 -0
@@ -2203,6 +2203,7 @@ static int

drm_mode_create_colorspace_property(struct drm_connector *connector,

Quoted 2 lines
Quoted 2 lines

drivers/gpu/drm/drm_connector.c static int · line 2204

Quoted 2 lines
drivers/gpu/drm/drm_connector.c +0 -0
 /**
  * drm_mode_create_hdmi_colorspace_property - create hdmi colorspace

property

Quoted 4 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c static int drm_mode_create_colorspace_property(struct drm_connector *connector,

Quoted 4 lines
drivers/gpu/drm/drm_connector.c +1 -0
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get hdmi supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to

desired

Quoted 2 lines
Quoted 2 lines

drivers/gpu/drm/drm_connector.c

Quoted 2 lines
drivers/gpu/drm/drm_connector.c +0 -0
  * HDMI connectors.
@@ -2227,6 +2228,7 @@

EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);

Quoted 2 lines
Quoted 2 lines

drivers/gpu/drm/drm_connector.c line 2229

Quoted 2 lines
drivers/gpu/drm/drm_connector.c +0 -0
 /**
  * drm_mode_create_dp_colorspace_property - create dp colorspace

property

Quoted 4 lines
Quoted 4 lines

drivers/gpu/drm/drm_connector.c EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);

Quoted 4 lines
drivers/gpu/drm/drm_connector.c +1 -0
  * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get dp supported colorspaces.
  *
  * Called by a driver the first time it's needed, must be attached to

desired

Quoted 17 lines
Quoted 17 lines
Quoted 6 lines
drivers/gpu/drm/drm_connector.c +0 -0
  * DP connectors.
include/drm/drm_connector.h +0 -0
index d300fde6c1a4..556d66dd122c 100644

include/drm/drm_connector.h enum drm_privacy_screen_status { · line 505

Quoted 8 lines
include/drm/drm_connector.h +2 -0
@@ -498,6 +498,8 @@ enum drm_privacy_screen_status {
  *   ITU-R BT.601 colorimetry format
  *   The DP spec does not say whether this is the 525 or the 625
  *   line version.
+ * @DRM_MODE_COLORIMETRY_COUNT:
+ *   Represents the count of colorspaces.
  */
 enum drm_colorspace {
     /* For Default case, driver will set the colorspace */

Oh, you mean to add description for colorspace-related fields.

Quoted 1 line
Quoted 1 line

Thanks.

--

#4 lore raw
In reply to Bragatheswaran Manickavel
Quoted 9 lines · Bragatheswaran Manickavel
Quoted 9 lines · On Sun, 10 Sept 2023 at 09:29, Randy Dunlap <[email protected]…
Quoted 6 lines · Bagas Sanjaya
Quoted 2 lines · Bragatheswaran Manickavel

Addressing drm dp/hdmi connector related kernel documentation warning and add more information about these values.

What are these?

Quoted 8 lines
Quoted 5 lines

There are already patches for these issues.

Please check latest linux-next and make patches to it instead of using mainline.

Thanks.

Just had a look at the latest next-20230908. Changes of include/drm/drm_connector.h are not present.

That's correct. The patch for that was sent on Sept. 6 and applied to a drm git tree on Sept. 7.

It's here: https://lore.kernel.org/all/[email protected]/

Quoted 49 lines
Quoted 43 lines
Quoted 43 lines
Quoted 32 lines
Signed-off-by Bragatheswaran Manickavel <[email protected] <mailto:[email protected]>>

---
 drivers/gpu/drm/drm_connector.c | 2 ++
 include/drm/drm_connector.h     | 2 ++

 2 files changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +2 -0
index bf8371dc2a61..084c95785dda 100644
@@ -2203,6 +2203,7 @@ static int drm_mode_create_colorspace_property(struct drm_connector *connector,
  /**
   * drm_mode_create_hdmi_colorspace_property - create hdmi colorspace property
   * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get hdmi supported colorspaces.
   *
   * Called by a driver the first time it's needed, must be attached to desired
   * HDMI connectors.
@@ -2227,6 +2228,7 @@ EXPORT_SYMBOL(drm_mode_create_hdmi_colorspace_property);
  /**
   * drm_mode_create_dp_colorspace_property - create dp colorspace property
   * @connector: connector to create the Colorspace property on.
+ * @supported_colorspaces: to get dp supported colorspaces.
   *
   * Called by a driver the first time it's needed, must be attached to desired
   * DP connectors.
include/drm/drm_connector.h +0 -0
index d300fde6c1a4..556d66dd122c 100644

include/drm/drm_connector.h enum drm_privacy_screen_status { · line 505

Quoted 8 lines
include/drm/drm_connector.h +2 -0
@@ -498,6 +498,8 @@ enum drm_privacy_screen_status {
   *   ITU-R BT.601 colorimetry format
   *   The DP spec does not say whether this is the 525 or the 625
   *   line version.
+ * @DRM_MODE_COLORIMETRY_COUNT:
+ *   Represents the count of colorspaces.
   */
  enum drm_colorspace {
      /* For Default case, driver will set the colorspace */

Oh, you mean to add description for colorspace-related fields.

Quoted 5 lines
Quoted 3 lines

Thanks.

--

~Randy

Signature · 1 line
~Randy