]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: typec: ucsi: huawei-gaokin: add DRM dependency
authorArnd Bergmann <arnd@arndb.de>
Thu, 4 Dec 2025 10:11:07 +0000 (11:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Dec 2025 13:51:30 +0000 (14:51 +0100)
Selecting DRM_AUX_HPD_BRIDGE is not possible from a built-in driver when
CONFIG_DRM=m:

WARNING: unmet direct dependencies detected for DRM_AUX_HPD_BRIDGE
  Depends on [m]: HAS_IOMEM [=y] && DRM [=m] && DRM_BRIDGE [=y] && OF [=y]
  Selected by [y]:
  - UCSI_HUAWEI_GAOKUN [=y] && USB_SUPPORT [=y] && TYPEC [=y] && TYPEC_UCSI [=y] && EC_HUAWEI_GAOKUN [=y] && DRM_BRIDGE [=y] && OF [=y]

Add the same dependency we have in similar drivers to work around this.

Fixes: 00327d7f2c8c ("usb: typec: ucsi: add Huawei Matebook E Go ucsi driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20251204101111.1035975-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/Kconfig

index 7fcb1e1de5d6d1ab6ccdf6ca0977f3a024626a86..b812be4d0e674e231d540aed32f5f4fa78259837 100644 (file)
@@ -96,6 +96,7 @@ config UCSI_LENOVO_YOGA_C630
 config UCSI_HUAWEI_GAOKUN
        tristate "UCSI Interface Driver for Huawei Matebook E Go"
        depends on EC_HUAWEI_GAOKUN
+       depends on DRM || !DRM
        select DRM_AUX_HPD_BRIDGE if DRM_BRIDGE && OF
        help
          This driver enables UCSI support on the Huawei Matebook E Go tablet,