From patchwork Sun Nov 13 11:28:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Albert Zhou X-Patchwork-Id: 13041526 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0B8FC433FE for ; Sun, 13 Nov 2022 11:28:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235085AbiKML2W (ORCPT ); Sun, 13 Nov 2022 06:28:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbiKML2V (ORCPT ); Sun, 13 Nov 2022 06:28:21 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA96FD1D for ; Sun, 13 Nov 2022 03:28:20 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so11409738pjk.2 for ; Sun, 13 Nov 2022 03:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q8IYj8S1w5iP1o57NjFkBuEASFp8JRqWmn4mV20/Zro=; b=K5iXlELAgy2DodiUBEqsV/ZKH7It/jS1a3XTwLIA+GXVut4+S3pfqdc6jxpaymLOMH k5Q1E7wty0il6bXrJQSsdRgD6tD1L/+Jrt7XH9m9sZd/S80tdoBCDnG9AYwM0mrZcI81 LHWCrW5VenN3kLrDTnTdBVsmPQLKLUY41zGHIFlO31LiOBbMpsNNt+wE0JOpg5NlS3wT ie4cW3qeUnhDxh3kqPwRNyAcZDaJozjd+aku3THqn9/iIZV9C43GMKFW9eYQUsrayOwI +6p59wJwbVRrEr7dCZhlcc2xa5GDkWCpB0RDgjSpVQVY0tgW5PnsXz8TY9rrHeZbLIPW ykTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q8IYj8S1w5iP1o57NjFkBuEASFp8JRqWmn4mV20/Zro=; b=KLh9wDp63MN+RQroSE0mPPV8Jxsoshy/GAqBbAQf6QAIhjJda2kKmNQ1/rAs3hiAgf mbceEED72dq2EH//kl7FZD5iKAhV9sFsurnVOT5yYf4U8a70yWoyEdioMiXp3nIwDZgu uS+2ULqiN70QUOHaUVCDIljTIMtWpkOu4OB65XjsCIAecOcWkI6VQhWxyjnstiKGXdxC wBF6y3vowTWzdeewG0WlWI6TMizBhBHO4gaXq78uR5oaJV8xfigRuEpFEzzPxUrDPa0n rEIa88zTBoBLDtPdK91zXO9EZlNxsj2g5xcg1syeTRNOkOVDIVhhM+QYWLz5nc0bRkQL kw3Q== X-Gm-Message-State: ANoB5pkR+/KPFyI6cFj4qEKhIWFmsryi7HatSkTpi4C41tLAhvtzdZ7R PzMdQ41WggTOBHicZ5N1AgvuA5JRD0L4pg== X-Google-Smtp-Source: AA0mqf7ykW7hymZu6ntYYPGPTnzrAn4+dxnaHudYv7Oqw9g6OCcyUiQ9zfQfasYN22/W8MIvsHP8Xg== X-Received: by 2002:a17:902:f7cf:b0:186:8a1e:9b46 with SMTP id h15-20020a170902f7cf00b001868a1e9b46mr9546164plw.80.1668338900451; Sun, 13 Nov 2022 03:28:20 -0800 (PST) Received: from localhost.localdomain ([220.244.252.98]) by smtp.gmail.com with ESMTPSA id z68-20020a633347000000b0046fe658a903sm3987439pgz.94.2022.11.13.03.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 03:28:20 -0800 (PST) From: Albert Zhou To: bhelgaas@google.com Cc: linux-pci@vger.kernel.org, lukas@wunner.de, mika.westerberg@linux.intel.com Subject: [PATCH v2 1/2] pci: hotplug: add dependency info to Kconfig Date: Sun, 13 Nov 2022 22:28:10 +1100 Message-Id: <20221113112811.22266-2-albert.zhou.50@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221113112811.22266-1-albert.zhou.50@gmail.com> References: <20221113112811.22266-1-albert.zhou.50@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Thunderbolt and USB4 PCI cards require the hotplug feature. This is now recorded in the help message for HOTPLUG_PCI. Further, HOTPLUG_PCI is defaulted to Y if USB4 is selected. Signed-off-by: Albert Zhou --- drivers/pci/hotplug/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig index 840a84bb5ee2..06cc373834f5 100644 --- a/drivers/pci/hotplug/Kconfig +++ b/drivers/pci/hotplug/Kconfig @@ -6,10 +6,12 @@ menuconfig HOTPLUG_PCI bool "Support for PCI Hotplug" depends on PCI && SYSFS + default y if USB4 help Say Y here if you have a motherboard with a PCI Hotplug controller. This allows you to add and remove PCI cards while the machine is - powered up and running. + powered up and running. Thunderbolt and USB4 PCI cards require + Hotplug. When in doubt, say N. From patchwork Sun Nov 13 11:28:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Albert Zhou X-Patchwork-Id: 13041527 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5959FC433FE for ; Sun, 13 Nov 2022 11:28:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235207AbiKML20 (ORCPT ); Sun, 13 Nov 2022 06:28:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235231AbiKML20 (ORCPT ); Sun, 13 Nov 2022 06:28:26 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8033139 for ; Sun, 13 Nov 2022 03:28:23 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id p21so7752812plr.7 for ; Sun, 13 Nov 2022 03:28:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KoeJ7l1SeItyiH/i7rqoeuzAnNEGB7ufNahWeuc/2i8=; b=hyRwbqJypEjLrhxR1mu7l25ZMVFjClGBDwQGLpvf3LTQ1Iauz5AuSeMzA3GBRFTqRK 8om0JGLmWPKYHmWNBE988cTx1O3hAL87jF6sNn8xBaGusH1nn2BXNf6Dbh1DB+YaKKPY lwNlMxYSYzn6I2lwYZp7lm/L4H18u8HPGTAPisIfW56HkK7crOrs3vN9rXnM+bWoa78G TdFHhQIHeAO+OS6Xc7VV6dcxFmrU9s1AZq5q/AfjreEK008Kb/5zz7CJ7pF1MIXs05GH NFomB2yCJ5g1WbQNP9nmFCVag+ZdZgJBgltPxp4fIE7TJpviL6eSBGCGoUkLJmBVZ0oI dprQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KoeJ7l1SeItyiH/i7rqoeuzAnNEGB7ufNahWeuc/2i8=; b=VMZJ7B1us8jDr3FVj9bSfjB7EKH4E/8Ah4J3eTly+M80txOevSqTA1NIqE5TBoF4YE 9OWCr3PbG5oJQwGbLlY/XT+QPfRzNFI679HdZ20OORoWF4k8Hh+y2jKQfgbRwXgnTrAX hEwKIZAm37Z2vNuXJiHH24fTimfnS0QhvoqMEqWLNKzKJYBQdvmMj4V4shpINccHG/f3 C5csuOT/NZxU7AkShJUAzNF/PRpOCK5f6TUrKTEpkVniaiW670cK48qF2G6cgJrh5XBe QKh6nM1l8VhnL0ZwgCY8fX4UMG0tO0feINqOu3PCE0b9Lo3QErtEgZSEonv56ePnWoV/ qxMw== X-Gm-Message-State: ANoB5pnBDtlnQxDbY8PKGsWNfRwi0IQDiHTHsNU2+st1Q4jP8ACFcMZB h0owa23fMOpAMqWCCKMBgA8= X-Google-Smtp-Source: AA0mqf72/Y93b6xSZtxf8dHURrAphQabFGOERypD9D3ZogVxzmX2Y01HF3XnLFbZHIvDd+Dd3LuB5A== X-Received: by 2002:a17:903:324d:b0:180:4030:1c7d with SMTP id ji13-20020a170903324d00b0018040301c7dmr9703173plb.99.1668338903293; Sun, 13 Nov 2022 03:28:23 -0800 (PST) Received: from localhost.localdomain ([220.244.252.98]) by smtp.gmail.com with ESMTPSA id z68-20020a633347000000b0046fe658a903sm3987439pgz.94.2022.11.13.03.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 03:28:22 -0800 (PST) From: Albert Zhou To: bhelgaas@google.com Cc: linux-pci@vger.kernel.org, lukas@wunner.de, mika.westerberg@linux.intel.com Subject: [PATCH v2 2/2] pci: pcie: add dependency info to Kconfig Date: Sun, 13 Nov 2022 22:28:11 +1100 Message-Id: <20221113112811.22266-3-albert.zhou.50@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221113112811.22266-1-albert.zhou.50@gmail.com> References: <20221113112811.22266-1-albert.zhou.50@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Thunderbolt and USB4 PCIe cards require the hotplug feature. This is now recorded in the help message for HOTPLUG_PCI_PCIE. Further, PCIEPORTBUS and HOTPLUG_PCI_PCIE are defaulted to Y if USB4 is selected. Signed-off-by: Albert Zhou --- drivers/pci/pcie/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pcie/Kconfig b/drivers/pci/pcie/Kconfig index 788ac8df3f9d..6c54a4512e2b 100644 --- a/drivers/pci/pcie/Kconfig +++ b/drivers/pci/pcie/Kconfig @@ -4,20 +4,21 @@ # config PCIEPORTBUS bool "PCI Express Port Bus support" + default y if USB4 help This enables PCI Express Port Bus support. Users can then enable support for Native Hot-Plug, Advanced Error Reporting, Power Management Events, and Downstream Port Containment. - # # Include service Kconfig here # config HOTPLUG_PCI_PCIE bool "PCI Express Hotplug driver" depends on HOTPLUG_PCI && PCIEPORTBUS + default y if USB4 help Say Y here if you have a motherboard that supports PCI Express Native - Hotplug + Hotplug. Thunderbolt and USB4 PCIe cards require Hotplug. When in doubt, say N.