Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3217432rwb; Mon, 3 Oct 2022 11:21:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7JwO+X3Nzub2Jcf/vOJKLH+DdZ8uX9vgfMaByFY1j9YdYBlrslak7LnYiILizOoVPD8NfV X-Received: by 2002:a05:6a00:1a07:b0:541:6060:705d with SMTP id g7-20020a056a001a0700b005416060705dmr24307697pfv.61.1664821295450; Mon, 03 Oct 2022 11:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664821295; cv=none; d=google.com; s=arc-20160816; b=wjBSrml/2ZtyRBqXEzoAMwAJMjp38Vlj+uhb9iP1SKcckJ+4sgNOqr+ZI0BPimC3W5 +H2Q77cTD32EaE+JgvLGvnXT2c5mXHGkMYMAP2yUyr//uUE2ChOZEEIrofDRCqkuoNAR cFY2O06BnzNIkwy2CK11rIZlp09J/q8uIptUosaSjJDenNW5vlZlB9Bzh21XoXWh6z1x ZnpaODxMYnPeGdmmVSIYzN/gEipDucJ1ozyodMaUVHGDMNtmNdQxg31cOjyTAc6Fv/3e ukGg72UmiPSiLPIq79EYHokzf7rpRL/TI+i4oTnE68hu0r9EX66C6FUVJORGCH8NHbaD o0ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=3JD5BKkF5o5veyQy87s5RCs9MQLfJHzPlwoQxbWzGk4=; b=RaOq/2X8BHe8aKz7ehSnHYp20uXfefR+zIfO1WgDrbRXbBkvfH63rfladdLNrynnn0 MMjyit/L5VZJ+rl8ictNRkCg33FRBq3IaQgRJt6YivgwT/l8robKnTVQPDZ8DsLr8HHS C6SleiwnYbESPMA50VsmWO1FyuQe0pigw1QJRi+w/vq1mqrWL+MURQZw0vnud6mRIv// YS9MM1CR697fvnUCFvctq4VrPbHU2thLgpfCKM+Rgdzt5si6udIk0Y5k/S2v+Tsx4fsl ayKkkTmHPWdH+CUK4bQOSA26qLk10wktUloM4BYwzM/3o/OYnWNTWs/y57WFibr7Z5Vt tzGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KPHRzHlW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020a62e90b000000b00543851d000bsi10079381pfh.253.2022.10.03.11.21.23; Mon, 03 Oct 2022 11:21:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KPHRzHlW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229675AbiJCSKJ (ORCPT + 99 others); Mon, 3 Oct 2022 14:10:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbiJCSKE (ORCPT ); Mon, 3 Oct 2022 14:10:04 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A8471209E; Mon, 3 Oct 2022 11:09:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 87825B81203; Mon, 3 Oct 2022 18:09:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD545C433D6; Mon, 3 Oct 2022 18:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664820596; bh=ANqFI6xslOGdcFDVAOiICDsxXBMTCaKi13Ycp8pVIR8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=KPHRzHlWh1OPUagG4uwrYFJlVJRRNFCam8EqLQCMYmXat2XL0n5epL0Z7L4NJu0iI n32bD1rCeEqJ7ipwWNDJojRYW+NdpqCbvD2jjHaJO3e5bz8XtlsDYhrqLGOh2vZ0QQ If/q3ezlan3MHHGsWQnEK+xAqbI0STq9CrWerzRI9U986HYrCU3aVRZg2AI5HKCArO 1EM0nQBRUp8VQZodOmWDn/gfeuqBRc2v4Amr0Lm/8xb+hWlppeD10CvHuW2L4DKEWz Ng1hr9DbIKH+53tfitlwZZ2oZT1T1zOlO8Hq1NjPIVQcXkCV8gGSfoXPmwNLfWXtKF a7ozlM0JggbYA== Date: Mon, 3 Oct 2022 13:09:49 -0500 From: Bjorn Helgaas To: Jonathan Derrick Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Lukas Wunner , Vidya Sagar , bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lpieralisi@kernel.org, kw@linux.com, thierry.reding@gmail.com, jonathanh@nvidia.com, mani@kernel.org, Sergey.Semin@baikalelectronics.ru, jszhang@kernel.org, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kthota@nvidia.com, mmaddireddy@nvidia.com, sagar.tv@gmail.com, Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH V1 0/4] GPIO based PCIe Hot-Plug support Message-ID: <20221003180949.GA2104321@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2a465222-342a-418b-95af-9948f6ce9065@linux.dev> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 01, 2022 at 05:50:07PM -0600, Jonathan Derrick wrote: > On 10/1/2022 10:20 AM, Pali Roh?r wrote: > ... > > Would not it better to rather synthesise PCIe Slot Capabilities support > > in your PCIe Root Port device (e.g. via pci-bridge-emul.c) and then let > > existing PCI hotplug code to take care for hotplugging? Because it > > already implements all required stuff for re-scanning, registering and > > unregistering PCIe devices for Root Ports with Slot Capabilities. And I > > think that there is no need to have just another (GPIO based) > > implementation of PCI hotplug. > > I did that a few years ago (rejected), but can attest to the robustness of > the pcie hotplug code on non-hotplug slots. > https://lwn.net/Articles/811988/ I think the thread is here: https://lore.kernel.org/linux-pci/1581120007-5280-1-git-send-email-jonathan.derrick@intel.com/ and I'm sorry that my response came across as "rejected". I intended it as "this is good ideas and good work and we should keep going". Bjorn