Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp442978rdd; Tue, 9 Jan 2024 08:44:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+SpoCZ9naplzsc3E9ZLLIm03vSm5fWZSFDghdkzNiwacaw2MCAr23XyqOConPOzbVs8Mi X-Received: by 2002:a05:6512:ad3:b0:50e:9353:5376 with SMTP id n19-20020a0565120ad300b0050e93535376mr1790057lfu.21.1704818651530; Tue, 09 Jan 2024 08:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704818651; cv=none; d=google.com; s=arc-20160816; b=JJjO7lfM/ZBgkg+eh/UocDLJNZB50SYB7yrFoUQCmstm8Pi3ILciTAbF1dEgpVH74g 3SJRVcGEFj4AaODkqn1iQvm4U0uFGmiCVefEYbBSUb/5OeUkOE79nbKDgMj6jZCCkp7e P6LM/NSvYYmBw7ZnhfgWhsNdw09keJ92NYPOW90fWiCl9Kojd4uAH16Cha0Jr/fi9FTO hk7AtgVhcou1Dtlhi7YWfuqPxOLeta8anzsaNUof8vpPwxduGQWQlW7n78kiYdH3HcGt GW9qBKXDj8aVXYk1e5ApP5VXBMx0FVkWs+C0l4rmIMch6fUHZfARfybIJKzJeGhJ8ZJx IrbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=8rb97S0HTG+SG5+w3ky36gkOffSgvFIxyGTjJdwhjVw=; fh=HvclOwZA13KXK0XjaxPp2c4wIpv6aJdyKew2XafPayo=; b=g2Jv8jOvCJdYlnZWps0uIxRpqv7UVe/v7kmuK4llW4LkUalgJFop7RDLn/2mWqW5aG BxexW/piGWDS92dyhbOoXOyQrCwyzp0wg5SYLufaWK/giGXlSHbx5oJGgZV7XKGGqRAP PuVXIkkXs/zzxtGYG0Ak9qR6RD9SgEJv5B5nX0JHQHyAvKth53f0bp0d6bBpOuzHwdU7 OSLu6oDEkpMT0juEvr5VkNFl4Ei0FIC1EH11PtUAU2PxRFNP7XoRpphBNn05XH/ky7CP 4+NuVuuN+f4mFt4W8v3a6eqdPcyLeaNM+DgZU0SEhq00Bujo2YtYCtkQDYV9PEERAmzp tQYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G4dkcEVL; spf=pass (google.com: domain of linux-wireless+bounces-1635-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t7-20020a170906268700b00a286d2d31c7si900624ejc.490.2024.01.09.08.44.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 08:44:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1635-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G4dkcEVL; spf=pass (google.com: domain of linux-wireless+bounces-1635-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 456B91F26006 for ; Tue, 9 Jan 2024 16:44:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 165243A28E; Tue, 9 Jan 2024 16:43:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G4dkcEVL" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D7A3E3A26E; Tue, 9 Jan 2024 16:43:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EF17C433F1; Tue, 9 Jan 2024 16:43:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704818629; bh=yAp04RHGBK3kZbfdthXQtiaJrJ2VNSMii5hP7oiD+zw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=G4dkcEVL0oWynRladsUPhZwHfdDo8UD+5c464yEtzLCtGIVanqhEeQwe1/n5CTgM0 B2CqdYV6p+V44I07Mt9gSRhS+Lqvp8DD7HA7Nfj9henMfX/qHATwgT78HqR0qEPClw fgITg/4pAARBbYA4IiAgLsqB+Sy8geWKI67CP4JUDhbWPzB29ctC5MQ13mXgT3Yxme yu852Wes/t5ILUt11tKtONA3zuC+OpYLEeVqZNUTFLDr2VMQkWEZNycM8LihQ1SjXl kl4R6UMi1HH4Vjz/4PCmYe9xSYuEHgM5+QazTkSFUrFew/ZJNUp3fBvlb5T5rMrbLh /qT6qG0+gcEGg== From: Kalle Valo To: "Arnd Bergmann" Cc: "Chen-Yu Tsai" , "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" , Heiko =?utf-8?Q?St=C3=BCbner?= , "Jernej Skrabec" , "Chris Morgan" , "Linus Walleij" , "Geert Uytterhoeven" , "Neil Armstrong" , =?utf-8?Q?N=C3=ADcolas?= F. R. A. Prado , "Marek Szyprowski" , "Peng Fan" , "Robert Richter" , "Dan Williams" , "Jonathan Cameron" , "Terry Bowman" , "Kuppuswamy Sathyanarayanan" , Ilpo =?utf-8?Q?J=C3=A4rvin?= =?utf-8?Q?en?= , "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 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> <5904461c-ca3c-4eb1-a44a-876872234545@app.fastmail.com> Date: Tue, 09 Jan 2024 18:43:38 +0200 In-Reply-To: <5904461c-ca3c-4eb1-a44a-876872234545@app.fastmail.com> (Arnd Bergmann's message of "Tue, 09 Jan 2024 11:14:43 +0100") Message-ID: <87y1cycv9h.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Arnd Bergmann" writes: > 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 wr= ote: >>>> 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/pwr= seq/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 h= ide >>>> > the fact that QCA6390 may need additional configuration since the me= nu >>>> > 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 concern= ed >>>> > about the more generic case. >>>> > >>>> > I'm wondering if there should be a separate config QCA6390 within at= h11k >>>> > which would then select PCIE_PWRSEQ and PCIE_PWRSEQ_QCA6390 >>>> >>>> Or is it possible to provide an optional dependency in Kconfig (I guess >>> >>> 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 Sounds good to me but should it be 'default ATH11K_PCI && ARCH_QCOM'? My understanding is that we don't need PWRSEQ for ATH11K_AHB devices. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes