From: Greg KH <gregkh@linuxfoundation.org>
To: Orgad Shaneh <orgads@gmail.com>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH 1/3] usb: octeon-hcd: fix the FIFO-flush timeout computation
Date: Tue, 1 Sep 2026 16:48:03 +0200 [thread overview]
Message-ID: <2026090139-shout-unscrew-0197@gregkh> (raw)
In-Reply-To: <20260827175703.1549-1-orgads@gmail.com>
On Thu, Aug 27, 2026 at 08:57:00PM +0300, Orgad Shaneh wrote:
> cvmx_wait_tx_rx() computes its 100us deadline from
> (u64)octeon_get_clock_rate - the address of the function, not its
> return value; the parentheses have been missing since the
> CVMX_WAIT_FOR_FIELD32 macro became a function. The cast makes it
> compile silently, and the resulting deadline is effectively infinite.
>
> On a healthy controller the flush bit clears on the first read and
> nothing is noticed. On a controller whose PHY did not come up (for
> example when the reference-clock configuration is wrong for the board),
> txfflsh/rxfflsh never clear and probe spins forever in __delay() -
> observed as a hard hang with a soft-lockup splat on a CN5020 board,
> where the board watchdog then resets the system with no console output.
>
> Call the function, restoring the 100us timeout the code always
> intended.
Should this series have an Assisted-by: tag?
How did you find and test it?
thanks,
greg k-h
next prev parent reply other threads:[~2026-09-01 14:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 17:57 Orgad Shaneh
2026-08-27 17:57 ` [PATCH 2/3] usb: octeon-hcd: fail the probe when the USB core does not respond Orgad Shaneh
2026-08-27 17:57 ` [PATCH 3/3] usb: octeon-hcd: sleep on an hrtimer for far-off periodic transfers Orgad Shaneh
2026-09-01 14:48 ` Greg KH [this message]
2026-09-01 19:19 ` [PATCH 1/3] usb: octeon-hcd: fix the FIFO-flush timeout computation Orgad Shaneh
2026-09-01 19:30 ` [PATCH v2 " Orgad Shaneh
2026-09-01 19:30 ` [PATCH v2 2/3] usb: octeon-hcd: fail the probe when the USB core does not respond Orgad Shaneh
2026-09-01 19:30 ` [PATCH v2 3/3] usb: octeon-hcd: sleep on an hrtimer for far-off periodic transfers Orgad Shaneh
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=2026090139-shout-unscrew-0197@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=orgads@gmail.com \
--cc=stable@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®