Skip to contentSkip to conversation

drm/bridge: ite-it6505: add missing Kconfig option select

PATCH Applied Fabien Parent 2 participants 5 messages Apr 26, 2022 – May 4, 2022

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

PATCH 1/1 drm/bridge: ite-it6505: add missing Kconfig option select

The IT6505 is using functions provided by the DRM_DP_HELPER driver. In order to avoid having the bridge enabled but the helper disabled, let's add a select in order to be sure that the DP helper functions are always available.

Fixes b5c84a9edcd4 ("drm/bridge: add it6505 driver")
---
 drivers/gpu/drm/bridge/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/Kconfig +1 -0
index 007e5a282f67..2145b08f9534 100644
@@ -78,6 +78,7 @@ config DRM_ITE_IT6505
         tristate "ITE IT6505 DisplayPort bridge"
         depends on OF
         select DRM_KMS_HELPER
+        select DRM_DP_HELPER
         select EXTCON
         help
           ITE IT6505 DisplayPort bridge chip driver.
Signature · 1 line
2.36.0
#1 lore raw
Quoted 16 lines · Fabien Parent

The IT6505 is using functions provided by the DRM_DP_HELPER driver. In order to avoid having the bridge enabled but the helper disabled, let's add a select in order to be sure that the DP helper functions are always available.

Fixes b5c84a9edcd4 ("drm/bridge: add it6505 driver")
---
  drivers/gpu/drm/bridge/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/Kconfig +0 -0
index 007e5a282f67..2145b08f9534 100644

drivers/gpu/drm/bridge/Kconfig config DRM_ITE_IT6505 · line 84

Quoted 7 lines
drivers/gpu/drm/bridge/Kconfig +1 -0
@@ -78,6 +78,7 @@ config DRM_ITE_IT6505
          tristate "ITE IT6505 DisplayPort bridge"
          depends on OF
          select DRM_KMS_HELPER
+        select DRM_DP_HELPER
          select EXTCON
          help
            ITE IT6505 DisplayPort bridge chip driver.

http://lore.kernel.org/r/[email protected] also select DRM_DP_AUX_BUS, can you check if this is really neaded ?

Neil

#2 lore raw
Quoted 12 lines · Neil Armstrong
Quoted 11 lines · Fabien Parent

The IT6505 is using functions provided by the DRM_DP_HELPER driver. In order to avoid having the bridge enabled but the helper disabled, let's add a select in order to be sure that the DP helper functions are always available.

Fixes b5c84a9edcd4 ("drm/bridge: add it6505 driver")
---
  drivers/gpu/drm/bridge/Kconfig | 1 +
  1 file changed, 1 insertion(+)
Quoted 15 lines

drivers/gpu/drm/bridge/Kconfig config DRM_ITE_IT6505 · line 84

Quoted 12 lines
drivers/gpu/drm/bridge/Kconfig +1 -0
index 007e5a282f67..2145b08f9534 100644
@@ -78,6 +78,7 @@ config DRM_ITE_IT6505
          tristate "ITE IT6505 DisplayPort bridge"
          depends on OF
          select DRM_KMS_HELPER
+        select DRM_DP_HELPER
          select EXTCON
          help
            ITE IT6505 DisplayPort bridge chip driver.

http://lore.kernel.org/r/[email protected] also select DRM_DP_AUX_BUS, can you check if this is really neaded ?

Oops, I didn't notice that patch.

Anyway I can successfully link with the following config:
CONFIG_DRM_ITE_IT6505=y
CONFIG_DRM_DP_AUX_BUS=m
CONFIG_DRM_DP_HELPER=y

But I cannot with the following config:
CONFIG_DRM_ITE_IT6505=y
CONFIG_DRM_DP_AUX_BUS=m
CONFIG_DRM_DP_HELPER=m

This suggest that DRM_DP_AUX_BUS is not required for that driver.

Fabien

Quoted 2 lines

Neil

Reviewed-by
#3 lore raw

Hi,

Quoted 36 lines · Fabien Parent
Quoted 12 lines · Neil Armstrong
Quoted 11 lines · Fabien Parent

The IT6505 is using functions provided by the DRM_DP_HELPER driver. In order to avoid having the bridge enabled but the helper disabled, let's add a select in order to be sure that the DP helper functions are always available.

Fixes b5c84a9edcd4 ("drm/bridge: add it6505 driver")
---
   drivers/gpu/drm/bridge/Kconfig | 1 +
   1 file changed, 1 insertion(+)
Quoted 15 lines

drivers/gpu/drm/bridge/Kconfig config DRM_ITE_IT6505 · line 84

Quoted 12 lines
drivers/gpu/drm/bridge/Kconfig +1 -0
index 007e5a282f67..2145b08f9534 100644
@@ -78,6 +78,7 @@ config DRM_ITE_IT6505
           tristate "ITE IT6505 DisplayPort bridge"
           depends on OF
           select DRM_KMS_HELPER
+        select DRM_DP_HELPER
           select EXTCON
           help
             ITE IT6505 DisplayPort bridge chip driver.

http://lore.kernel.org/r/[email protected] also select DRM_DP_AUX_BUS, can you check if this is really neaded ?

Oops, I didn't notice that patch.

Anyway I can successfully link with the following config:
CONFIG_DRM_ITE_IT6505=y
CONFIG_DRM_DP_AUX_BUS=m
CONFIG_DRM_DP_HELPER=y

Quoted 6 lines

But I cannot with the following config:
CONFIG_DRM_ITE_IT6505=y
CONFIG_DRM_DP_AUX_BUS=m
CONFIG_DRM_DP_HELPER=m

This suggest that DRM_DP_AUX_BUS is not required for that driver.

Thanks for confirming:

Quoted 5 lines

Fabien

Quoted 2 lines

Neil

#4 lore raw
In reply to Fabien Parent

Hi,

Quoted 6 lines · Fabien Parent

The IT6505 is using functions provided by the DRM_DP_HELPER driver. In order to avoid having the bridge enabled but the helper disabled, let's add a select in order to be sure that the DP helper functions are always available.

Thanks, Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-fixes)

[1/1] drm/bridge: ite-it6505: add missing Kconfig option select

      https://cgit.freedesktop.org/drm/drm-misc/commit/?id=841e512ffb64898db6322c0619f6bbc41266d86f
Signature · 1 line
Neil