Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp317831ybp; Tue, 8 Oct 2019 18:48:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9zAACB2aqXEi8SBGN40NjGyTSuPmA234Ox4r7JhsjiSpYkzHF14CvzsoYFwDHtq0nzQ+U X-Received: by 2002:a05:6402:b02:: with SMTP id bm2mr870988edb.244.1570585706762; Tue, 08 Oct 2019 18:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570585706; cv=none; d=google.com; s=arc-20160816; b=kgXPlp9tJYm8glhxBKQjziXlEWAu+RHispLpCUANy3vO839HXbFfJVe4q0d54XB29v 6D20yFMV0TIPW7cMyFE3J+Ntm3tJzN9H2khshD+AeNVKDCF1GYh2RxckANliIc9H2ZKv aBfuCNNF0tRZdB475qwdbcTboGQYHw9F0ccNbdgEw6wJHFIYZyUTowsv9yGAbObWClvC V98YQTWr+RvNzZ4j5cJpN/E/8Ca+4dFFd7uRJEVYKU8ylu7NB3AfGG1a3n15YLtND+x/ 1/1WUPRLGUTJInqHv8j/cgf5RQ3gU06q2eRLGGPfbbSayns3hSjlQiuqWE0cWnHiiMVs Z/MA== 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:mime-version :message-id:date:subject:cc:to:from; bh=98QZucorwNt6pULPOK31AFi/c35WoKdnG/sb3G1i6b8=; b=GMVPAXKAA5RTV8IaDDHDCVeJkvPclrxUVJDoTYvkgDNPM7n7hqWzrVnVFYhpBtBgy7 azmViqXuMkrgPGRAKy0oiog9/4+hxgVmsxQArQSyDg0Nc6RXk2GizPLzoL3Wln8ygxen sMC+7c3TUVT5qrGQL3DR7tx60Znx+GIe3lwBtShP+AiFaeoOpsSCBwItsnan11mBE2hk PDOsqt9GuH1Wl8XXmRwDcjITpf57jXg+JOyyv+KoWHn8766BNKrZOQxcCcO2iQ2Zcpsn 7e71yI+31KVu77PcHFlxz7A0BkLW5F613+D8em/9s/34tXKC/Hmd79sSBH4+7lb/gjHj HtNA== 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 n11si351158ejb.240.2019.10.08.18.47.48; Tue, 08 Oct 2019 18:48:26 -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 S1728920AbfJIBrm (ORCPT + 99 others); Tue, 8 Oct 2019 21:47:42 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39664 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726109AbfJIBrm (ORCPT ); Tue, 8 Oct 2019 21:47:42 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A4AE99E700B83A829429; Wed, 9 Oct 2019 09:47:39 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Wed, 9 Oct 2019 09:47:32 +0800 From: Mao Wenan To: , , CC: , , , Mao Wenan , "Hulk Robot" Subject: [PATCH -next] usb: typec: add dependency for TYPEC_HD3SS3220 Date: Wed, 9 Oct 2019 09:47:07 +0800 Message-ID: <20191009014707.38716-1-maowenan@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- 2.7.4