Message ID | 20231206123828.587065-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4074067vqy; Wed, 6 Dec 2023 04:38:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3c3vD9ZX01UK7H3wJu0+a8zxB2PwEXW3jntil06aGNcvz27ZxBPma+dLPEeyOlFRLwAKL X-Received: by 2002:a17:902:8484:b0:1d0:a9fa:58e5 with SMTP id c4-20020a170902848400b001d0a9fa58e5mr468536plo.132.1701866323939; Wed, 06 Dec 2023 04:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701866323; cv=none; d=google.com; s=arc-20160816; b=Zo+X69NGs0sPGuTkvfCVIj5/Jdbb08vmiKvwEDOd0c0Si8B+ZCYwjlDE6OK0EfcYtU 4itu3Chi6vdfrSxhzJZ09qJfl5GY53VCXAxrJr0U5juIi3pgXDD5KizMczcfiko4DnIZ 1AV9xCg5FtDd7Djwvo+yXPqxaMokt+gGnbbyvwudpo8Rh3SXuUS7HUGZqUQePtUN+ji1 CeNi72VWQhujkLC4Ojk4VjphV1BQQkFw1SnP2Vk4ZJteSK5gVKXD9ISt+lkWO7HuQ4/8 O/0KgEeMwiY997MvTCRJI2ttNdUybOF0QFzBIzHIlVIHFDFXDrKftaNyo6Gc6YpQAUt9 M10g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GhsWAgQLTecLvwhsmkAYTURMIkR/jCbsqWBv8kJc3FA=; fh=DiqnbqviK8jzOg+90TmxxaZDx7+602Ob/YRu9OMswGo=; b=QmvbZoElM+TIv4QGeo2HDzi7CgjmW6mG6kowM37VDBcE8fyWgK1JPJozlBn81F8Lrt D+p/ishWnownVHDaPsyBwwX/H0EA/oBb62fHqqmPCSzTWzUEVesIhM+EWieCLW86z1df mqYTOjCPSCbXlll7CcWFVNGIbhFc9b7hxe2v4OVqgAhvOk1PBjcCQvlhOH4KoOlMwTRq T6/HsYbOFgFNMtvphjdhP32S6gIo6u02jGkaTquYNI8qq7/vS4rGiPoY+Xu8FlhRNVGK DEdud2Y34vWZ2spFJVu1D/yIGKz4Lwm6je+JCyrrrDdwG911lqBFaMrSFkNKsmmMSPeb DgCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mionK04X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z10-20020a170902708a00b001d0a35a098bsi5128141plk.566.2023.12.06.04.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 04:38:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mionK04X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 066E8803B0BC; Wed, 6 Dec 2023 04:38:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378329AbjLFMia (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 6 Dec 2023 07:38:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378321AbjLFMi3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 6 Dec 2023 07:38:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE52E11F for <linux-kernel@vger.kernel.org>; Wed, 6 Dec 2023 04:38:34 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CFDAC433C8; Wed, 6 Dec 2023 12:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701866314; bh=Fj8YObxpZ6Ytr5jvxIskxu3K4FrlW7trloaLma4Dwnk=; h=From:To:Cc:Subject:Date:From; b=mionK04XCoEyEbBjHqMndI2zOeorIQi2PMaZFCfIo1mYYyTlEIjRFDvbm3WWSK6Xz 4eERufRZbWwPsaT6F4LrEyr2EDrhWuWZF5+5kY6h5giUmxKs9+SkCP1/IyCcWcYR2o 7j/NMF2pooxe3dXERIgj+q2lIdPdvinvaiCnKTbiUyxTjWgTzuLkW6f6cywtP6TmE5 z5AUmRMUchiUjN/DJtgrhCwBFirUd5/NfEjwSlhle6TNHBXP4Oe0Wr36LTxabi1g9+ 3Hq777JBeb/p7i6kLflFKGmq3fgUIwKhWhOgOU3ZykK10t9oUwh4jGbLJn4b8BnK1r EGArkXXZ0E0Uw== From: Arnd Bergmann <arnd@kernel.org> To: Heikki Krogerus <heikki.krogerus@linux.intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de>, Neil Armstrong <neil.armstrong@linaro.org>, Bjorn Andersson <andersson@kernel.org>, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: typec: nb7vpq904m: add CONFIG_OF dependency Date: Wed, 6 Dec 2023 13:38:14 +0100 Message-Id: <20231206123828.587065-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 04:38:39 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784536182315260384 X-GMAIL-MSGID: 1784536182315260384 |
Series |
usb: typec: nb7vpq904m: add CONFIG_OF dependency
|
|
Commit Message
Arnd Bergmann
Dec. 6, 2023, 12:38 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> DRM_AUX_BRIDGE depends on CONFIG_OF, so the same dependency is needed here to avoid a build failure: WARNING: unmet direct dependencies detected for DRM_AUX_BRIDGE Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && OF [=n] Selected by [y]: - TYPEC_MUX_NB7VPQ904M [=y] && USB_SUPPORT [=y] && TYPEC [=y] && I2C [=y] && (DRM [=y] || DRM [=y]=n) && DRM_BRIDGE [=y] x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_register': aux-bridge.c:(.text+0x13b): undefined reference to `auxiliary_device_init' x86_64-linux-ld: aux-bridge.c:(.text+0x14d): undefined reference to `__auxiliary_device_add' x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_init': aux-bridge.c:(.init.text+0x15): undefined reference to `__auxiliary_driver_register' x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_exit': aux-bridge.c:(.exit.text+0x9): undefined reference to `auxiliary_driver_unregister' Fixes: c5d296bad640 ("usb: typec: nb7vpq904m: switch to DRM_AUX_BRIDGE") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/usb/typec/mux/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On 12/6/23 04:38, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > DRM_AUX_BRIDGE depends on CONFIG_OF, so the same dependency is needed > here to avoid a build failure: > > WARNING: unmet direct dependencies detected for DRM_AUX_BRIDGE > Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && OF [=n] > Selected by [y]: > - TYPEC_MUX_NB7VPQ904M [=y] && USB_SUPPORT [=y] && TYPEC [=y] && I2C [=y] && (DRM [=y] || DRM [=y]=n) && DRM_BRIDGE [=y] > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_register': > aux-bridge.c:(.text+0x13b): undefined reference to `auxiliary_device_init' > x86_64-linux-ld: aux-bridge.c:(.text+0x14d): undefined reference to `__auxiliary_device_add' > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_init': > aux-bridge.c:(.init.text+0x15): undefined reference to `__auxiliary_driver_register' > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_exit': > aux-bridge.c:(.exit.text+0x9): undefined reference to `auxiliary_driver_unregister' > > Fixes: c5d296bad640 ("usb: typec: nb7vpq904m: switch to DRM_AUX_BRIDGE") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Thanks. > --- > drivers/usb/typec/mux/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig > index 5120942f309d..818624f59120 100644 > --- a/drivers/usb/typec/mux/Kconfig > +++ b/drivers/usb/typec/mux/Kconfig > @@ -40,6 +40,7 @@ config TYPEC_MUX_NB7VPQ904M > tristate "On Semiconductor NB7VPQ904M Type-C redriver driver" > depends on I2C > depends on DRM || DRM=n > + depends on OF > select DRM_AUX_BRIDGE if DRM_BRIDGE > select REGMAP_I2C > help
On Wed, Dec 06, 2023 at 01:38:14PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > DRM_AUX_BRIDGE depends on CONFIG_OF, so the same dependency is needed > here to avoid a build failure: > > WARNING: unmet direct dependencies detected for DRM_AUX_BRIDGE > Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && OF [=n] > Selected by [y]: > - TYPEC_MUX_NB7VPQ904M [=y] && USB_SUPPORT [=y] && TYPEC [=y] && I2C [=y] && (DRM [=y] || DRM [=y]=n) && DRM_BRIDGE [=y] > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_register': > aux-bridge.c:(.text+0x13b): undefined reference to `auxiliary_device_init' > x86_64-linux-ld: aux-bridge.c:(.text+0x14d): undefined reference to `__auxiliary_device_add' > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_init': > aux-bridge.c:(.init.text+0x15): undefined reference to `__auxiliary_driver_register' > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_exit': > aux-bridge.c:(.exit.text+0x9): undefined reference to `auxiliary_driver_unregister' > > Fixes: c5d296bad640 ("usb: typec: nb7vpq904m: switch to DRM_AUX_BRIDGE") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/usb/typec/mux/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig > index 5120942f309d..818624f59120 100644 > --- a/drivers/usb/typec/mux/Kconfig > +++ b/drivers/usb/typec/mux/Kconfig > @@ -40,6 +40,7 @@ config TYPEC_MUX_NB7VPQ904M > tristate "On Semiconductor NB7VPQ904M Type-C redriver driver" > depends on I2C > depends on DRM || DRM=n > + depends on OF > select DRM_AUX_BRIDGE if DRM_BRIDGE > select REGMAP_I2C > help Shouldn't DRM_BRIDGE depend on OF instead? thanks,
On Thu, 7 Dec 2023 at 13:53, Heikki Krogerus <heikki.krogerus@linux.intel.com> wrote: > > On Wed, Dec 06, 2023 at 01:38:14PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > > > DRM_AUX_BRIDGE depends on CONFIG_OF, so the same dependency is needed > > here to avoid a build failure: > > > > WARNING: unmet direct dependencies detected for DRM_AUX_BRIDGE > > Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && OF [=n] > > Selected by [y]: > > - TYPEC_MUX_NB7VPQ904M [=y] && USB_SUPPORT [=y] && TYPEC [=y] && I2C [=y] && (DRM [=y] || DRM [=y]=n) && DRM_BRIDGE [=y] > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_register': > > aux-bridge.c:(.text+0x13b): undefined reference to `auxiliary_device_init' > > x86_64-linux-ld: aux-bridge.c:(.text+0x14d): undefined reference to `__auxiliary_device_add' > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_init': > > aux-bridge.c:(.init.text+0x15): undefined reference to `__auxiliary_driver_register' > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_exit': > > aux-bridge.c:(.exit.text+0x9): undefined reference to `auxiliary_driver_unregister' > > > > Fixes: c5d296bad640 ("usb: typec: nb7vpq904m: switch to DRM_AUX_BRIDGE") > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > --- > > drivers/usb/typec/mux/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig > > index 5120942f309d..818624f59120 100644 > > --- a/drivers/usb/typec/mux/Kconfig > > +++ b/drivers/usb/typec/mux/Kconfig > > @@ -40,6 +40,7 @@ config TYPEC_MUX_NB7VPQ904M > > tristate "On Semiconductor NB7VPQ904M Type-C redriver driver" > > depends on I2C > > depends on DRM || DRM=n > > + depends on OF > > select DRM_AUX_BRIDGE if DRM_BRIDGE > > select REGMAP_I2C > > help > > Shouldn't DRM_BRIDGE depend on OF instead? No. DRM_AUX_BRIDGE depends on OF, DRM_BRIDGE framework doesn't.
On Thu, Dec 07, 2023 at 01:55:06PM +0200, Dmitry Baryshkov wrote: > On Thu, 7 Dec 2023 at 13:53, Heikki Krogerus > <heikki.krogerus@linux.intel.com> wrote: > > > > On Wed, Dec 06, 2023 at 01:38:14PM +0100, Arnd Bergmann wrote: > > > From: Arnd Bergmann <arnd@arndb.de> > > > > > > DRM_AUX_BRIDGE depends on CONFIG_OF, so the same dependency is needed > > > here to avoid a build failure: > > > > > > WARNING: unmet direct dependencies detected for DRM_AUX_BRIDGE > > > Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && OF [=n] > > > Selected by [y]: > > > - TYPEC_MUX_NB7VPQ904M [=y] && USB_SUPPORT [=y] && TYPEC [=y] && I2C [=y] && (DRM [=y] || DRM [=y]=n) && DRM_BRIDGE [=y] > > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_register': > > > aux-bridge.c:(.text+0x13b): undefined reference to `auxiliary_device_init' > > > x86_64-linux-ld: aux-bridge.c:(.text+0x14d): undefined reference to `__auxiliary_device_add' > > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_init': > > > aux-bridge.c:(.init.text+0x15): undefined reference to `__auxiliary_driver_register' > > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_exit': > > > aux-bridge.c:(.exit.text+0x9): undefined reference to `auxiliary_driver_unregister' > > > > > > Fixes: c5d296bad640 ("usb: typec: nb7vpq904m: switch to DRM_AUX_BRIDGE") > > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > > --- > > > drivers/usb/typec/mux/Kconfig | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig > > > index 5120942f309d..818624f59120 100644 > > > --- a/drivers/usb/typec/mux/Kconfig > > > +++ b/drivers/usb/typec/mux/Kconfig > > > @@ -40,6 +40,7 @@ config TYPEC_MUX_NB7VPQ904M > > > tristate "On Semiconductor NB7VPQ904M Type-C redriver driver" > > > depends on I2C > > > depends on DRM || DRM=n > > > + depends on OF > > > select DRM_AUX_BRIDGE if DRM_BRIDGE > > > select REGMAP_I2C > > > help > > > > Shouldn't DRM_BRIDGE depend on OF instead? > > No. DRM_AUX_BRIDGE depends on OF, DRM_BRIDGE framework doesn't. Okay, so this probable should also be select DRM_AUX_BRIDGE if DRM_BRIDGE and OF No? thanks,
On Thu, 7 Dec 2023 at 13:57, Heikki Krogerus <heikki.krogerus@linux.intel.com> wrote: > > On Thu, Dec 07, 2023 at 01:55:06PM +0200, Dmitry Baryshkov wrote: > > On Thu, 7 Dec 2023 at 13:53, Heikki Krogerus > > <heikki.krogerus@linux.intel.com> wrote: > > > > > > On Wed, Dec 06, 2023 at 01:38:14PM +0100, Arnd Bergmann wrote: > > > > From: Arnd Bergmann <arnd@arndb.de> > > > > > > > > DRM_AUX_BRIDGE depends on CONFIG_OF, so the same dependency is needed > > > > here to avoid a build failure: > > > > > > > > WARNING: unmet direct dependencies detected for DRM_AUX_BRIDGE > > > > Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && OF [=n] > > > > Selected by [y]: > > > > - TYPEC_MUX_NB7VPQ904M [=y] && USB_SUPPORT [=y] && TYPEC [=y] && I2C [=y] && (DRM [=y] || DRM [=y]=n) && DRM_BRIDGE [=y] > > > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_register': > > > > aux-bridge.c:(.text+0x13b): undefined reference to `auxiliary_device_init' > > > > x86_64-linux-ld: aux-bridge.c:(.text+0x14d): undefined reference to `__auxiliary_device_add' > > > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_init': > > > > aux-bridge.c:(.init.text+0x15): undefined reference to `__auxiliary_driver_register' > > > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_exit': > > > > aux-bridge.c:(.exit.text+0x9): undefined reference to `auxiliary_driver_unregister' > > > > > > > > Fixes: c5d296bad640 ("usb: typec: nb7vpq904m: switch to DRM_AUX_BRIDGE") > > > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > > > --- > > > > drivers/usb/typec/mux/Kconfig | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig > > > > index 5120942f309d..818624f59120 100644 > > > > --- a/drivers/usb/typec/mux/Kconfig > > > > +++ b/drivers/usb/typec/mux/Kconfig > > > > @@ -40,6 +40,7 @@ config TYPEC_MUX_NB7VPQ904M > > > > tristate "On Semiconductor NB7VPQ904M Type-C redriver driver" > > > > depends on I2C > > > > depends on DRM || DRM=n > > > > + depends on OF > > > > select DRM_AUX_BRIDGE if DRM_BRIDGE > > > > select REGMAP_I2C > > > > help > > > > > > Shouldn't DRM_BRIDGE depend on OF instead? > > > > No. DRM_AUX_BRIDGE depends on OF, DRM_BRIDGE framework doesn't. > > Okay, so this probable should also be > > select DRM_AUX_BRIDGE if DRM_BRIDGE and OF Yes, this is what a patch from Nathan does: https://patchwork.freedesktop.org/patch/570638/?series=127385&rev=1
On Thu, Dec 7, 2023, at 12:57, Heikki Krogerus wrote: > On Thu, Dec 07, 2023 at 01:55:06PM +0200, Dmitry Baryshkov wrote: > Okay, so this probable should also be > > select DRM_AUX_BRIDGE if DRM_BRIDGE and OF > > No? I think that fails if CONFIG_OF is disabled and CONFIG_DRM_AUX_BRIDGE, since drm_aux_bridge_register() will still be called from a built-in driver in that case but can't be linked against. Arnd
On Thu, Dec 07, 2023 at 01:58:31PM +0200, Dmitry Baryshkov wrote: > On Thu, 7 Dec 2023 at 13:57, Heikki Krogerus > <heikki.krogerus@linux.intel.com> wrote: > > > > On Thu, Dec 07, 2023 at 01:55:06PM +0200, Dmitry Baryshkov wrote: > > > On Thu, 7 Dec 2023 at 13:53, Heikki Krogerus > > > <heikki.krogerus@linux.intel.com> wrote: > > > > > > > > On Wed, Dec 06, 2023 at 01:38:14PM +0100, Arnd Bergmann wrote: > > > > > From: Arnd Bergmann <arnd@arndb.de> > > > > > > > > > > DRM_AUX_BRIDGE depends on CONFIG_OF, so the same dependency is needed > > > > > here to avoid a build failure: > > > > > > > > > > WARNING: unmet direct dependencies detected for DRM_AUX_BRIDGE > > > > > Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && OF [=n] > > > > > Selected by [y]: > > > > > - TYPEC_MUX_NB7VPQ904M [=y] && USB_SUPPORT [=y] && TYPEC [=y] && I2C [=y] && (DRM [=y] || DRM [=y]=n) && DRM_BRIDGE [=y] > > > > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_register': > > > > > aux-bridge.c:(.text+0x13b): undefined reference to `auxiliary_device_init' > > > > > x86_64-linux-ld: aux-bridge.c:(.text+0x14d): undefined reference to `__auxiliary_device_add' > > > > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_init': > > > > > aux-bridge.c:(.init.text+0x15): undefined reference to `__auxiliary_driver_register' > > > > > x86_64-linux-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `drm_aux_bridge_drv_exit': > > > > > aux-bridge.c:(.exit.text+0x9): undefined reference to `auxiliary_driver_unregister' > > > > > > > > > > Fixes: c5d296bad640 ("usb: typec: nb7vpq904m: switch to DRM_AUX_BRIDGE") > > > > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > > > > --- > > > > > drivers/usb/typec/mux/Kconfig | 1 + > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig > > > > > index 5120942f309d..818624f59120 100644 > > > > > --- a/drivers/usb/typec/mux/Kconfig > > > > > +++ b/drivers/usb/typec/mux/Kconfig > > > > > @@ -40,6 +40,7 @@ config TYPEC_MUX_NB7VPQ904M > > > > > tristate "On Semiconductor NB7VPQ904M Type-C redriver driver" > > > > > depends on I2C > > > > > depends on DRM || DRM=n > > > > > + depends on OF > > > > > select DRM_AUX_BRIDGE if DRM_BRIDGE > > > > > select REGMAP_I2C > > > > > help > > > > > > > > Shouldn't DRM_BRIDGE depend on OF instead? > > > > > > No. DRM_AUX_BRIDGE depends on OF, DRM_BRIDGE framework doesn't. > > > > Okay, so this probable should also be > > > > select DRM_AUX_BRIDGE if DRM_BRIDGE and OF > > Yes, this is what a patch from Nathan does: > https://patchwork.freedesktop.org/patch/570638/?series=127385&rev=1 Ah, sorry about the noise. thanks,
On Thu, 7 Dec 2023 at 14:00, Arnd Bergmann <arnd@arndb.de> wrote: > > On Thu, Dec 7, 2023, at 12:57, Heikki Krogerus wrote: > > On Thu, Dec 07, 2023 at 01:55:06PM +0200, Dmitry Baryshkov wrote: > > > Okay, so this probable should also be > > > > select DRM_AUX_BRIDGE if DRM_BRIDGE and OF > > > > No? > > I think that fails if CONFIG_OF is disabled and > CONFIG_DRM_AUX_BRIDGE, since drm_aux_bridge_register() > will still be called from a built-in driver in that > case but can't be linked against. If DRM_AUX_BRIDGE is not enabled, then the stubs from include/drm/bridge/aux-bridge will be used instead.
On Thu, Dec 7, 2023, at 13:12, Dmitry Baryshkov wrote: > On Thu, 7 Dec 2023 at 14:00, Arnd Bergmann <arnd@arndb.de> wrote: >> >> On Thu, Dec 7, 2023, at 12:57, Heikki Krogerus wrote: >> > On Thu, Dec 07, 2023 at 01:55:06PM +0200, Dmitry Baryshkov wrote: >> >> > Okay, so this probable should also be >> > >> > select DRM_AUX_BRIDGE if DRM_BRIDGE and OF >> > >> > No? >> >> I think that fails if CONFIG_OF is disabled and >> CONFIG_DRM_AUX_BRIDGE, since drm_aux_bridge_register() >> will still be called from a built-in driver in that >> case but can't be linked against. > > If DRM_AUX_BRIDGE is not enabled, then the stubs from > include/drm/bridge/aux-bridge will be used instead. Sorry, I meant to write CONFIG_DRM_AUX_BRIDGE=m here. Arnd
On Thu, 7 Dec 2023 at 14:17, Arnd Bergmann <arnd@arndb.de> wrote: > > On Thu, Dec 7, 2023, at 13:12, Dmitry Baryshkov wrote: > > On Thu, 7 Dec 2023 at 14:00, Arnd Bergmann <arnd@arndb.de> wrote: > >> > >> On Thu, Dec 7, 2023, at 12:57, Heikki Krogerus wrote: > >> > On Thu, Dec 07, 2023 at 01:55:06PM +0200, Dmitry Baryshkov wrote: > >> > >> > Okay, so this probable should also be > >> > > >> > select DRM_AUX_BRIDGE if DRM_BRIDGE and OF > >> > > >> > No? > >> > >> I think that fails if CONFIG_OF is disabled and > >> CONFIG_DRM_AUX_BRIDGE, since drm_aux_bridge_register() > >> will still be called from a built-in driver in that > >> case but can't be linked against. > > > > If DRM_AUX_BRIDGE is not enabled, then the stubs from > > include/drm/bridge/aux-bridge will be used instead. > > Sorry, I meant to write CONFIG_DRM_AUX_BRIDGE=m here. Like having NB7VPQ904M=y, OF=n and DRM_AUX_BRIDGE=m? And the select will not work, since the condition is not fulfilled. Good question.
diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig index 5120942f309d..818624f59120 100644 --- a/drivers/usb/typec/mux/Kconfig +++ b/drivers/usb/typec/mux/Kconfig @@ -40,6 +40,7 @@ config TYPEC_MUX_NB7VPQ904M tristate "On Semiconductor NB7VPQ904M Type-C redriver driver" depends on I2C depends on DRM || DRM=n + depends on OF select DRM_AUX_BRIDGE if DRM_BRIDGE select REGMAP_I2C help