From: sashiko-bot@kernel.org
To: "Orgad Shaneh" <orgads@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH RESEND] usb: octeon-hcd: release the USB block when initialization fails
Date: Sun, 11 Oct 2026 07:27:49 +0000 [thread overview]
Message-ID: <sashiko-outbox-167104@kernel.org> (raw)
In-Reply-To: <20261011072238.2381564-1-orgads@gmail.com>
> cvmx_usb_initialize() gets as far as selecting the reference clock,
> enabling USBN_CLK_CTL and taking the PHY out of reset (steps 2b-2e)
> before anything can go wrong, and its only caller frees the HCD and
> returns without touching the hardware. Both of its error returns
> therefore leave the USB block clocked and out of reset on a failed
> probe.
>
> Release it on the way out with cvmx_usb_shutdown(), which is the undo
> the retry path a few lines above already uses. It cannot refuse with
> -EBUSY here: the pipe lists it checks are initialised by
> octeon_usb_probe() before cvmx_usb_initialize() is called, and no pipe
> can have been opened yet.
>
> Fixes: 22bce6d2b3fd ("usb: octeon-hcd: fail the probe when the USB core does not respond")
> Assisted-by: LLM
> Signed-off-by: Orgad Shaneh <orgads@gmail.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261011072238.2381564-1-orgads@gmail.com?part=1
prev parent reply other threads:[~2026-10-11 7:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-11 7:22 [PATCH RESEND] usb: octeon-hcd: release the USB block when initialization fails Orgad Shaneh
2026-10-11 7:27 ` 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-167104@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=orgads@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/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