Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1319074pxu; Fri, 27 Nov 2020 04:56:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfqeLUJ0l4i1IgrxOu6W5vzIrtwFliidj4XwWrEE5pWO//Tz0C9r/zXS1cll4WdRFk+37o X-Received: by 2002:a05:6402:cb4:: with SMTP id cn20mr7789180edb.186.1606481769604; Fri, 27 Nov 2020 04:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606481769; cv=none; d=google.com; s=arc-20160816; b=Wag2e1t7bzLBzOa+6hl+O7Acn3/7VkffCrFul6pZn5IMnHUEUbkOgXSRQ50TxDcIx+ xwfIaV4cHhm4kfP0rNoOmBav/zy5ooMQa1g+MHBy3A01dMirtyIU0rz8VJmZGtuCosfv qGUUcX1Hfk9t8FHNpNLgWf8+35bVxroJ3fkf815l1a05EZQK3hoOsjtQMZ6Mpk4wA7Qk AhGcawpzempRJOE9MFTIDm+Cr9f3cfR+dkx5tKtFt9Bh+FxX1Z24qFXPb1a3JF7lhAJB 5XdCmNcSl/CmZtukrO0Czcl5FRtMDWq0iRyMr7zs9yLJpIquSse+oMpgUfOsGZgWK882 lTrw== 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=JvHVpgxgMYCFuc/fQnm7CfrlJOrFVXJV09hIDLF1ZLQ=; b=KMC8Ah6OLzIr1h42pFIsxES20CrflTdD09rggqUZ4GgdszZODUEP99MtSdvCxVvXW1 YqpSlttgONIntBHc69wlvtLLRJvE1g794AyR2KrndOVzUjdTE+B/B1eJOeYigmLYDcT9 E+rhexu9BDlo1eYZimXJcJYdhAy3PbIBLPx3HXu64f0VjI1mt0Ob5uIwIt1cmA5NJtbN v5DjvlfZ+ON5e+Yl5qc7ktITfPrfw23seiaUEkdpJizuTie3SddVQ/ys6gpTax2tA02P +CRM3d67tcuP8H2yCTf5BEvp/jSWXGzJ8OXJKxTTSMkQIB7D7Du4Q7baU9DcvoZ6g5Kg DGrQ== 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 w10si5176621ejc.434.2020.11.27.04.55.46; Fri, 27 Nov 2020 04:56:09 -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 S1729865AbgK0Mxh (ORCPT + 99 others); Fri, 27 Nov 2020 07:53:37 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:44198 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729847AbgK0Mxg (ORCPT ); Fri, 27 Nov 2020 07:53:36 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id AF4ACFB02; Fri, 27 Nov 2020 13:53:34 +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 0ZuhKHsAoCkm; Fri, 27 Nov 2020 13:53:33 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 73E914070F; Fri, 27 Nov 2020 13:53:29 +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 Subject: [PATCH v3 1/2] usb: typc: tps6598x: Select USB_ROLE_SWITCH and REGMAP_I2C Date: Fri, 27 Nov 2020 13:53:28 +0100 Message-Id: <84257ebf9a8d6412a53cb1e87cbd426621fedb1f.1606481420.git.agx@sigxcpu.org> 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 --- 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