Received: by 2002:a17:90a:37e8:0:0:0:0 with SMTP id v95csp7146586pjb; Wed, 16 Oct 2019 00:50:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3IK48Fr2vOASN7IvdpiKsP6ZrdH5cUGFmnno1Mt4IHmr+cQ4EHZZGvPFGhYqtyEEs8U2j X-Received: by 2002:a17:906:6a4f:: with SMTP id n15mr38580919ejs.19.1571212223552; Wed, 16 Oct 2019 00:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571212223; cv=none; d=google.com; s=arc-20160816; b=geOboTQ5cxvLSe0py2pE2zzOrtSZKOffdg1kpw01+vM6HhRc29MNToDb9mqc2W8xbo bwjXv6+UBdDLZECucE7EDeYPam1dxt8BLAj0oCTFEsR/YL/MIMWnsJvEdP9VOp0GWtXD 2K27Kd9dcq7X1RdwfnhTNSbgb7H3tASDErsBSp1ZJOGwg/6T/z6xH/ybI0BVGedHChSD As8hs5gFuEnBDe8S3RWOtE97APQAQEElJS+A4sRqH0ylip2ZBTGct7jjIs/af90pcUUt /2dh+o7uKEVHqOMvAwyAQ9ykfYMkwgXtsmnSf8qtpznawKRe/v6/x2Fbeih2IzyLMgzs LF/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=WY9kEgXUl5MoO44+UYbPxODHi5zhMke2mQ6FHiwIr7o=; b=jwxYqVjHsJi00TbUVtYIBlL4uZsc+XQnWP1oavITOxCg9rO6fm5Eqa+txSm5yTxR/j 5TvyVZ3E2Ez30BolxiYIDhMHlpJ2q9wPomMZIz+Y0cFGxzOKN7tEzOifVE9z006tPTQP Iz7j7meO8p6CfKPEfWLFqCGwpiIMT4W/EU7KoJsMJHQ7YrMUq9GYkelESSUJYOnvx6NV L/M4QlbMt/MyhhoK4XfK3eRtbPix99sDV8DSJVNr6mZm61HKLRXrzK0NQK3OKlLh3EcC ZTWQUvFLKFlqROWVGrumAW+Vzr8R8fT1tenF1F1/F0U1WP2QuTqPen9t5HBG/lkPAQux P7HQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pk7si4422944ejb.216.2019.10.16.00.50.00; Wed, 16 Oct 2019 00:50:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390403AbfJPAzL (ORCPT + 99 others); Tue, 15 Oct 2019 20:55:11 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52150 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726315AbfJPAzL (ORCPT ); Tue, 15 Oct 2019 20:55:11 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D0656E38D07370F6AE70; Wed, 16 Oct 2019 08:55:07 +0800 (CST) Received: from [127.0.0.1] (10.177.96.96) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Wed, 16 Oct 2019 08:54:57 +0800 Subject: Re: [PATCH -next] usb: typec: add dependency for TYPEC_HD3SS3220 To: , , CC: , , , Hulk Robot References: <20191009014707.38716-1-maowenan@huawei.com> From: maowenan Message-ID: Date: Wed, 16 Oct 2019 08:54:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 In-Reply-To: <20191009014707.38716-1-maowenan@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.96.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kindly ping. On 2019/10/9 9:47, Mao Wenan wrote: > If CONFIG_TYPEC_HD3SS3220=y, CONFIG_USB_ROLE_SWITCH=m, below errors > can be found: > drivers/usb/typec/hd3ss3220.o: In function `hd3ss3220_remove': > hd3ss3220.c:(.text+0x64): undefined reference to `usb_role_switch_put' > drivers/usb/typec/hd3ss3220.o: In function `hd3ss3220_dr_set': > hd3ss3220.c:(.text+0x154): undefined reference to `usb_role_switch_set_role' > drivers/usb/typec/hd3ss3220.o: In function `hd3ss3220_set_role': > hd3ss3220.c:(.text+0x294): undefined reference to `usb_role_switch_set_role' > hd3ss3220.c:(.text+0x2f4): undefined reference to `usb_role_switch_set_role' > hd3ss3220.c:(.text+0x348): undefined reference to `usb_role_switch_set_role' > hd3ss3220.c:(.text+0x390): undefined reference to `usb_role_switch_set_role' > drivers/usb/typec/hd3ss3220.o: In function `hd3ss3220_probe': > hd3ss3220.c:(.text+0x5e8): undefined reference to `fwnode_usb_role_switch_get' > hd3ss3220.c:(.text+0x8a4): undefined reference to `usb_role_switch_put' > make: *** [vmlinux] Error 1 > > This patch add dependency USB_ROLE_SWITCH for TYPEC_HD3SS3220. > > Fixes: 1c48c759ef4b ("usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller") > Reported-by: Hulk Robot > Signed-off-by: Mao Wenan > --- > drivers/usb/typec/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/typec/Kconfig b/drivers/usb/typec/Kconfig > index aceb2af..b4f2aac 100644 > --- a/drivers/usb/typec/Kconfig > +++ b/drivers/usb/typec/Kconfig > @@ -53,6 +53,7 @@ source "drivers/usb/typec/ucsi/Kconfig" > config TYPEC_HD3SS3220 > tristate "TI HD3SS3220 Type-C DRP Port controller driver" > depends on I2C > + depends on USB_ROLE_SWITCH > help > Say Y or M here if your system has TI HD3SS3220 Type-C DRP Port > controller driver. >