Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp465133lqr; Wed, 5 Jun 2024 10:58:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsyvdS8m6GTzFrI6hDXcDzMWMj5KfB84Tk9LNNICVMvQWZfJXSoF37+NwybPFzHAvPTgvQW6SYntwcA+eG1/9eQOa/jxnZRV3boa8QDQ== X-Google-Smtp-Source: AGHT+IFijf6zR59GMJ4UN8Mr9cUqwDw6ar7nwI55NARZ7ldg2Q9/YvVZA7OcejIYNX/xapXdDCq6 X-Received: by 2002:a05:6a00:b83:b0:6f4:490e:6 with SMTP id d2e1a72fcca58-703e5a0cff7mr4093489b3a.30.1717610289932; Wed, 05 Jun 2024 10:58:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717610289; cv=pass; d=google.com; s=arc-20160816; b=tlM6vOZ7PvyOiugU4tOvaBfxBESapt3c3oqntT83tyw82UqkrPt6H0A88CxuobltcO AeCm6nImEAEVnhVF7JRx5mqqwdXqiEG2cPo6uHWlRP8+4XwTOOnzi0MsofoSI5Rg7jNA 19Np+6Kx+k5uWV94dyvddI+HYaPW8cH34SzF1i0zv561xkxukrUGGXwxtLMx90nRGFeq G1H/XRot5TzqDTeJZfsxPrO22qzltAc/fsJcNQ2IWi3TcLwgl66yHisfwknzWKPFeSIr ojp2Cp6+98S6lkWC7HJCkHVKyHK9mrKOQJxcrEG6igYD3yljX8q5zqSQXpFa8iQu26cI 4n9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=+Jx12y5gYkqqfNSXItJpjKXbPTAwVClLiAQ6P58DyQU=; fh=yr6H0T3KHgahQEioEQNcWtbiz+auLXCWSFFYubaICQE=; b=rcGLO8LTTyPNAT6YG7EaGnDElpPVdyFQCZYxKCCEywFzkFrC4SL4oTHSQ1Z5oDtzXe SqgRRY0KTXRygo8xSwh/8SdrAEiKZQaFq/BG9/odACKaucyO7YQy5bZtFSmaSCnLI19g oCBZVhsskymRVczKlkY0kCrdEHgfzwen+W6nH2cLQxAheN8Sta+gFzpFJn0E8oQKir0I iHXp4WSE4lr8s4p0mL68etGsqkbKdljhrIQEm6QG+29PLiEylpMlOR0XUY8HwhLkyMrb 4eavJta/DvF04JZrmIyyeFOEl6xVHhTpdyaDHcaoahJyAZW7u3KCNvvhBHRFPD1rm0y7 x7dA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hd1mkKZU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70254f7ba7bsi8768767b3a.108.2024.06.05.10.58.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 10:58:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hd1mkKZU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8571-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2922728A9D3 for ; Wed, 5 Jun 2024 17:58:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F357195392; Wed, 5 Jun 2024 17:58:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hd1mkKZU" 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 DFFCE194AFC; Wed, 5 Jun 2024 17:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610280; cv=none; b=GLvsdviSoEyb8ytTqkTCEDBLvAyeWt+/p9TbRx6uLZ/17UlL5cJPuLM4Yemne2s4FdoFXTkvqWeUFrW2ASbBIAauYK7aS2C3404vESZ4rxlddD875oHJU+IIKyQSlt9lLF/AQCNxwsUaX5oIuA99RyfIaxYv8rv8Q/mRnZNvA2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610280; c=relaxed/simple; bh=7651KFw0eV+sZCBg3Xgw24WdzXcHIYOFgb2Cy9igrRI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=YIaFdSluSpJaGSiqVimeNPBF+CTq5/vvZRlsGxv5j/U7otp7ZZ/NrN/Ga7BjeudNGvgutNHNR0GZ4bTJHeZMbfpliSNqSAMY3NbMJLc2TOj7aLW1jm+UEGZzESKbIHdZLNbUjIK0DGQVZVaIER9IEaxGxYqcUwn37VEmnJBrMlc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hd1mkKZU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65200C32782; Wed, 5 Jun 2024 17:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717610279; bh=7651KFw0eV+sZCBg3Xgw24WdzXcHIYOFgb2Cy9igrRI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=hd1mkKZUhqQqGSBxCm4GPev0yQ2EhyJ/hnZS0yvgyGtNfBS8om6Bq1RE4ifOd6gI5 D8VetdPBrhbibxq/5zOvS8onnXu1R6FCGyyoHUAXd3cSpnu85JqX7ckJNf2pyzbUzY MjxiEshiMdJkwl+wJpE22c15NY/CKktbPbdboJBMrgBWeTJiL9h8JinLCNuaox9GSo GtwR57MNbDomombf3jMBJI8juBUZct7vfnfRdKjGTgIv6mmyHFEsR4tVai8f8qe9p8 EV670UDpwwOhsKCdGYgA+ho+/AM5EFh1w+wIiD5pu1QB2ephfYREjVAwQiUgGBsrXl G4RSCtSn6mpuA== Date: Wed, 5 Jun 2024 12:57:57 -0500 From: Bjorn Helgaas To: Bartosz Golaszewski Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Balakrishna Godavarthi , Rocky Liao , Kalle Valo , Jeff Johnson , Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , Srini Kandagatla , Elliot Berman , Caleb Connolly , Neil Armstrong , Dmitry Baryshkov , Alex Elder , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, Jeff Johnson , ath12k@lists.infradead.org, linux-pm@vger.kernel.org, linux-pci@vger.kernel.org, Bartosz Golaszewski , kernel@quicinc.com, Amit Pundir Subject: Re: [PATCH v8 15/17] PCI/pwrctl: add PCI power control core code Message-ID: <20240605175757.GA733809@bhelgaas> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240528-pwrseq-v8-15-d354d52b763c@linaro.org> On Tue, May 28, 2024 at 09:03:23PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Some PCI devices must be powered-on before they can be detected on the > bus. Introduce a simple framework reusing the existing PCI OF > infrastructure. > > The way this works is: a DT node representing a PCI device connected to > the port can be matched against its power control platform driver. If > the match succeeds, the driver is responsible for powering-up the device > and calling pcie_pwrctl_device_set_ready() which will trigger a PCI bus s/pcie_pwrctl_device_set_ready/pci_pwrctl_device_set_ready/ > rescan as well as subscribe to PCI bus notifications. > > When the device is detected and created, we'll make it consume the same > DT node that the platform device did. When the device is bound, we'll > create a device link between it and the parent power control device.