From: Bjorn Helgaas <helgaas@kernel.org>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Philipp Stanner <pstanner@redhat.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/1] PCI: Improve printout in pdev_sort_resources()
Date: Mon, 21 Oct 2024 12:53:28 -0500 [thread overview]
Message-ID: <20241021175328.GA839797@bhelgaas> (raw)
In-Reply-To: <20241018234258.GA770341@bhelgaas>
Oops, I inadvertently removed the cc list when I sent the response
below. Adding it back here.
On Fri, Oct 18, 2024 at 06:42:59PM -0500, Bjorn Helgaas wrote:
> [+cc Jonathan]
>
> On Thu, Oct 17, 2024 at 12:55:45PM +0300, Ilpo Järvinen wrote:
> > Use pci_resource_name() helper in pdev_sort_resources() to print
> > resources in user-friendly format. Also replace the vague "bogus
> > alignment" with a more precise explanation of the problem.
> >
> > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
>
> Applied with Philipp's reviewed-by to pci/resource for v6.13, thanks!
>
> Happy to add yours, too, Jonathan, if you want. You basically said
> so, but I don't want to presume :)
>
> > ---
> >
> > v2:
> > - Place colon after %s %pR to be consistent with other printouts
> > - Replace vague "bogus alignment" with the exact cause
> >
> > drivers/pci/setup-bus.c | 5 +++--
> > 1 file changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
> > index 23082bc0ca37..0fd286f79674 100644
> > --- a/drivers/pci/setup-bus.c
> > +++ b/drivers/pci/setup-bus.c
> > @@ -134,6 +134,7 @@ static void pdev_sort_resources(struct pci_dev *dev, struct list_head *head)
> > int i;
> >
> > pci_dev_for_each_resource(dev, r, i) {
> > + const char *r_name = pci_resource_name(dev, i);
> > struct pci_dev_resource *dev_res, *tmp;
> > resource_size_t r_align;
> > struct list_head *n;
> > @@ -146,8 +147,8 @@ static void pdev_sort_resources(struct pci_dev *dev, struct list_head *head)
> >
> > r_align = pci_resource_alignment(dev, r);
> > if (!r_align) {
> > - pci_warn(dev, "BAR %d: %pR has bogus alignment\n",
> > - i, r);
> > + pci_warn(dev, "%s %pR: alignment must not be zero\n",
> > + r_name, r);
> > continue;
> > }
> >
> > --
> > 2.39.5
> >
next parent reply other threads:[~2024-10-21 17:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20241018234258.GA770341@bhelgaas>
2024-10-21 17:53 ` Bjorn Helgaas [this message]
2024-10-17 9:55 [PATCH v2 1/1] PCI: Improve printout in pdev_sort_resources() Ilpo Järvinen
2024-10-17 11:12 ` Jonathan Cameron
2024-10-17 11:35 ` Ilpo Järvinen
2024-10-17 13:29 ` Jonathan Cameron
2024-10-17 13:49 ` Philipp Stanner
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=20241021175328.GA839797@bhelgaas \
--to=helgaas@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=pstanner@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox