Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3413127pxu; Mon, 30 Nov 2020 02:33:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQSqpDgX58BOGJ17Mi+icbOu9dDikOvJeCoV+hd0KK9qdo+5SrzogMaZdvVs5injSzHWbc X-Received: by 2002:a17:906:6dd6:: with SMTP id j22mr19359687ejt.255.1606732421919; Mon, 30 Nov 2020 02:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606732421; cv=none; d=google.com; s=arc-20160816; b=jbQhKgdVtNi47B61fkVHR+wJIhAO0B35glBcOVcLabdcs/Ef/w7Vy9LVTl/QZ/W5z5 DLjivKF2SARg0mApWZjn852bBJW7IyohQ21dnHBlfB4KybfFh4306Z2WFHlIzYAjJ5CL OpdThdPfbuKdHjPQ2Hn0H9rk32HsWWgM9ecLns/71H4DmggOHnsfiTswmpCffSdXdvl7 2htzZQBOX6Mi+tutGxFpXBrVCT8vBFRP6o4lH+y7QfHKmkCFA7PY4tJyecaflUemv6CZ kxt35A0ZBYTrwzgF0yk3mcmI6iCUyWKmiUf5CubzIqcp5MZ8eMpCOZhOgegoxpzKFLkC N3uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=OzLv0IymWRyDjaPMtJg9fVP5lF0V8v5+6gn3GE7k1a8=; b=NHp6ILIj0Kb+eDcm+YszKkdaYHU5ySQLoWmEGgolbotYs94RePjT8pYR2aTHNIosON M+ggMBJSPsWkOoRmBH/C/Jmaos8SoYf7xswyyU38KAZ11VRp4CJ9NfMPYqmVXihBnE9B rPW6Ksxu4CtsGVXEmGykrSWKwa8G6qg8xs+yHs3GnraPSndwcZnu/piAuCP/V6U/PcQa 6NWd5brazXuG+bu+tmla1QgfTdcpVkQaJTwAegemeiUMSGjF8HLSO4KG0S52TF7Om25s oBqjdGVbiypylo8Zq3eTM/oJy/Do8ORSH4VfePYjU7qolj2GMu6P8Ogl7LX4QRiqEtKN Oblw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si9937544ejb.268.2020.11.30.02.33.19; Mon, 30 Nov 2020 02:33:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728331AbgK3K3H (ORCPT + 99 others); Mon, 30 Nov 2020 05:29:07 -0500 Received: from mga11.intel.com ([192.55.52.93]:65308 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbgK3K3H (ORCPT ); Mon, 30 Nov 2020 05:29:07 -0500 IronPort-SDR: cobIHU4vc2p4vUxO9kJHXpN8+RRm93K3RrTZJcELUB7EBUkguieVZyk8TfpPKRCrKTi4gzVHD3 tXJYYF4+VfdA== X-IronPort-AV: E=McAfee;i="6000,8403,9820"; a="169115203" X-IronPort-AV: E=Sophos;i="5.78,381,1599548400"; d="scan'208";a="169115203" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2020 02:27:23 -0800 IronPort-SDR: Iz/v3e4lXOxK9+EmEse+lSEBEb+5XRXys6LHr3SGqXBwoLbSgzQU1m8WdNFOfJxK+9lG0NzU/+ 95IMzxuBEbBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,381,1599548400"; d="scan'208";a="434265806" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 30 Nov 2020 02:27:20 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 30 Nov 2020 12:27:20 +0200 Date: Mon, 30 Nov 2020 12:27:20 +0200 From: Heikki Krogerus To: Guido =?iso-8859-1?Q?G=FCnther?= Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] usb: typc: tps6598x: Select USB_ROLE_SWITCH and REGMAP_I2C Message-ID: <20201130102720.GA2911464@kuha.fi.intel.com> References: <84257ebf9a8d6412a53cb1e87cbd426621fedb1f.1606481420.git.agx@sigxcpu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <84257ebf9a8d6412a53cb1e87cbd426621fedb1f.1606481420.git.agx@sigxcpu.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 27, 2020 at 01:53:28PM +0100, Guido G?nther wrote: > 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 thanks, -- heikki