Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10734577rwd; Thu, 22 Jun 2023 04:14:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7y0rs/36OZ+ccy1zN+1jiRFD1khiDPSIUOUeXabHu2KHzaqK42qR3q9KEI921ggaJ/w1Fi X-Received: by 2002:a17:90a:1908:b0:256:5dec:50ed with SMTP id 8-20020a17090a190800b002565dec50edmr13629101pjg.7.1687432487910; Thu, 22 Jun 2023 04:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687432487; cv=none; d=google.com; s=arc-20160816; b=oiP9iV7Jsn1acYwhNsBHQyPvzf0bWv7p3g+5N0fn6KnCzUCqQe2/rZJAvY/+6QIPSA LE7wUJCrQQcej0vedNSt4Qk9DMmwFe3u1IJzONOm+dehNTISnX6TLBHYtfxO/LVICdOC RIjU5iNZmqKQyZlkC0jrn9dvZBnLarK19E8/0uq1dMMEdusPpfNR9wFCi4b54EpUQc4+ NnB229TqG9PmkeRSdeoYlL66ObiJhafq6gYH3kzcmsqd4WqjoZYBSl/nyfvg/H3Z07Sg 1ewxRb8JYu81cJiTsUVyfcReuKDYArz3dXTBL5ndeEZrO8jwBF4PIV6vLzAFkzL2qRso CC3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=oyBILI3qy1jyGfwZMlXs7rxAIorFnavFxj7L2gvgWSM=; b=GZFe8/oHcL0KOU88tNuHgjZxTdln+niQolneyeVxRhoiOYb4eYMsOd/2DigI3HofJD TTpUTa7nS3RYxcD2ISvUs/RJ99xlCIhuSu0mzlGNyYw2aoQG+FBB0upcljWvTjNxCtmy nwJXeH8lmrUa/Hly/jPNBN2vOhiPMexP6j8x1BxFEW8fnupvHWGGicNkc7QvWx4RL0oB t3r55dLm1IWbNG3EDa8oPW+UnVM3vbbcp6FDSI2YzbVCVtVsCH2QXmwHaxKDO0iLUXli M/SmRvoqW6j+4s8EkWViZbG6Z68T839htcgTItIy4gVBvmGExl5/PalHRBIPFnJYL45U 2iRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yzCQXidj; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il16-20020a17090b165000b00259be185d2fsi6976729pjb.37.2023.06.22.04.14.33; Thu, 22 Jun 2023 04:14: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=@linaro.org header.s=google header.b=yzCQXidj; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231126AbjFVKjI (ORCPT + 99 others); Thu, 22 Jun 2023 06:39:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjFVKjG (ORCPT ); Thu, 22 Jun 2023 06:39:06 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26E971739 for ; Thu, 22 Jun 2023 03:39:05 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f9b258f3a2so45740965e9.0 for ; Thu, 22 Jun 2023 03:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687430343; x=1690022343; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=oyBILI3qy1jyGfwZMlXs7rxAIorFnavFxj7L2gvgWSM=; b=yzCQXidjhUKkuo7pFuGI3Voda0ph2Y/OeLF/wJP3NFxCOmVZg0+SIZu4412umY6B5E cI4RpmIXsaKP//C1v9i8of8Fve1jQFW4sQoqOHjP0OFyRqG+2JA9lYxi9wtvXm/DFFts FYhNXm6Bb8gp12tq0XczzzW1P8+pyM5uXLBhgRXZYRrwFPoOm9ZHT4i3eQt4ih4/3jDq SHdplEWvwIcQedud4DcWbaq34+U3f2x4GxrC/Z5BQZfBKFa3xxNXFo20lexG4V6zPEav 5wdgJwtJiIm5oe2GqfzoMMEHQCP1SPqehO0ukaSvANvd9iNOflTSlM4IlNlxnRwS1v0V 1vMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687430343; x=1690022343; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oyBILI3qy1jyGfwZMlXs7rxAIorFnavFxj7L2gvgWSM=; b=E88S5HXtgG44UpYhqvQEgk2YNBtRJ4tzxSELA3fskZJeSa+Hx5KMExDMxpP93PaIQj zZLf+dp5j/zaZqdLgQrfBi1AYuy7Bx/hirIovM0DT58z1uEjMys9wTMXelsaqwFgMg0e Kvmspi73l4x/ogltK3wqAUKuM0cv4aSQ0qCzTJOXLPLid6tycJiB8vwEwrOWuaOb+T1c dGFIHqFSVeL8NTM81fOMrHu62K+sAlhIde/vxrjot25AI6k+Z7nKys5CEwt+YgO3xfLm yAySYNG6EWg72f+56u+9brk0hJEmiig1HfklFTzTIVoKFMxCWS2mi6mpWwxOV958dM2l S3mw== X-Gm-Message-State: AC+VfDweW72z50kTY5x/mgIt3dRKzE071kE1qv6lBLel00rdvMR1WyFy tVZ9fZrDz3m9b9cufCoM6WVAsw== X-Received: by 2002:a05:600c:2051:b0:3f7:3545:4630 with SMTP id p17-20020a05600c205100b003f735454630mr17688183wmg.20.1687430343555; Thu, 22 Jun 2023 03:39:03 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:f692:a800:4794:385? ([2a01:e0a:982:cbb0:f692:a800:4794:385]) by smtp.gmail.com with ESMTPSA id u16-20020a7bc050000000b003f080b2f9f4sm18420353wmc.27.2023.06.22.03.39.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Jun 2023 03:39:03 -0700 (PDT) Message-ID: <286cf2d8-2da8-7203-ee53-bf08332fa519@linaro.org> Date: Thu, 22 Jun 2023 12:39:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH] usb: typec: nb7vpq904m: add CONFIG_DRM dependency Content-Language: en-US To: Arnd Bergmann , Heikki Krogerus , Greg Kroah-Hartman , Dmitry Baryshkov Cc: Arnd Bergmann , Bjorn Andersson , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230622101813.3453772-1-arnd@kernel.org> Organization: Linaro Developer Services In-Reply-To: <20230622101813.3453772-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Neil