From: Fahmy Hassan <fahmymohammed@gmail.com>
To: helgaas@kernel.org
Cc: bhelgaas@google.com, fahmymohammed@gmail.com, kees@kernel.org,
linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org
Subject: Re: [PATCH v1] PCI: cpqphp: Check pci_hp_add_bridge() return value
Date: Tue, 8 Sep 2026 20:17:53 -0600 [thread overview]
Message-ID: <20260909021753.611668-1-fahmymohammed@gmail.com> (raw)
In-Reply-To: <20260909014143.GA123333@bhelgaas>
On Tue, Sep 08, 2026 at 07:41 PM -0600, Bjorn Helgaas wrote:
> The patch doesn't seem to remove the TODO.
Sorry about that -- the patch you received was generated before I
amended the commit to actually include the TODO removal; the archived
patch file was stale on my end, not something dropped from the actual
fix. Fixed in v2.
> There are four other drivers that call pci_hp_add_bridge(), and none
> of them check the return value either. We should leave it alone or
> fix them all, so the review effort can be applied to all of them at
> once.
Makes sense. I've turned this into a v2 series that checks the return
value the same way in cpqphp, cpcihp, ibmphp, pciehp, and shpchp,
logging via each driver's existing error macro.
One more correction, from an automated review I also got on v1: my
commit message said the failure "goes completely unreported", which
overstated it -- pci_hp_add_bridge() already logs the "no bus number
available" case via pci_err(). It only stays silent for the other
failure path (subordinate bus not created after scanning). Since the
function returns a bare -1 for either case, the caller can't tell
which one happened, so the new per-driver log will occasionally
overlap with that existing message for the bus-number case
specifically. I've reworded the v2 commit messages to describe this
accurately instead.
v2 coming shortly.
Thanks,
Fahmy
next prev parent reply other threads:[~2026-09-09 2:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 1:30 [PATCH v1] PCI: cpqphp: Check pci_hp_add_bridge() return value Fahmy Hassan
2026-09-09 1:41 ` Bjorn Helgaas
2026-09-09 2:17 ` Fahmy Hassan [this message]
2026-09-09 2:22 ` [PATCH v2 0/5] PCI: hotplug: " Fahmy Hassan
2026-09-09 2:22 ` [PATCH v2 1/5] PCI: cpqphp: " Fahmy Hassan
2026-09-09 2:22 ` [PATCH v2 2/5] PCI: cpcihp: " Fahmy Hassan
2026-09-09 2:22 ` [PATCH v2 3/5] PCI: ibmphp: " Fahmy Hassan
2026-09-09 2:22 ` [PATCH v2 4/5] PCI: pciehp: " Fahmy Hassan
2026-09-09 6:42 ` Lukas Wunner
2026-09-09 2:22 ` [PATCH v2 5/5] PCI: shpchp: " Fahmy Hassan
2026-09-09 1:42 ` [PATCH v1] PCI: cpqphp: " sashiko-bot
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=20260909021753.611668-1-fahmymohammed@gmail.com \
--to=fahmymohammed@gmail.com \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.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.