Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7674744rwl; Thu, 23 Mar 2023 07:22:49 -0700 (PDT) X-Google-Smtp-Source: AK7set9tM2HLj0foJuiguI9AZwdEcUxcVyOjpK2ZRkbyIAkqGACUH5Z4ikD8ctiET6i/3KL9ofxP X-Received: by 2002:a62:1acc:0:b0:624:b4f3:398f with SMTP id a195-20020a621acc000000b00624b4f3398fmr6387216pfa.0.1679581369126; Thu, 23 Mar 2023 07:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679581369; cv=none; d=google.com; s=arc-20160816; b=mgVIWz1mAkqkh1OdhYqLdcMQX7Gw4AYekZRTtFJ69B+/DxXzgjhYiSqu+RHF9Q+zal gOdY0WWuhB56VryCx3+iq9/haqCdl1/DmjIUVvEF1tRsZD01K7thYgwOIheNnl42HnPF RAjDSrQ8cf5+CvYipPyyg6FOHCe6Uyv5V4n1eQKvpikR2XMDQGGqPuy1pE07IOivzCjR buDjVQAPv2npg+j7GFSp0krwQ8M+87kch6Wyd5cW/mFtHN5kvG6/hYNwmn+LQ6lHQdn3 Gt0NtGAlZgQrQDLmhKFcSHC/63OY7j1Dez++OFNu9O1e2TQ9k8NcJUkqWap1pliOh1BX Niaw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BsqfAlFXxtiA1PbvhRzrmLRJN9trI/DIwa6fuyTqGnk=; b=JXC55xdW99nF9fatKOerYubouJ0WC+O7vTiI4uMPRAaEMiG+wYAylogj3JaC5Q+t/m oV0RCe9MrueeqAJNV1yXBg8Rrr9XzsUZeGg3qD0PCiq7DD2Vt3PqvA94zmjVOp7Ht3ye iaziveKkF4VLy8j81q1Lnos8Ei2Dtn7zVOWjzGgaw3USMSMPAHR+Btaso+sL88yIt40B ZsDB4+W2+bgSQ64AgVrKcCa8B0RhkiVA8OOrIAGfLHS/n7t9DoX8fnhy9HnyXhKcJb7o bmln2vtizgWvYFSVsRQs8UPWS8fDzWn5Dve+k4wgRXiqD3YtNGZg9x3v60QqdzRH2GMv Lrpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZRy1VXit; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k79-20020a628452000000b0062a3f8af23bsi3314594pfd.323.2023.03.23.07.22.36; Thu, 23 Mar 2023 07:22:49 -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=@gmail.com header.s=20210112 header.b=ZRy1VXit; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231705AbjCWOT0 (ORCPT + 99 others); Thu, 23 Mar 2023 10:19:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231148AbjCWOTH (ORCPT ); Thu, 23 Mar 2023 10:19:07 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B52A35EFD for ; Thu, 23 Mar 2023 07:19:05 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id cu12so8081786pfb.13 for ; Thu, 23 Mar 2023 07:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679581144; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=BsqfAlFXxtiA1PbvhRzrmLRJN9trI/DIwa6fuyTqGnk=; b=ZRy1VXithiY3rIINrCyFpiy3Xk8gGaERr5HvnoJQvT42UYkiIZNgT/7AfyXMGwejlP DMQyoF2hyZNoqT5+5XHonaDkJealNqxDEMU6ZrhytrMudG1FfL88D3smySjCfHPcNsKH ilI7U2atyJii+bmB2QGdhmP6PohPkI290N38IabLGqJ311uI2XKvxqhj7f9mrs0STrgX JJLCkA5BGbgemqwhSpqlxCoWHj1VP5dMKi1mWAswGLxpIcA8QbH+DG7rT3CXLVwcCOpm ETF74n6Apqdi/3fwhjsapxWxx+BWrXpAneR+23N+r4xAp8G2YFCGXCl1JYKeLrb8phn7 6s0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679581144; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BsqfAlFXxtiA1PbvhRzrmLRJN9trI/DIwa6fuyTqGnk=; b=l4T4RgX6cHMpPSVw2NHRIDEG3Qy8ZreYjHpJWu32rDVsVwDvDa+zKeK1p/rqSsCzfN TonbAtV8g+YiQ53WXkYZFDvgqI4xj9E47pwFTG0S4+iwPSj7Ppm+Sguq2V++cpiUKVbV Zop65vXxL0zTrFuuMqGpKuABzXWMuPqg4/v7hteZAPghoLji4HYubrFFMqpu6Up/eAJg OakzVMGC86kc5RJmGxnO9LsyP3NojJ/x6MQnDXBG6f1wlulzOCSK8OJGX5d1tKBXPzSV VO/zfm5i3M+W3cYmojGTB4LobRaZLccO2OmIt3gZd71zlP5f3kJ1d/QogjhTdp2zP567 7wZg== X-Gm-Message-State: AO0yUKWIKIETyPmT4qbx8lMCDRB+WK73ZCu0eL9pOsvQdthiqiBbaF6W /lqlVdHlPv2zuGb853C2N1Q+ur0LAqUv/Q== X-Received: by 2002:aa7:951d:0:b0:625:e3be:a3c5 with SMTP id b29-20020aa7951d000000b00625e3bea3c5mr6593389pfp.28.1679581144399; Thu, 23 Mar 2023 07:19:04 -0700 (PDT) Received: from [172.30.1.36] ([14.32.163.5]) by smtp.gmail.com with ESMTPSA id d17-20020aa78e51000000b00627fea66a4asm7220300pfr.39.2023.03.23.07.19.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Mar 2023 07:19:03 -0700 (PDT) Message-ID: <328208b5-f276-0099-e476-8fa721178916@gmail.com> Date: Thu, 23 Mar 2023 23:19:00 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] extcon: usbc-tusb320: add USB_ROLE_SWITCH dependency Content-Language: en-US To: Arnd Bergmann , MyungJoo Ham , Chanwoo Choi , =?UTF-8?Q?Alvin_=c5=a0ipraga?= , Heikki Krogerus Cc: Arnd Bergmann , linux-kernel@vger.kernel.org References: <20230322111708.1042312-1-arnd@kernel.org> From: Chanwoo Choi In-Reply-To: <20230322111708.1042312-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On 23. 3. 22. 20:16, Arnd Bergmann wrote: > From: Arnd Bergmann > > When CONFIG_USB_ROLE_SWITCH=m, tusb320 cannot be built-in: > > ld.lld: error: undefined symbol: fwnode_usb_role_switch_get >>>> referenced by extcon-usbc-tusb320.c >>>> drivers/extcon/extcon-usbc-tusb320.o:(tusb320_probe) in archive vmlinux.a > ld.lld: error: undefined symbol: usb_role_switch_set_role >>>> referenced by extcon-usbc-tusb320.c >>>> drivers/extcon/extcon-usbc-tusb320.o:(tusb320_state_update_handler) in archive vmlinux.a > > Add the appropriate Kconfig dependency to prevent this > configuration but still allow the driver to be built-in > when USB_ROLE_SWITCH is disabled. > > Fixes: 19685ae43489 ("extcon: usbc-tusb320: add usb_role_switch support") > Signed-off-by: Arnd Bergmann > --- > drivers/extcon/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig > index 290186e44e6b..0ef1971d22bb 100644 > --- a/drivers/extcon/Kconfig > +++ b/drivers/extcon/Kconfig > @@ -185,6 +185,7 @@ config EXTCON_USBC_TUSB320 > tristate "TI TUSB320 USB-C extcon support" > depends on I2C && TYPEC > select REGMAP_I2C > + depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH > help > Say Y here to enable support for USB Type C cable detection extcon > support using a TUSB320. Applied it. Thanks. -- Best Regards, Samsung Electronics Chanwoo Choi