Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp235136rdd; Tue, 9 Jan 2024 02:25:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGllA9wjlpNsCs7LYuzvowx5YdODBSAhsEinD/jti8qxa8wPuiw4Co3lxw8cNdW72GGqwc1 X-Received: by 2002:ac8:5f49:0:b0:427:93cd:95cc with SMTP id y9-20020ac85f49000000b0042793cd95ccmr7757076qta.105.1704795912520; Tue, 09 Jan 2024 02:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704795912; cv=none; d=google.com; s=arc-20160816; b=O/V+6JpQCDhtVZHs7B3ScxEYDW+X8NFvFVzsqvEx/bP1opohNSK5VyiI/w3lLd8XXs uFXaf3M+P8Bu/lksspkDM1ahz+qR1c4jOZg9dKhm9TjscjzyWisRhjeZqaU113gphzaO aFJ3kAH64ObDw1KECIcW4vZZKPBgQyPJ3Pib25p8wq1iR3T2DCPaPiXNgLsQxEus7JSI dY19arkb4RY0Xffgpt5ulQ8EQbKsiCGpyoMu8tbre2T6T3ZMlwPlbV1DuEs2r9oWz6zF J/AfXiUL0+3TCaPblqBpTwtF+/jo1WylGYL5o9//ELNugxeMS7v+VsBVTGUtbSfc/EwU SDAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding: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=GabU/xJKPT7prMOI8ftxVSLypGy/Wo5U52O4xaZUqdU=; fh=n8Sa4srvofIxS1JDLczlANrDtyzmbKChT7ONV7p/hGM=; b=gidYtxWGIovpr0X0jU3RtODKkdKNQph4d9fjgpALZvIh5tPairXMLBFgMAkw+lG7a8 7UwbULgs5oQHmn6hprMtdtEG4FTOKC0pqM0GfdgX0RDHHQSwXInq3mVn7zasPplHF0QV HP+OarqQUFqsaeaVOf8e2QeoWS339mXvkXyqCjaDi0uSgiysFanZ3jgu+jpwAGySNqZm CBtPFNwyIDT7ipkoEnh/6dxJkH2DJwV71GQ/ZuAa9ha5+6p4Kgm6pKAtGlZZTw2CIn7M yjCF0qFst24NL+XijsGmHK51jVIUdk4UyGNOp6jpKdnHFq1z4SOo60byQC2Z/d8rFkT/ UMbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=Z4h6tGUu; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=swZvUjVR; spf=pass (google.com: domain of linux-kernel+bounces-20704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l13-20020a05622a050d00b00427e9556263si1752999qtx.200.2024.01.09.02.25.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 02:25:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=Z4h6tGUu; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=swZvUjVR; spf=pass (google.com: domain of linux-kernel+bounces-20704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20704-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B21511C23790 for ; Tue, 9 Jan 2024 10:15:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EE45364B2; Tue, 9 Jan 2024 10:15:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="Z4h6tGUu"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="swZvUjVR" Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) (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 90C90364A3; Tue, 9 Jan 2024 10:15:06 +0000 (UTC) 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 mailnew.nyi.internal (Postfix) with ESMTP id 4255E58098D; Tue, 9 Jan 2024 05:15:05 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 09 Jan 2024 05:15:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding: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=fm2; t=1704795305; x=1704802505; bh=GabU/xJKPT7prMOI8ftxVSLypGy/Wo5U52O4xaZUqdU=; b= Z4h6tGUutV+LgpasMnunV6k3fxPBKR0pgIFigmfW8zl48tJ1/IvZASco4mODLM0z MoWjgQ/+MztBbf0TCCF/aBEF0/zfCgH5OPKEI2bf4gGhhUeekWTNcWFwX4nywkZ3 jdfL9AVRVxAeXXmvtdsKEX+oxgX0Y5/B0BCa8dQ0IXCgxjQ9Zo+uQmUGqjAx6DnC XygT2jR3/5df3dJyKQn4kOCbi63JFLzcCi8r9z240tjLg+ayFQSd6LWPacu4gMx0 irin0QbqwzWtpbG3182P3Airfbh6nsXxLXWp/AYil49d6d1jnbLVUt1xSvR1Jj5A pP2x1T10sygiw8Cj3etJCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1704795305; x= 1704802505; bh=GabU/xJKPT7prMOI8ftxVSLypGy/Wo5U52O4xaZUqdU=; b=s wZvUjVRe0D7N+aiUQHGG3QiIvViin3sLtWwfIdkt7EI0VfJB6zGKieph+wImrD6J zBj5YpkGXO4p2gfaXxuw/EDf05gEs8EUZTB3oMQ6ObZg1Z+wpZtyP4IUX2egZW63 AgvzzlEBJRleiIGvv7drHp+hVqdt0Ndy4yDfdOJSjt+L4siT/IExM5Fn6pjDD8Qv duWq9ksk+GoEDg1aK7qwBrZCbsRWc60eFH464gwGb54BhLp9t8YXZXFxNuILoACB A07K9fIspS5x0u3Xp+L/j/QdmNeQ8w93tGK11hgyNM9RaPcvzUDPid4Qjmt9V/Zs iDK8XZIZByLYfFaieWBuw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehledgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6BD14B6008F; Tue, 9 Jan 2024 05:15:04 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <5904461c-ca3c-4eb1-a44a-876872234545@app.fastmail.com> In-Reply-To: <87bk9uzum9.fsf@kernel.org> References: <20240104130123.37115-1-brgl@bgdev.pl> <20240104130123.37115-9-brgl@bgdev.pl> <15443d5d-6544-45d0-afeb-b23e6a041ecf@quicinc.com> <87jzoizwz7.fsf@kernel.org> <87bk9uzum9.fsf@kernel.org> Date: Tue, 09 Jan 2024 11:14:43 +0100 From: "Arnd Bergmann" To: "Kalle Valo" , "Chen-Yu Tsai" Cc: "Jeff Johnson" , "Bartosz Golaszewski" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Bjorn Andersson" , "Konrad Dybcio" , "Catalin Marinas" , "Will Deacon" , "Bjorn Helgaas" , =?UTF-8?Q?Heiko_St=C3=BCbner?= , "Jernej Skrabec" , "Chris Morgan" , "Linus Walleij" , "Geert Uytterhoeven" , "Neil Armstrong" , =?UTF-8?Q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= , "Marek Szyprowski" , "Peng Fan" , "Robert Richter" , "Dan Williams" , "Jonathan Cameron" , "Terry Bowman" , "Kuppuswamy Sathyanarayanan" , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , "Huacai Chen" , "Alex Elder" , "Srinivas Kandagatla" , "Greg Kroah-Hartman" , linux-wireless@vger.kernel.org, Netdev , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, "Bartosz Golaszewski" Subject: Re: [RFC 8/9] PCI/pwrseq: add a pwrseq driver for QCA6390 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Jan 9, 2024, at 11:09, Kalle Valo wrote: > Chen-Yu Tsai writes: >> On Tue, Jan 9, 2024 at 5:18=E2=80=AFPM Kalle Valo = wrote: >>> Jeff Johnson writes: >>> >>> > On 1/4/2024 5:01 AM, Bartosz Golaszewski wrote: >>> >> diff --git a/drivers/pci/pcie/pwrseq/Kconfig b/drivers/pci/pcie/p= wrseq/Kconfig >>> >> index 010e31f432c9..f9fe555b8506 100644 >>> >> --- a/drivers/pci/pcie/pwrseq/Kconfig >>> >> +++ b/drivers/pci/pcie/pwrseq/Kconfig >>> >> @@ -6,3 +6,14 @@ menuconfig PCIE_PWRSEQ >>> >> help >>> >> Say yes here to enable support for PCIe power sequencing >>> >> drivers. >>> >> + >>> >> +if PCIE_PWRSEQ >>> >> + >>> >> +config PCIE_PWRSEQ_QCA6390 >>> >> + tristate "PCIe Power Sequencing driver for QCA6390" >>> >> + depends on ARCH_QCOM || COMPILE_TEST >>> >> + help >>> >> + Enable support for the PCIe power sequencing driver for the >>> >> + ath11k module of the QCA6390 WLAN/BT chip. >>> >> + >>> >> +endif >>> > >>> > As I mentioned in the 5/9 patch I'm concerned that the current >>> > definition of PCIE_PWRSEQ and PCIE_PWRSEQ_QCA6390 will effectively= hide >>> > the fact that QCA6390 may need additional configuration since the = menu >>> > item will only show up if you have already enabled PCIE_PWRSEQ. >>> > Yes I see that these are set in the defconfig in 9/9 but I'm conce= rned >>> > about the more generic case. >>> > >>> > I'm wondering if there should be a separate config QCA6390 within = ath11k >>> > which would then select PCIE_PWRSEQ and PCIE_PWRSEQ_QCA6390 >>> >>> Or is it possible to provide an optional dependency in Kconfig (I gu= ess >> >> imply PCIE_PWRSEQ >> imply PCIE_PWRSEQ_QCA6390 >> ? > > Nice, I had forgotten imply altogether. Would 'imply > PCIE_PWRSEQ_QCA6390' in ath11k Kconfig be enough to address Jeff's > concern? Please don't use imply (ever), it doesn't normally do what you want. In this case, the only effect the 'imply' has is to change the default of the PCIE_PWRSEQ_QCA6390 option when a defconfig contains QCA6390. If this is indeed what you want, it's still better to do the equivalent expression in PCIE_PWRSEQ_QCA6390 rather than ATH11K: config PCIE_PWRSEQ_QCA6390 tristate "PCIe Power Sequencing driver for QCA6390" default ATH11K && ARCH_QCOM Arnd