Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp86471lqp; Tue, 11 Jun 2024 15:57:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYwN12VWFzUCKnwjvvRAzEOtl1cj5h4SNigjz72MlKpEMsfEsw3Eczydtg6SROYozCX1ZI85PDlDHw3JPDCmqkXCtC26Jq5ZZcBARgpw== X-Google-Smtp-Source: AGHT+IFWDwK9Ro/GPzXYDpFR9pz1t0vFOli2gv0SxJ+4efLfYHNvTx4LsbPFGCUAr/S4vC3jaNIG X-Received: by 2002:a05:6870:9708:b0:254:a753:d1cc with SMTP id 586e51a60fabf-25514afc255mr289730fac.3.1718146667292; Tue, 11 Jun 2024 15:57:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718146667; cv=pass; d=google.com; s=arc-20160816; b=HgZin8jqfgBBNhX9JYkvtQqs7s1XvHgSVSvSy171VX22Jz2SxC/2GP9XDNK1q6XU4i JMlnndbVQF+H/yoTJDhLSFy2IWSb0I7czmEHc76UiODHADDbIkgBPWRhRybvqQGR56RF ma37Mes/gT/596pL7t7V2gdhijqoKJoeh3zHINDPxOWEsjog5X6Mi1wvKAI6n2CMGqAx FrV3dcrqN6HWCxMVq1kFFaaeSX+dcsIwjUh/nJdZzJuAs8MxwPIH21+ZR1XVMTLXAEyv 0IPVd3xUU4ROwQ6TejUIG3e5XlKTgiYFZr9FgO1lWLXPA5uXJKIU5gLGVG7rhrXMPlz9 UkCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=EBqNYT9tMpq8aw05jSRDe2me24mEsp4wLcEycUytSPA=; fh=yr6H0T3KHgahQEioEQNcWtbiz+auLXCWSFFYubaICQE=; b=mUNtBVatNv/8PkT3UCtHeUAlR55/E3ZXDY9/GKlbRAjRsE8rIJonPiaLgFsAF1PL1N 4AZ+/Y0jDqOxE0Km9VcP4VwKTvOkbz2k+sDYzMQTiSZvyZ8Xf3x8B+QIww2byM9NpPZN AaGgqYTCL1fWx8ODKTewqzSKz9WTTuHfggPejELbAZnZNQ4+8bRn6f/ZPR/Iymqulz7Q 6mhkBqYNd+H7Kq7Gl4mrtPdsoD9jo/GCvDwuVH5d2xDaxC1uMj/DufH1koWFyAtUHUgq xdKiTUpC7mGi3+sltllyvvDafzS5aCj3KLI1Cm9e66E0dLnpG+onueox2S+gDqMh2vJf 1EBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oEPS95Vp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-5265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7953338c129si1380957685a.692.2024.06.11.15.57.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 15:57:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-5265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oEPS95Vp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-5265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5265-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 04D211C235AA for ; Tue, 11 Jun 2024 22:57:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10E7D155CAF; Tue, 11 Jun 2024 22:56:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oEPS95Vp" X-Original-To: linux-bluetooth@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 5159A155A5D; Tue, 11 Jun 2024 22:56:39 +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=1718146599; cv=none; b=n4DfGtTTJpWyhqn3f3ah8zK30S4Zzhxfyv1DFi/FMiggQYn7TW8DEX2Udxzv5pTCNeKvTb3BD86nA5VMJxSSs2q5zqlEOm9rGMNdWEFU6JOWysoRRXYokXUz4yIn+IyhcciR6OV/LmlWf/IIrBRX81npfVqKYInWKbgtjSdBp6A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718146599; c=relaxed/simple; bh=fTTmy82roNHgpHAIircnr4I4sFYZNjPs3kLCDpI1ztE=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=gt8rWC43nXGDh5Fxdv47ErYz4lSCCfIQvJVWifv7tZWf4HpuG6sdwHsb7dREGjnhjokbg+GwwyiH6+JiLBOueZXNSu/fhBwLHHDRjo9+8Y/KiGhlVANvYjB3pXgqZvLIP+Bb+NRrh30eRYgOD1vUdac0AYDebeUYU8U+JVJvNN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oEPS95Vp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7A8FC3277B; Tue, 11 Jun 2024 22:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718146599; bh=fTTmy82roNHgpHAIircnr4I4sFYZNjPs3kLCDpI1ztE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=oEPS95VptOeiB1acpH1GE+ebcl2vKNI2aPXlHGGBxogzerUzv4LasE1Sssg9UskoH Qv9gl1YoLzDIQwKXyBI5DlmQ+dpttpicGgKUvOEGB3T/lEHAqSeIu1QXPqA8PxIUW9 QzvHTaFml4rhw/Tlq/vwsedAxaGIJ1bU3YFamBZOXnU2FQkuSIQeGvt9dT4nTT2PWF lm3I2QJF5yF1JzzgpPPF7lLZc7hdrmIKc80kYyol9cZn1s350kzC5uXwQeDFy1Y08M yyH3EtpAkyLHcpCwIwGFD928yyBIQ1VNrIW2n5jc0Bux851JF/QN8iqD6vXw4y1VIG ihNf06lncAslw== Date: Tue, 11 Jun 2024 17:56:37 -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: <20240611225637.GA1005953@bhelgaas> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Jun 05, 2024 at 08:05:06PM +0200, Bartosz Golaszewski wrote: > On Wed, Jun 5, 2024 at 7:58 PM Bjorn Helgaas wrote: > > > > 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/ > > > > Ah that's a leftover from when it was PCIe specific. Thanks. With that typo fixed and s/add PCI/Add/ in subject, Acked-by: Bjorn Helgaas > > > 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.