Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp473884lqr; Wed, 5 Jun 2024 11:11:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqFK8ItDHQ0QvStolNoZRPJME0tPyvyzp9vGGXihTuVSmNJ5dnjmHq94ZbfjYc07ljiJvcz5/JNMhfwux8Yb9q/WrfaWgTnoyXzJo6AA== X-Google-Smtp-Source: AGHT+IHFn6oLE75ZkYMwN7FPM5OQNfyRQ3CJeAwPs278e9AP76XyU24fprF4aDdQ+H4EYxHfYiMf X-Received: by 2002:a50:d557:0:b0:578:6361:2345 with SMTP id 4fb4d7f45d1cf-57a8bcd9db8mr1716842a12.41.1717611094992; Wed, 05 Jun 2024 11:11:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717611094; cv=pass; d=google.com; s=arc-20160816; b=ebcxaD981SJaRayz3bSEiblsv+R8XUO0otZP+X625ep4UjC7GTXa79KMohmvpDmKyp ZBdJTzLWw3oN3lqaysiO5BXZtRilMtcYMhCMC2DWKa3WlgetEyzIldR5qqHNgDQPbEFk U/jKxX3k0+wulHw1IpyKNaQH/IIr3YyxXfNv9uKAl/KvJQVBByDq/ksw1kVSGmGc6x/e /RWnKCzjbnUhg5F++soWLxw5Crrn4SgOxEtLhjcNrYISyoURk19IAePWlyBsFlcrEVc3 Tn4YLIWu/WC0vbtpXqERrCgufJUnH1rfaWhhwA0IDxntJKF5dXzy2qm0jRyG4dpwu15E G3AA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=LNBfOsZV2m+6msPbBCsAxl6hJfnlMOUzddiwLhwfpe8=; fh=qVGM75WzT96l1IYB3MVpi417ZcZK5WLIrC1seIRfUVk=; b=Lqib7C/HlPa5lS0BBwULfcyjafVBe97jy/HtxwMvEDgss18aPu3Q0uMIipaTGqgzbH dK9ONt/53Hazn2Ibln/bhQw+VZTjTXXepC9qobXj6dYv/TjALI7UfUkiStwi9OmHR5Ax N49U7H3Mw53PYCajV6ICLzk0ucMiY1FcdzEHb2D5NDzm/7/0+RjbrOvkgvAd+p3RUpmF eBRxV/ZV+2qY7KxcAhOIEM/dqH1zhXnNNqNCLbadxSUw+YKXNUQFK0DFQbyw3VXqhvpw C+uA2OiPfv8mfwCqhVUg6gxBOuOr/vZ38NniYKln3j+XxSlUPz2GNrUpsbRA03dPRnpE OcoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=SMJgtHlt; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-8573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8573-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31b8106esi6525211a12.4.2024.06.05.11.11.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=SMJgtHlt; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-8573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8573-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A37411F2A526 for ; Wed, 5 Jun 2024 18:11:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EC33144D2E; Wed, 5 Jun 2024 18:05:20 +0000 (UTC) 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="SMJgtHlt" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 AE7A013D8BB for ; Wed, 5 Jun 2024 18:05:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610720; cv=none; b=fGltPAq+rzwleXFKz/k1PKwBkx5oaMB0gMaK5I0GuacNLX1w+gA39BqnO39y0Ou3SKaBdj9OISroGUq0zqPGS9hTU89t4VaiR4CtW1JaU89/TVC/WdsRGXSkoaAlfrjjxVQfs4lTO9hKart0ltmwWeAHCZ7+vkLYQvTh+BT0a+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610720; c=relaxed/simple; bh=LNBfOsZV2m+6msPbBCsAxl6hJfnlMOUzddiwLhwfpe8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LEevp0cG4Z4kapFUl72osgx8A6YRGTKuncNiQcI+nMRf+v/oH1Q/pTGBy4Bim0YAnch4OR5xgUrJdi5u0roDh8W+ki+bX1dbM/12nHfLWdDefVWx1JlzZA8SvOOmG+luorIAV1WvF3fgI8DRKbUwfRcAShikWyduKitDLKkufoU= 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=SMJgtHlt; arc=none smtp.client-ip=209.85.208.172 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 Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2eabd22d3f4so1383631fa.1 for ; Wed, 05 Jun 2024 11:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1717610717; x=1718215517; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LNBfOsZV2m+6msPbBCsAxl6hJfnlMOUzddiwLhwfpe8=; b=SMJgtHlt2LGtNcSZCCzuhH9s41bIEasVQOrci0q7Wwj0yI/V2ivyG8GToNhXIDXKhV ZjdCkwYsEt9sUiAwh+ZAsHrUO5/EAbz+rKGb1puZPf1eMO7pUTfvbQArr7gAQeBJz5JH trSG2pVugSkXnBWxicYxEncMf/9Ua6o8rZVEAJIx0jzHpPnR0FG3r7qftXozBQM+hZs0 MS9WjOaBjvhAYAR9vHiOulTu++lgLp68vqs/Ma4Adt7lgOiQjwL+gkiVYakFvp3PBiy0 0K2Hrs7HKfrIlBkMk4+AiyjHsJXTxE7Z76wLJb86ic65tY3q4kc+zfe8EdhFLWlNiY6l 1aJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717610717; x=1718215517; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LNBfOsZV2m+6msPbBCsAxl6hJfnlMOUzddiwLhwfpe8=; b=Ms+qID0tN9X1oMlWEHyZAMbN0OiGJXNav2VGHUJUepj7/KoiFTwYg9h61xeVFCVjZj vrMkvxO7PAMbWzTKqpqh0aWbkUSiBk0nY1g8/sibGTuviFvXs0DgX/o7p+2rpMEaFCDx Z4vMOkpPAZqBwb0zRz8mYm4goqnXmAeq7Yurb5oWb/BHSgVePmEgkMedW6r//C/vZubk AtDuMdDXcin+LTfQ8vXLWo83+kE6xGOKG0FlKSThriG7PmWQlbUaXOuPdm/IKlJA849j R/noKTg52JB7wzT6cT2SwiBUnMR1GOfkRXuW6C0wCTQ/xLxRWtplIdc6/uoHuze/DmDU oomQ== X-Forwarded-Encrypted: i=1; AJvYcCXbGdX+HG6gFpxX1xmLwvDtCwh4drR+RrSNFSQHKXb6FLqH+j4G1Ntpj26FExL0vDJwxj74jnED1ad44I8Ay73iB45MrN06qT++jW7ZYuI= X-Gm-Message-State: AOJu0YwQtUmMGNyteVzrA98uWhE77fkGms2eQF/NVvJPMFpTnatI16PW C/6F5Y29mcEojnx4xkpyB++BeOzu7IVZJ6FTkuf4QjuoVWUeXuOVOk02fIE5nl6NWjXp8okK3W9 jXXu9mCUJHrCaS8Zc/BEUsoJsggEXdKuaZVZZBA== X-Received: by 2002:a2e:8ed4:0:b0:2ea:7f57:5a74 with SMTP id 38308e7fff4ca-2eac7a6c3ccmr18672681fa.42.1717610716971; Wed, 05 Jun 2024 11:05:16 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240528-pwrseq-v8-15-d354d52b763c@linaro.org> <20240605175757.GA733809@bhelgaas> In-Reply-To: <20240605175757.GA733809@bhelgaas> From: Bartosz Golaszewski Date: Wed, 5 Jun 2024 20:05:06 +0200 Message-ID: Subject: Re: [PATCH v8 15/17] PCI/pwrctl: add PCI power control core code To: Bjorn Helgaas 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 5, 2024 at 7:58=E2=80=AFPM Bjorn Helgaas w= rote: > > 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 devic= e > > 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. Bart > > 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.