From: sashiko-bot@kernel.org
To: "Yige Jiang" <yigejiang86@gmail.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH] PCI: mt7621: Release port reset controls on probe failure
Date: Thu, 03 Dec 2026 10:51:51 +0000 [thread overview]
Message-ID: <sashiko-outbox-247615@kernel.org> (raw)
In-Reply-To: <rc-b1-20261110-vc-184-61b6257957f3@gmail.com>
> mt7621_pcie_parse_port() takes an exclusive reset control for each
> root port and adds the port to pcie->ports. If a later port then fails
> to parse, for instance because its PHY or reset GPIO returns
> -EPROBE_DEFER, mt7621_pcie_probe() returns without putting the reset
> controls of the ports already on the list. A failure of
> mt7621_pcie_register_host() returns without putting them as well.
>
> On the next probe attempt, of_reset_control_get_exclusive() for an
> earlier port finds its reset control still acquired, warns and returns
> -EBUSY. mt7621_pcie_parse_port() only treats -EPROBE_DEFER as fatal, so
> probe continues with an error pointer as that port's reset control, and
> the later assert and deassert calls warn and fail.
>
> Jump to remove_resets in both cases, as the mt7621_pcie_enable_ports()
> failure path already does.
>
> Fixes: 2bdd5238e756 ("PCI: mt7621: Add MediaTek MT7621 PCIe host controller driver")
> Cc: stable@vger.kernel.org
> Signed-off-by: Yige Jiang <yigejiang86@gmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/rc-b1-20261110-vc-184-61b6257957f3@gmail.com?part=1
prev parent reply other threads:[~2026-12-03 10:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 10:42 [PATCH] PCI: mt7621: Release port reset controls on probe failure Yige Jiang
2026-12-03 10:51 ` sashiko-bot [this message]
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=sashiko-outbox-247615@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=yigejiang86@gmail.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