Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15814152rwd; Mon, 26 Jun 2023 01:29:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+EGjXoj+snMqKku+IJnLUwnl+j9MVU2FCOwt0BB8xdDjSTNgwEssIUOcp1lbVtJHoKVM1 X-Received: by 2002:a17:907:a40a:b0:989:6749:d61 with SMTP id sg10-20020a170907a40a00b0098967490d61mr14186077ejc.19.1687768187472; Mon, 26 Jun 2023 01:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687768187; cv=none; d=google.com; s=arc-20160816; b=HCi3ZxCgoCLEuujuygmsaMcVZQqN3sTaniarTc75pyjwIZrUdYmtSk6RwWSYdZQiaC AqkFyiaHwG00AORk+fH+uN9LgVUvXhE93e/8wEc/PyG58mFnuMb1CFSepckNCteHZ8uW h3oretZMALG+jy/Wv3rnbQjZDYG3+UPYp4Q+UqST3BsIBZ6PYPJmYvA99yp8d0ZOeb/3 MoAEgwndQwhhsZkmH4WK9bcg7U7+ppRCm9vx12E2bOtj1G2RzPF5fBBEwbGAsqHNFykg sNovS3zwnhvWFqmuKHkWsyW8hrwl7/L2EeMX/JOBFr9oBJGZHObw8FGMST/1EQB/1MR5 f3Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PZAouFZeP53a8JJ58qhNijo2Jx+EYiK3p3V1yMJ65HU=; fh=LOOzW5lqzf95TxnaGOJPD2dr1Q1W0C3PxBHYUsUrkAQ=; b=SH8NuOBgtk/RD3+mFOHICC7VarNtPQTiEec/gCGRPZ6xLmhFDnS/3DSTwSxDOPPX37 7unul4AfBt6ZP8dlnHSmeR9eNQlBYGCpeR05MwlOMzHoMfU6ZUG5eWR40fTO5cVqSuSA d3RVBC9zBNwf8aTpbz9VUanX22DHL4VSALzlyBjqo1j6z4QQHmlXgQjRNOggHavn0wEP oKUtclCXR6hY2VnCfmr5g0D9gdoG0/6aGGwYNMWOPE8ASXopuYIbC+hH0SAXAp2C1om7 fI1fWKFqZZ51WvfC4/E+kkkGbgfZkoBf3No+efmyv9e+Z7n6aBA5pL6i1tDs9Dogsv5u cXgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ZhCbPCt/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z23-20020a1709064e1700b00982a59bf247si2537626eju.1027.2023.06.26.01.29.20; Mon, 26 Jun 2023 01:29:47 -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=@intel.com header.s=Intel header.b="ZhCbPCt/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229835AbjFZICb (ORCPT + 99 others); Mon, 26 Jun 2023 04:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjFZICa (ORCPT ); Mon, 26 Jun 2023 04:02:30 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D530B83; Mon, 26 Jun 2023 01:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687766549; x=1719302549; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=33R3Tx+sLALtrskmrs2zu7v/fiTCIeLJSoVnhjKIrwU=; b=ZhCbPCt/g1IF00B4Fq+MdF75MwxRtMqiGl/YHRZBmpQPPd0CP0M3V7KO FOhs4h+f8kTylaBv06YPh1hjJ5ete37V/1j1SkSdnL6NTb6P8fpjX9FYh Qdn+p1m6+vs5MX3+RNKnCjEoQclnn51LWW+vs5h7VB1XJZIiEjGT9a7qP CC5yQ/nlooPlxmJD1CKiGVuPKALxrRFPshoQkqEONfHUK24wMLtfkpPIV fgLBhS3hNsBTI03WPQOO6MhwQi5NiEcfwKtURLHG6gVZFtsJ8T5guN8Kj 4z2helMGMd9aLIBl3RCKFicMN8HHQDxew9dffgtyEReSGOahrfFtAmw6D Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="447587397" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="447587397" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 01:02:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="860594379" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="860594379" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 26 Jun 2023 01:02:26 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 26 Jun 2023 11:02:26 +0300 Date: Mon, 26 Jun 2023 11:02:26 +0300 From: Heikki Krogerus To: Neil Armstrong Cc: Greg Kroah-Hartman , Dmitry Baryshkov , Arnd Bergmann , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: typec: nb7vpq904m: fix CONFIG_DRM dependency Message-ID: References: <20230622-topic-sm8x50-upstream-redriver-config-fix-v1-1-005ab6f4d1f5@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230622-topic-sm8x50-upstream-redriver-config-fix-v1-1-005ab6f4d1f5@linaro.org> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 06:16:26PM +0200, Neil Armstrong wrote: > With the following config set: > CONFIG_DRM=m > CONFIG_DRM_PANEL=y > CONFIG_DRM_BRIDGE=y > CONFIG_DRM_PANEL_BRIDGE=y > CONFIG_TYPEC_MUX_NB7VPQ904M=y > > vmlinux fails on the following symbols: > ld.lld: error: undefined symbol: devm_drm_bridge_add > ld.lld: error: undefined symbol: devm_drm_of_get_bridge > > Add dependendy on DRM || DRM=no since CONFIG_DRM dependency is optional > and guarded by: > IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_DRM_PANEL_BRIDGE) > in the drive. > > Also add "select DRM_PANEL_BRIDGE if DRM" to clarify DRM_PANEL_BRIDGE > is required if CONFIG_DRM is enabled. > > Fixes: 88d8f3ac9c67 ("usb: typec: add support for the nb7vpq904m Type-C Linear Redriver") > Reported-by: Arnd Bergmann > Suggested-by: Arnd Bergmann > Signed-off-by: Neil Armstrong Acked-by: Heikki Krogerus > --- > This is re-spin of [1] > > [1] https://lore.kernel.org/all/20230622101813.3453772-1-arnd@kernel.org/ > --- > drivers/usb/typec/mux/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig > index 8c4d6b8fb75c..784b9d8107e9 100644 > --- a/drivers/usb/typec/mux/Kconfig > +++ b/drivers/usb/typec/mux/Kconfig > @@ -38,6 +38,8 @@ config TYPEC_MUX_INTEL_PMC > config TYPEC_MUX_NB7VPQ904M > tristate "On Semiconductor NB7VPQ904M Type-C redriver driver" > depends on I2C > + depends on DRM || DRM=n > + select DRM_PANEL_BRIDGE if DRM > select REGMAP_I2C > help > Say Y or M if your system has a On Semiconductor NB7VPQ904M Type-C > > --- > base-commit: c87d46a9e8ebd2f2c3960927b1d21687096d1109 > change-id: 20230622-topic-sm8x50-upstream-redriver-config-fix-8f0aef3e2129 > > Best regards, > -- > Neil Armstrong -- heikki