Re: [PATCH v2] serial: 8250_mid: lock RX DMA timeout flushing

From: James Hilliard

Date: Fri Dec 04 2026 - 15:12:23 EST


On Fri, Dec 4, 2026 at 3:07 AM Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> <snip>
>
> Wait, why are you sending multiple patches for 8250 that are NOT in a
> series? What order are you expecting me to apply these in?

I posted them separately because the two series that build on them
need different fixes. These independent patches actually do not
depend on each other and can be applied in any order.

The series that depend on them however do require their listed
dependencies to be applied first.

>
> Here's how they look in my mbox:
>
> 1 N T Dec 04 James Hilliard (2.4K) [PATCH v2] serial: 8250_mid: lock RX DMA timeout flushing
> 6 N T Dec 04 James Hilliard (3.5K) [PATCH v2] serial: 8250: release the transmit PM reference on shutdown
> 8 N T Dec 04 James Hilliard (2.1K) [PATCH v3] serial: 8250: calculate TX length before preparing DMA flow control
> 10 N T Dec 04 James Hilliard (1.6K) [PATCH v2] serial: 8250: account for partial receive DMA delivery to TTY
> 12 N T Dec 04 James Hilliard (2.1K) [PATCH v2] serial: 8250: check DMA channel configuration errors
> 13 N T Dec 04 James Hilliard (7.2K) [PATCH v2] serial: 8250: prevent DMA callbacks from restarting a closing port
> 15 N T Dec 04 James Hilliard (2.7K) [PATCH v2] serial: 8250: clear RX trigger callbacks when removing a port
> 18 N T Dec 04 James Hilliard (6.5K) [PATCH v5] serial: 8250_dw: preserve BUSY-safe fractional divisor programming
>
> What's the odds that's the correct order? (hint, not likely....)

The order in your mbox works. I checked the posted patches against
tty-next, and any order gives the same result. It's the two later
series that need some of these fixes first: DMA cancellation [0] uses
six of them, and H616/A523 [1] uses the DW divisor and RX trigger
callback fixes.

[0] https://lore.kernel.org/r/20261204-submit-serial-8250-dma-cancel-v1-v14-0-b691fec8097d@xxxxxxxxx/
[1] https://lore.kernel.org/r/20261204-submit-h616-uart-fifo-v1-v10-0-1a9fb4f79635@xxxxxxxxx/

> Please send these as patch series. Think about the reciever of your
> patches please.

I didn't think the individual patches needed an ordering note, since
none of the eight conflicts with or depends on another.

In general when I'm sending patches where there are dependencies
or ordering requirements those will appear in the b4 metadata as
prerequisites and/or in a cover letter or patch notes.

I didn't put the 8 patches in a series because I didn't want to imply
that they depended on each other or imply that they needed to be
reviewed/applied together or in a specific order.

The two series that do depend on the independent patches
explicitly list their requirements.

>
> greg k-h