Re: [PATCH] thunderbolt: Use min() for the DMA path credit cap
Mika Westerberg <[email protected]>
| Newsgroups | org.kernel.vger.linux-usb,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Mon, Aug 10, 2026 at 09:38:43AM +0000, Fan Ye via B4 Relay wrote: > From: Fan Ye <[email protected]> > > tb_dma_reserve_credits() caps the request against what the adapter has > left by decrementing one credit at a time. The other arm of the same > if() already caps with min(port->total_credits, credits); use min() > here too. > > No functional change: the object code is unchanged. > > Assisted-by: Claude:claude-opus-5 > Signed-off-by: Fan Ye <[email protected]> Applied to thunderbolt.git/next, thanks!