Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp474420lqe; Sat, 6 Apr 2024 08:46:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVutQDgrdhXwhB6iD9akOmCg7ElYGTpTDO6ySaNu3T3o09wrtukzVyqOG07Sszh0q8INZhqajSnnEMnm7mVrSGFWxCSgigpWgQra94X/A== X-Google-Smtp-Source: AGHT+IFjk2YxzuqMx8RPynO1IbJGrwvb6N4P6Af2w2sqSmplTwkXieR/zC6oAwZckUqXg38EPu/C X-Received: by 2002:a17:903:230e:b0:1e0:c3b5:1c5 with SMTP id d14-20020a170903230e00b001e0c3b501c5mr5144001plh.24.1712418391577; Sat, 06 Apr 2024 08:46:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712418391; cv=pass; d=google.com; s=arc-20160816; b=hCns65Ve7fpsW1kZmR2Y1gVFRMrMF+2kjuDNO2cIqQ2ZKgmMyGglppRByvMId4Qffp bbMWjoR+nF2vREgP+F8jgjxAkNq4yvBZoRtfJefN6HgoEDK6TenQBwKV8aYuw+sqrOVJ leYZG9yaJaFF74tsk9byo+COyTRzcfcbkasl5mUiQxEcVxsvyLodrIUsm1Ncz+8e15hp k4WB1+6gF+q+4LjGG2vlmrzNW/XSvl4/34/5LE5p6DCVVhWgrlllm5KSx+3U6yqeuY4j hfgkOE8yOvrGLP03XR/+arl3S0u5+lhl80gJufaDqvWKLAIsQrz6O7CzROZXtv5/z/22 6CdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=FETbncQY+yB77+U1F+rJJ7C1eUsXsfesmzviZlUCP8I=; fh=VHKBcc9QqpRKTFz00vaPLOiKiNbHTVgein0n3MB2V1w=; b=KTZg8OKg2h9IjR32BmZsBUcXXowpL+v+31t7V1t7WGaDJ+hO4KJLgGlAzNTJk8A8/q Kg4qYmjl8Hh5qc+Z8ZldE+Z4nRCIcY8E+vKQq//BRl2IGz+i0KJa1BPTR6FTxlkgVvgc B75JLWse+UKMq5ZeLAjcjzQdkoIPT9WS1wtgCCbht69OpRkvMyF3d/q0yqlSy1UuvZl2 On6LEAanCF/BNT36Qk6PLN5CwIN6zm/JUxuJOqBy0CmjIljhzCrwdtBnifFxpmr8/XKo xQmgQ9xX1Po6QBxf1GJLTEkDsuPseNmL5k4kic3UqhHIX/8rQ7lkbqe51rbZiglLJXpD FtbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=AMESbWRy; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=OeXPMJ52; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-133985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d12-20020a170902654c00b001e103508d92si3220011pln.115.2024.04.06.08.46.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 08:46:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=AMESbWRy; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=OeXPMJ52; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-133985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3A403282403 for ; Sat, 6 Apr 2024 15:46:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6625B3B2A2; Sat, 6 Apr 2024 15:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="AMESbWRy"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="OeXPMJ52" Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 348302943F; Sat, 6 Apr 2024 15:46:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712418384; cv=none; b=PdQ+XqQP0A7EfIQcNhIIKraFMIrPQ9mHYCf/sXxpLimKIb+2W4XHS+N38HaudC7n3BJUmGoikGYmDUM7CjGM5OVwKmpRzYDeCxP5sUo/LejM+gxqys+M7i/yE3MU2mG3t4WPCSOTKteZ5YGvel3kIPC42l0xkmYElB2oZ/GGNpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712418384; c=relaxed/simple; bh=11DqWCvdg355TN04/G/aUNK5DKEHBpGSkEub1LzX6i0=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=SjYqsepfskqpSntWfmdZulYxB/juyQb1pIrwKVsbe9n/apbK974ReMxkhH0T8NxP/bJ96cu8QcZsbXejEWNBJcAa6RN7EpYiWGuOyjtBU642Q+tlo2IsuBkhGhfD446YzZPZ0q5zFe0nRpZci0dk31eQsX9YVWRnp44Z2m10juw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=AMESbWRy; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=OeXPMJ52; arc=none smtp.client-ip=64.147.123.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1B4C53200A39; Sat, 6 Apr 2024 11:46:20 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Sat, 06 Apr 2024 11:46:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1712418379; x=1712504779; bh=FETbncQY+y B77+U1F+rJJ7C1eUsXsfesmzviZlUCP8I=; b=AMESbWRyV+2vZKgiwi/dN87iL0 BDzX68Fqfw8x7EC5/3adOtsJrMICgxWVUa0dM0sKHXI0z7tR8xMhPXG7NYJyb4Yc 7IIhNkjCLii/7SHnhE+cUTUd22NZVw9N2dF1uad+AhCKrj7U9VP71y3sNBg7C69i DBzLvj1HHuXVZdPMgVAWDQKfDpnEGnaV9X0Sr/IP6afKvB+yjrQBoiQu/KdPyxs4 JVa47gNvm9jiNgxCRvuIUmiAMInRZ2julz4lCh+Ddva5rVfeeyxGVeWiaeaVsCgN PDAlQ6SlBiFEOFzbEyFAl8uAqe1V84qogQZzg5H2Egjne7W8aEOVMUR7MILQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1712418379; x=1712504779; bh=FETbncQY+yB77+U1F+rJJ7C1eUsX sfesmzviZlUCP8I=; b=OeXPMJ52Yv/cSjBtXGCTYUp/Kn1/UTWP6qbHZWDT7ySB 2djAcNhJ+J4fBhes136QmODeEsvkRKAERVprIqphbGJfAksce85xzZfnjWb1o9BM MDPEqzcxh9kHCs+JHC5SpAL4KVzOWM3qz8VYS/IA4XKqqzhx9B12XAtweO6/B0rE 1gzEWWPdb8DcycX5IXweoFTmxJTsAde2Y2z2qJxIZbd3UEiJ0uyw0239BkiiJ0my qHnLfQotZkllCALU8hsjqMkff0t0YU8VsJUx1p25j4Eup0q27rNIvYEWknO+ui1s dkWxYt40tkGuyi3yVDsudX+KvnXMNcK5YsJA0+JQAA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegvddgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 510DCB6008D; Sat, 6 Apr 2024 11:46:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-333-gbfea15422e-fm-20240327.001-gbfea1542 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240405142823.615609-1-arnd@kernel.org> Date: Sat, 06 Apr 2024 17:45:57 +0200 From: "Arnd Bergmann" To: "Guenter Roeck" , "Arnd Bergmann" Cc: "Andi Shyti" , "Wim Van Sebroeck" , "Heiner Kallweit" , "Wolfram Sang" , "Jarkko Nikula" , "Geert Uytterhoeven" , "Jean Delvare" , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org Subject: Re: [PATCH] i2c: i801: add I2C_MUX dependency Content-Type: text/plain On Sat, Apr 6, 2024, at 15:08, Guenter Roeck wrote: > On Fri, Apr 05, 2024 at 04:27:43PM +0200, Arnd Bergmann wrote: >> >> diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig >> index 1872f1995c77..2619018dd756 100644 >> --- a/drivers/i2c/busses/Kconfig >> +++ b/drivers/i2c/busses/Kconfig >> @@ -108,6 +108,7 @@ config I2C_HIX5HD2 >> config I2C_I801 >> tristate "Intel 82801 (ICH/PCH)" >> depends on PCI >> + depends on I2C_MUX || I2C_MUX_GPIO=n >> select P2SB if X86 >> select CHECK_SIGNATURE if X86 && DMI >> select I2C_SMBUS >> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig >> index 0b0df3fe1efd..4dfb3773e6e2 100644 >> --- a/drivers/watchdog/Kconfig >> +++ b/drivers/watchdog/Kconfig >> @@ -1301,8 +1301,6 @@ config ITCO_WDT >> select WATCHDOG_CORE >> depends on I2C || I2C=n >> depends on MFD_INTEL_PMC_BXT || !MFD_INTEL_PMC_BXT >> - select LPC_ICH if !EXPERT >> - select I2C_I801 if !EXPERT && I2C > > Sorry, I don't understand why LPC_ICH and I2C_I801 are neither a dependency > nor need to be selected. What if both LPC_ICH=n and I2C_I801=n, or if one is > selected but the other is needed to connect to the watchdog ? The Kconfig dependencies are only required if there is a compile-time dependencies. In this case, both LPC_ICH and I2C_I801 create a platform device that is consumed by ITCO_WDT, but it could in theory work with any other such driver providing the device. It would be fine to make this explicit by adding 'depends on LPC_ICH || I2C_I801' to enforce that the watchdog driver can only be selected on if at least one of these is present, but we have a lot of examples where we don't spell out this type of dependency. The two 'select' statements in comparison a really bad idea because a driver should never need to force-enable a user visible symbol in another subsystem, and because no single machine would actually require both the i810 and the ich driver. Arnd