Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp12123pxu; Tue, 1 Dec 2020 05:06:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/2e/4lP/iOdAakS5OpPOhwgNK3jwtI8fDmndo9IHP+pwKykpL8OGzZzSKi3Zsv2G2S6wl X-Received: by 2002:a50:9f61:: with SMTP id b88mr3045873edf.282.1606828009846; Tue, 01 Dec 2020 05:06:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606828009; cv=none; d=google.com; s=arc-20160816; b=UD3bWaOyYexUcdlnEy7UzfX6Hz6+R+Odh/opjae5kFUL+AnFWHZWUAT5044GbC+c9F yI7HONy92Q+1BZJS46Nl+E5mR2Fei1zdjS4W0OL6yGaS1QStNHDKVOOlAX8PWdbCzWJW TyYichBZ0mI8fJE0DTmnZ6YOV8PVVphm9NNFljO/CGkDlX0hxxiffzHbFcjiisdUAbVB TmvgI9cH4SEWi0v1XISCXufRzBMgITai2qRWJm8oDD6ShZoR31ahOTSLGoa5EoVlzlpH SY1phudjBjxXFbk7sbngcuJ7eNLGXTccTDKK1JWc7+VxfQdxsT/Pj+i23c60+kt0IW76 funQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=ONRqZCoHJNOpMcMymM9j/SUFkUGLmaP70Opx9K962Lk=; b=ka8eOeobthT4u4FwrK5SoKpajhttu3Yam4z/abygQZ8d5piEgVQNVYKN3GdF2dljjp EussnYVZC+IY1JanSG4PKeEH2tNiFt385KpLZU0KgEUNaR/N6/e5v6wkc1OJRQQRla/Y 4mJyoRUkoBCY3cxZqaZGSkqUX2NlhpXFj0+JHKtSRRhL/WOktZ894mhaIfAdRhXdx6Vi wKLDBgXhgAVSVBBKnRaBM7wGsDc7pMudVlhGyzc7viZe4Qc9WbAQ+TtkcYnR2AJSsjjS hm0hGuMDDrHeRPXlWKxynmVdBy2i3EipHHrGHKr+k/J1c9EBkfI0As2q1YAyN7oLWVs2 Mp9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si1104362edt.394.2020.12.01.05.06.25; Tue, 01 Dec 2020 05:06:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729987AbgLANAe (ORCPT + 99 others); Tue, 1 Dec 2020 08:00:34 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:44932 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729889AbgLANAe (ORCPT ); Tue, 1 Dec 2020 08:00:34 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 6DCD8FB02; Tue, 1 Dec 2020 13:59:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GaQEwOE91eEA; Tue, 1 Dec 2020 13:59:50 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 4EF634026B; Tue, 1 Dec 2020 13:59:50 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Heikki Krogerus , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v4 1/2] usb: typec: tps6598x: Select USB_ROLE_SWITCH and REGMAP_I2C Date: Tue, 1 Dec 2020 13:59:49 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is more in line with what tcpm does and will be needed to avoid recursive dependency like > drivers/power/supply/Kconfig:2:error: recursive dependency detected! drivers/power/supply/Kconfig:2: symbol POWER_SUPPLY is selected by TYPEC_TPS6598X drivers/usb/typec/Kconfig:64: symbol TYPEC_TPS6598X depends on REGMAP_I2C drivers/base/regmap/Kconfig:19: symbol REGMAP_I2C is selected by CHARGER_ADP5061 drivers/power/supply/Kconfig:93: symbol CHARGER_ADP5061 depends on POWER_SUPPLY For a resolution refer to Documentation/kbuild/kconfig-language.rst subsection "Kconfig recursive dependency limitations" when selecting POWER_SUPPLY. Signed-off-by: Guido Günther Reviewed-by: Heikki Krogerus --- drivers/usb/typec/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/Kconfig b/drivers/usb/typec/Kconfig index 6c5908a37ee8..772b07e9f188 100644 --- a/drivers/usb/typec/Kconfig +++ b/drivers/usb/typec/Kconfig @@ -64,8 +64,8 @@ config TYPEC_HD3SS3220 config TYPEC_TPS6598X tristate "TI TPS6598x USB Power Delivery controller driver" depends on I2C - depends on REGMAP_I2C - depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH + select REGMAP_I2C + select USB_ROLE_SWITCH help Say Y or M here if your system has TI TPS65982 or TPS65983 USB Power Delivery controller. -- 2.29.2