Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp215182rdd; Tue, 9 Jan 2024 01:35:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/XUQQeSYZ2cL8CCMGzaRDeskVWbql5YMrCkmL17idBXGNXTGWTn+s8d0N5S3SLWUavRgo X-Received: by 2002:a05:6214:10e4:b0:680:ff9e:8bf7 with SMTP id q4-20020a05621410e400b00680ff9e8bf7mr440822qvt.48.1704792907908; Tue, 09 Jan 2024 01:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704792907; cv=none; d=google.com; s=arc-20160816; b=isHgMgdjy/2Psd7oIu5UHyKXEBiYBEZVInty4I+y64hpAt8A5xTgr2e62MnqbkKvzM P9RugnT9dvoEf9YKaAFkF98y0iQfBST+SuEfef6KJGH1Cg3SCSx1cgLNlkLMbLCnUQ/f XTGE7PG7rbsqKsB2TNxdITsSpO+Ul0aRXSsvfGqmnH7F+K0iNqtnrJFsMeJKDT6elbSZ G42EmwrdAiwbEVnbWePTuv4H7uQQrO2lCQShewMqd+iucuiQaVeFkgxip5r6Y6f3foYu cg0MP8TeNfg3RQgzMtTyxkQYN4Mdc9elW/TLaz4BI2CVTGtLEXr2CNC+MTjsUj+FX75X EhpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=LJqT/yKntbRPcfe0qLvKxkYIwKna5/PtEhah9svhmss=; fh=NIPwe5cQkLJzGvjLimkBOKGXclCc6Mj33x+oQPwN1ck=; b=jsl0kVdQavjLMO5ap/yKH+ov6MuRwQ4lmtdwiUdVjG5yEDyNc+TEO6D01ucZh8XlSf KvKl93gKz7n5Bs+4EMYZ2HYyd/tKq5+VqYjVq0WJ7cAMoQz2bbX9eFpsvNaFmlIPiHSx zBIJo5NnmUIl114OhJK9cTIelTbryKzwnQcgBeNeKbu4ER3e5oaiW8/NQymOWAomOHNe WifR8CXrgEQqHhHMuhV+9KMpEVAoXz0/NIKhZrcc2q7TeW50hftQ3IMIHvHNJDjjYnNk JXyl2YqKyETArkaGp58ZX3eps91EcHHmdRuG00TBeHZtzn9hpe58xIUXFrYSlah3tTXp QXsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M6WNk8GT; spf=pass (google.com: domain of linux-kernel+bounces-20669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p4-20020a0ce184000000b0067f8279ac5dsi1752355qvl.487.2024.01.09.01.35.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 01:35:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M6WNk8GT; spf=pass (google.com: domain of linux-kernel+bounces-20669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A4B3D1C24624 for ; Tue, 9 Jan 2024 09:35:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F13131A7E; Tue, 9 Jan 2024 09:35:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="M6WNk8GT" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C817633CED for ; Tue, 9 Jan 2024 09:34:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2ccb4adbffbso31742821fa.0 for ; Tue, 09 Jan 2024 01:34:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1704792896; x=1705397696; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LJqT/yKntbRPcfe0qLvKxkYIwKna5/PtEhah9svhmss=; b=M6WNk8GTtRJ7PfhVeUKRLvc9KuKl7/GvTnnix7epUayVA0lszttlOW3ibvBC9RU4dx gwzfV0wp9R7Lfuw6Jb4psVsPfczJBwcPJDTZO2hEQp4BRbz71TFOjl7ewnQGRpxOVT65 O0jeSwv3a4GLpJxmp+OBZumLQyzAmHEJ1AddE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704792896; x=1705397696; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LJqT/yKntbRPcfe0qLvKxkYIwKna5/PtEhah9svhmss=; b=gjk+W/FBdzpCW9VkKsPDeWEV0xn9zuGAYlOJfaExm8rQnHEPMsVxnruQ2uK3nWRl9k pRc3A8ageQsOBIf6DOVwTKc0c6YleawMx+RMb6W1nM0R6PQAXzRWaiTNMlBM5A2s4opF zdeVRnaZ+zKiZq27Nw7KBaBlDN9w/+8f2/AoOymVLYtUmRI3PR031T2yEpI2A/w5lDc/ m0IC2oeP+EdIGLfD1TRZ8BUqgiW+9uSMDRW9wuN7UZRvD+Vp0TNjGVmTLJDRG9muX+dQ EZGqvQyPodm3JiUp+qH3Rq+dmn7MjFod7qobp2JeZdoFiHi6IGSuIQo0QfvvlJhc1w1N dtHA== X-Gm-Message-State: AOJu0YxS2sQQLVw6IH4YJ44WODXlsiRWWWIdLk/qppSoUl8U8m4wJEs9 Iw8kgeUK3b3Aze3XS+0ZJZlx4htqTC2Yi1e8EIlbR5OSGrnI X-Received: by 2002:a2e:2245:0:b0:2cd:23ed:19dc with SMTP id i66-20020a2e2245000000b002cd23ed19dcmr2040924lji.39.1704792895784; Tue, 09 Jan 2024 01:34:55 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240104130123.37115-1-brgl@bgdev.pl> <20240104130123.37115-9-brgl@bgdev.pl> <15443d5d-6544-45d0-afeb-b23e6a041ecf@quicinc.com> <87jzoizwz7.fsf@kernel.org> In-Reply-To: <87jzoizwz7.fsf@kernel.org> From: Chen-Yu Tsai Date: Tue, 9 Jan 2024 17:34:44 +0800 Message-ID: Subject: Re: [RFC 8/9] PCI/pwrseq: add a pwrseq driver for QCA6390 To: Kalle Valo 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 , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Linus Walleij , Geert Uytterhoeven , Arnd Bergmann , Neil Armstrong , =?UTF-8?B?TsOtY29sYXMgRiAuIFIgLiBBIC4gUHJhZG8=?= , 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 , Srini Kandagatla , Greg Kroah-Hartman , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/pwrseq= /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 concerned > > about the more generic case. > > > > I'm wondering if there should be a separate config QCA6390 within ath11= k > > 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 ? > not)? Or what about mentioning about PCIE_PWRSEQ_QCA6390 in ATH11K_PCI > help text?