From patchwork Tue Jul 16 15:23:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13734637 X-Patchwork-Delegate: bhelgaas@google.com Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 82809198E80 for ; Tue, 16 Jul 2024 15:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721143416; cv=none; b=dWRESFDYxw2NKAxMaM03pAKM8zO/2D9V1AplcDhoFldsNqMo2uUpFkGCvocC2D6aWGUfuW9PnnMvAuBgBg4dWD2tV2H14rMeS8B1DP1JWbEn5sJm3vtHYv9HcKiFs5RkIGWwKrVZfUQCpbUGJpNpp1fHjacm4vvjRFVAFBz6FV0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721143416; c=relaxed/simple; bh=bGn+rHjny5c1SxClfYzY2jWr2ZLUz5ncts1GzjAekJs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sPaqBYsSrR87X+WOTcsTbmJvtNNtfjGF40eztcWLNGzM+GnjRiYf1QmgLGljHmtxRoakrh0/tjG1o5CcriwAWzkMpHHyTUV49sqh/6mRoV7Kte5mtC+X2ES7OoRbivT23AJIbKW0JVnr2FWsPyUA02yrYacY3zGxjgwE7thQoiU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=BwYbrj/n; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="BwYbrj/n" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-585e774fd3dso7205310a12.0 for ; Tue, 16 Jul 2024 08:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1721143413; x=1721748213; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wxoFfd3TTbAHl2yndd9wu69CQvAfo9xTQ8OCO+y4mlk=; b=BwYbrj/ntSqdom7U6NEJtmA0YVHsYbeTIchcm4Uf9CODIbNN1lZbFiMYlBMjvKRrhd cCDEYPtLhTCv0O2p81vkgrDjZEO2WbZKxI2RbVY35Kye1g6rfW5kYBG0X2A8EHgzRVEx vsxOwOEqq7v+CjGMeWmzpt3eWo3dQCvAYjn9m+y2elx04qN6Cs3UJ5WolFvID/x9w9k6 LERFRjBMPVdb5BU7Zv4UykFrnCmiEZAW8eQlg0H3j8VrBjyMh3SQBPa8O4Nz8W2cbqOD 1u1a/jR1AAt3NJXKvDs1tVYh224GpD4yowudI+L2imOUSPWTkwDuCYt3e/4IHGpUiEmu I/gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721143413; x=1721748213; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wxoFfd3TTbAHl2yndd9wu69CQvAfo9xTQ8OCO+y4mlk=; b=XCO5tcBZgjmg5swogdNd8hIOAZwcwRN1AG6qe3KJ7q3+0vSuMAx0IunkPLbiqxRkzz m2KsCpY07IRaiMCL4Rx3nvanbUT7rs1iwRhEZuqM703KzFVHr805y4oyVfx89CpLqKt9 GR2wV4I3rZUldM+XnIZ7blfPqQ2wHifF60AaKrqXuBG6OJQFjpzjFXGg+Kqq22ULffL1 fx7QwT1Mt7WappmHJkxME0q6sd5dfDIQyo1RY3ZqfX4zpcidzaQHH5YNYdM9nJ1djoRX HyBDuHGfdlLLBiURdyOkhulmGYRrcDsNZ8tPHtRJxHdvvr+XtpJni56uNyyN+JWR4pdj 7Gpg== X-Gm-Message-State: AOJu0YxVhuAohIIbjuxtyz2yxWv/yX9BRmRpU/y+9F+Yurrlb5xuIc/7 qR5WuQOJkk0y7YrnH9SZqrI61na1su2dXl26uxeABEhl6GrQQC7VEwjD1bxy5cY= X-Google-Smtp-Source: AGHT+IHrZNQzj825v+rX0fE3xtI3Zhmow/MvKLEWELV6f65wff1M5rMXQGR/8kN/c0sQD3CaC703UA== X-Received: by 2002:a50:f694:0:b0:58d:d3f6:58d2 with SMTP id 4fb4d7f45d1cf-59eee83203bmr1687238a12.3.1721143412642; Tue, 16 Jul 2024 08:23:32 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:3bd0:8776:e8bf:4da9]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-59e663e4a6esm1938627a12.80.2024.07.16.08.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 08:23:32 -0700 (PDT) From: Bartosz Golaszewski To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Linus Torvalds Subject: [PATCH] PCI/pwrctl: reduce the amount of Kconfig noise Date: Tue, 16 Jul 2024 17:23:18 +0200 Message-ID: <20240716152318.207178-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski Kconfig will ask the user twice about power sequencing: once for the QCom WCN power sequencing driver and then again for the PCI power control driver using it. Let's remove the public menuconfig entry for PCI pwrctl and instead default the relevant symbol to 'm' only for the architectures that actually need it. Fixes: 4565d2652a37 ("PCI/pwrctl: Add PCI power control core code") Reported-by: Linus Torvalds Closes: https://lore.kernel.org/lkml/CAHk-=wjWc5dzcj2O1tEgNHY1rnQW63JwtuZi_vAZPqy6wqpoUQ@mail.gmail.com/ Signed-off-by: Bartosz Golaszewski --- drivers/pci/pwrctl/Kconfig | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/pci/pwrctl/Kconfig b/drivers/pci/pwrctl/Kconfig index f1b824955d4b..b8f289e6a185 100644 --- a/drivers/pci/pwrctl/Kconfig +++ b/drivers/pci/pwrctl/Kconfig @@ -1,17 +1,10 @@ # SPDX-License-Identifier: GPL-2.0-only -menu "PCI Power control drivers" - config PCI_PWRCTL tristate config PCI_PWRCTL_PWRSEQ - tristate "PCI Power Control driver using the Power Sequencing subsystem" + tristate select POWER_SEQUENCING select PCI_PWRCTL default m if ((ATH11K_PCI || ATH12K) && ARCH_QCOM) - help - Enable support for the PCI power control driver for device - drivers using the Power Sequencing subsystem. - -endmenu