From: Lukas Wunner <lukas@wunner.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, linux-pci@vger.kernel.org,
linux-pm@vger.kernel.org, rafael@kernel.org,
Bjorn Helgaas <bhelgaas@google.com>,
Johannes Berg <johannes.berg@intel.com>
Subject: Re: [PATCH v2] PCI/PM: enable runtime PM later during device scanning
Date: Mon, 5 Jun 2023 22:50:17 +0200 [thread overview]
Message-ID: <20230605205017.GA23596@wunner.de> (raw)
In-Reply-To: <20230605203519.bc4232207449.Idbaa55b93f780838af44ebccb84c36f60716df04@changeid>
On Mon, Jun 05, 2023 at 08:35:45PM +0200, Johannes Berg wrote:
> v2: use pm_runtime_get_noresume()/pm_runtime_put_noidle()
> instead as advised by Rafael
You've changed the code but seemingly did not update the commit
message and code comment. Technically you're not "allowing"
runtime PM, you just stop keeping the device runtime active.
A more fitting subject might thus be:
PCI/PM: Keep devices runtime active during enumeration
> --- a/drivers/pci/pci-driver.c
> +++ b/drivers/pci/pci-driver.c
> @@ -1278,6 +1278,9 @@ static int pci_pm_runtime_suspend(struct device *dev)
> pci_power_t prev = pci_dev->current_state;
> int error;
>
> + if (WARN_ON(!pci_dev_is_added(pci_dev)))
> + return -EBUSY;
> +
If this can't happen (as the commit message says), why warn?
Thanks,
Lukas
next prev parent reply other threads:[~2023-06-05 20:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 10:16 [RFC PATCH] PCI/PM: enable runtime PM later during device scanning Johannes Berg
2023-06-05 18:35 ` [PATCH v2] " Johannes Berg
2023-06-05 20:50 ` Lukas Wunner [this message]
2023-06-06 7:22 ` Johannes Berg
2023-06-07 7:49 ` Lukas Wunner
2023-06-07 7:58 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230605205017.GA23596@wunner.de \
--to=lukas@wunner.de \
--cc=bhelgaas@google.com \
--cc=johannes.berg@intel.com \
--cc=johannes@sipsolutions.net \
--cc=linux-pci@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.