]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: dwc3: gadget: Simplify TRB reclaim logic by removing redundant 'chain' argument
authorJohannes Schneider <johannes.schneider@leica-geosystems.com>
Sun, 29 Jun 2025 09:04:14 +0000 (11:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2025 09:05:10 +0000 (11:05 +0200)
commit6693750a6f8e5237233b96f6363a5afcbf498ad7
treeec59c28fd7d862b7c02180e289ad5d59f174d7bd
parent2b7eec2ec3015f52fc74cf45d0408925e984ecd1
usb: dwc3: gadget: Simplify TRB reclaim logic by removing redundant 'chain' argument

Now that the TRB reclaim logic always inspects the TRB's CHN (Chain) bit
directly to determine whether a TRB is part of a chain, the explicit
'chain' parameter passed into dwc3_gadget_ep_reclaim_completed_trb()
is no longer necessary.

This cleanup simplifies the reclaim code by avoiding duplication of
chain state tracking, and makes the reclaim logic rely entirely on the
hardware descriptor flags — which are already present and accurate at
this stage.

No functional changes intended.

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Link: https://lore.kernel.org/r/20250629090414.294308-2-johannes.schneider@leica-geosystems.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c