Re: [PATCHv3] dmaengine: ste_dma40: turn d40_base phy_chans into a flexible array
From: Vinod Koul
Date: Mon Jun 08 2026 - 08:16:54 EST
On Sat, 30 May 2026 19:08:43 -0700, Rosen Penev wrote:
> Convert the separately-offset phy_chans pointer to a C99 flexible array
> member at the end of struct d40_base, and switch the allocation to
> struct_size(). The log_chans and memcpy_chans slots continue to live
> in the same allocation immediately after phy_chans, indexed via
> base->log_chans. This removes the hand-rolled pointer fixup that
> recomputed phy_chans from base + ALIGN(sizeof(struct d40_base), 4).
>
> [...]
Applied, thanks!
[1/1] dmaengine: ste_dma40: turn d40_base phy_chans into a flexible array
commit: cc4fea19daeb0460fe3569e0a2d523f427b2bac1
Best regards,
--
~Vinod