Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Niklas Neronin" <niklas.neronin@linux.intel.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH 5/7] usb: xhci: clear EP_GETTING_NO_STREAMS when freeing streams fails
Date: Tue, 01 Dec 2026 19:52:28 +0000	[thread overview]
Message-ID: <sashiko-outbox-244128@kernel.org> (raw)
In-Reply-To: <20261201194134.265480-6-niklas.neronin@linux.intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] usb: xhci: missing Fixes trailer for xhci_free_streams() error
  cleanup
--

commit c360eaefc8b0f4f038713f3a4fb3c4d97cf53b19
Author: Niklas Neronin <niklas.neronin@linux.intel.com>

> usb: xhci: clear EP_GETTING_NO_STREAMS when freeing streams fails
>
> xhci_free_streams() sets EP_GETTING_NO_STREAMS on each endpoint before
> issuing the Configure Endpoint command that removes the streams. The
> flag is only cleared on success. If the command fails, either because
> it can't be queued or because the xHC rejects it, the function returns
> with the flag still set.
>
> xhci_urb_enqueue() rejects URBs for endpoints that have
> EP_GETTING_NO_STREAMS set, so after a failed free_streams call the
> endpoint can't be used until the device is reconfigured or reset.
>
> Clear EP_GETTING_NO_STREAMS on the error path. The streams rings and
> EP_HAS_STREAMS are left untouched, so the endpoint stays in its
> previous streams state and the caller can retry.
>
> Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>

[Severity: Low]
This fixes an error-handling omission from the original xhci_free_streams()
implementation. Should this include:

  Fixes: 8df75f42f8e6 ("USB: xhci: Add memory allocation for USB3 bulk streams.")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201194134.265480-1-niklas.neronin@linux.intel.com?part=5

  reply	other threads:[~2026-12-01 19:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 19:41 [PATCH 0/7] usb: xhci: command queueing cleanups Niklas Neronin
2026-12-01 19:41 ` [PATCH 1/7] usb: xhci: simplify xhci_get_input_control_ctx() Niklas Neronin
2026-12-01 19:47   ` sashiko-bot
2026-12-01 19:41 ` [PATCH 2/7] usb: xhci: add xhci_queue_set_deq() helper Niklas Neronin
2026-12-01 19:41 ` [PATCH 3/7] usb: xhci: simplify prepare_ring() Niklas Neronin
2026-12-01 19:41 ` [PATCH 4/7] usb: xhci: split Configure Endpoint and Evaluate Context handling Niklas Neronin
2026-12-01 19:41 ` [PATCH 5/7] usb: xhci: clear EP_GETTING_NO_STREAMS when freeing streams fails Niklas Neronin
2026-12-01 19:52   ` sashiko-bot [this message]
2026-12-01 19:41 ` [PATCH 6/7] usb: xhci: remove pre-allocated free streams command Niklas Neronin
2026-12-01 19:41 ` [PATCH 7/7] usb: xhci: remove command ring TRB reservation Niklas Neronin
2026-12-01 19:52 ` [PATCH 0/7] usb: xhci: command queueing cleanups 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=sashiko-outbox-244128@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=niklas.neronin@linux.intel.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