Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10764487rwd; Thu, 22 Jun 2023 04:41:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5HAVdNQJfGa5XwmuU+WWaiGcRGSq8fu1QOGoqRMHX8dWSX/CJ63/Op+jtCAePIDUBDEXYQ X-Received: by 2002:a05:6a20:7da4:b0:11f:3f4b:9687 with SMTP id v36-20020a056a207da400b0011f3f4b9687mr19988603pzj.56.1687434101018; Thu, 22 Jun 2023 04:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687434101; cv=none; d=google.com; s=arc-20160816; b=Cg1Ri5BSvs6atq/3udtWzx9gi8G+OeN/yuI3plcJX2wgGUDvjhfcB/HyroF3O3VZ8Z MH9owkM9tO0noEwxWACqPuPNb24oxjDd3/0OotV5747sXGSNTaVKw8qyIkkdZR+D3vGF OnYtCSV3rsRJ6gW+dOuTQRvmv30xpEdFtIXn5cfNexYSTMAbWPlxXcynmpTRLa8bD9WH WsTjLEYE62yWCrL0Haj/RsAddD1PTG/DHIDTLzYvmd38teeplZDKXm8v21sL6e9cs5U9 fz51E8K3FonP6aTeckLsK90sGL808zYybZeLu7SnSaUlXo66101XP3f2CMDdqtB3UI31 tBPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=Aog9Wt7TDsOLeFf/oUN+PK0V2D/l+qGT79F3oMaxOv4=; b=PqDYEItgKZQiyRlWi6TtIf5zDg/pSX24OksqtXViHB4qTpx1wzTd3UKzbkjGEbjGv/ Fxvw8z+Rjks48WDRp9mUPJm6mcmMYjEghYjzJwfETjKufS+2fv+OdX5/cO48GsiFyOb5 P3o+zH5nmm6V4BGkFy7wJD280sztsM7CHKRlaYi9LZBJoxxyE5RoHKd3J3eaj50ZWqxw RrMubxVvXl4wkmhzJoKkI3f+Mr2RfIJ9L0cSyCApIzgF72EdyoGdHfP8K+Je1MfDmAKw KiTDGMuND83amCdpMykIgapLmLeUMjNLM9MjeBRn4p89Oz0g9o5RA3Y9cyemcVyUiKN7 X6kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=wSVxF69b; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YA6SkFmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a170902ca0200b001b69de1eaecsi2987408pld.489.2023.06.22.04.41.28; Thu, 22 Jun 2023 04:41:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=wSVxF69b; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YA6SkFmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230171AbjFVLYy (ORCPT + 99 others); Thu, 22 Jun 2023 07:24:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbjFVLYx (ORCPT ); Thu, 22 Jun 2023 07:24:53 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDDC819A9; Thu, 22 Jun 2023 04:24:51 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 3E8D05C00B1; Thu, 22 Jun 2023 07:24:51 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 22 Jun 2023 07:24:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1687433091; x=1687519491; bh=Ao g9Wt7TDsOLeFf/oUN+PK0V2D/l+qGT79F3oMaxOv4=; b=wSVxF69bqU+7foITvm btLlhWjR4nGZkGsc3YubNmpu6kdZEc4vlBaQIuQtZeKSChwf/7Qi9Eni/DMegslD PQaeqGZRKYvTSJpTRzDBqwhdnVKDFOymCB5dzOYLA8xclekO8E3NwOGJYIozeqtK CRlMKqGxEHRfFP+t3Lpc4RfwFRGIpkg2bAxbct8kIP2M3NWJ6Lem5JNltXwW5q3H 3HJ0HfZnZqt4vMo8n34yeNb+Af4CNCq4uyBPcC27vdy69Z2RoZfkbdHmwLJsQSXf b2KDIb+MDQUYNQMB7GQtiTDmEwG3tI7cMivz7HSumVT6AyuHTXIqC6QRv+I1gFjE euqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1687433091; x=1687519491; bh=Aog9Wt7TDsOLe Ff/oUN+PK0V2D/l+qGT79F3oMaxOv4=; b=YA6SkFmksYRGHbfAYJrSiQf0cWr2a YAOsdd6xggJ+YfCdEHapdGJ2xx6uV8cfxb2CAiJMUcTFeuTLTFLZTPb7u0vXEIR5 yi771tPQ0+UEHvA5LDCcqyh0jYW51AVALV9UFUP549ISbpa1BLHd3cLg+q0y5mTv fRpOlhFlUID987U+LQWCt0b8PHQ5bj7D2P/12hkwMSkIp5zFskShlcgwsON3uPt/ laWj9RyWM4wck9w4qmy39CpHOHNQdxyquzpaeAPwWu0GpbyLcvTi/+d72sdIiEiz dic51y7l6lxlG3QNN3ojSzcLhd25U1UvqeQOzCsQzbTuVT1c5AUhizIiQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeeguddgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id CA308B60086; Thu, 22 Jun 2023 07:24:50 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-499-gf27bbf33e2-fm-20230619.001-gf27bbf33 Mime-Version: 1.0 Message-Id: In-Reply-To: <286cf2d8-2da8-7203-ee53-bf08332fa519@linaro.org> References: <20230622101813.3453772-1-arnd@kernel.org> <286cf2d8-2da8-7203-ee53-bf08332fa519@linaro.org> Date: Thu, 22 Jun 2023 13:24:30 +0200 From: "Arnd Bergmann" To: "Neil Armstrong" , "Arnd Bergmann" , "Heikki Krogerus" , "Greg Kroah-Hartman" , "Dmitry Baryshkov" Cc: "Bjorn Andersson" , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: typec: nb7vpq904m: add CONFIG_DRM dependency Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 22, 2023, at 12:39, Neil Armstrong wrote: > Hi, > > On 22/06/2023 12:18, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> This driver calls directly into DRM functions and fails to link if >> that is disabled: >> >> ld.lld: error: undefined symbol: devm_drm_bridge_add >> ld.lld: error: undefined symbol: devm_drm_of_get_bridge >>>>> referenced by nb7vpq904m.c >>>>> drivers/usb/typec/mux/nb7vpq904m.o:(nb7vpq904m_probe) in archive vmlinux.a >> >> Fixes: 88d8f3ac9c67e ("usb: typec: add support for the nb7vpq904m Type-C Linear Redriver") >> Signed-off-by: Arnd Bergmann >> --- >> drivers/usb/typec/mux/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig >> index 8c4d6b8fb75c3..f53ae24b6c048 100644 >> --- a/drivers/usb/typec/mux/Kconfig >> +++ b/drivers/usb/typec/mux/Kconfig >> @@ -37,7 +37,7 @@ config TYPEC_MUX_INTEL_PMC >> >> config TYPEC_MUX_NB7VPQ904M >> tristate "On Semiconductor NB7VPQ904M Type-C redriver driver" >> - depends on I2C >> + depends on I2C && DRM >> select REGMAP_I2C >> help >> Say Y or M if your system has a On Semiconductor NB7VPQ904M Type-C > > I think it could be : > > + depends on DRM || DRM=n > + select DRM_PANEL_BRIDGE if DRM As far as I can tell, this would only avoid the link error against devm_drm_of_get_bridge(), but not the one against devm_drm_bridge_add(), which is defined in drm.ko through drivers/gpu/drm/drm_bridge.c. Arnd