[PATCH 04/11] PCI: dwc: Preserve glue-provided eDMA HDMA channel separation
Frank Li
Frank.li at oss.nxp.com
Mon Nov 23 08:49:12 PST 2026
On Sun, Nov 22, 2026 at 08:26:17AM +0530, Krishna Chaitanya Chundru wrote:
> [You don't often get email from krishna.chundru at oss.qualcomm.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> dw_pcie_edma_init_data() unconditionally programs the HDMA channel
> register space size (ch_space_sz) to 256 bytes. Some controllers space
> their per-channel HDMA register blocks further apart, and a glue driver
> knows the correct separation for its hardware.
>
> Only apply the 256-byte default when the glue driver has not already set
> ch_space_sz, so a glue-provided value is preserved. No functional change
> for existing drivers, which do not set it.
>
> Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru at oss.qualcomm.com>
> ---
Reviewed-by: Frank Li <Frank.Li at nxp.com>
> drivers/pci/controller/dwc/pcie-designware.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
> index 12f102f48d5d..d55d4213be33 100644
> --- a/drivers/pci/controller/dwc/pcie-designware.c
> +++ b/drivers/pci/controller/dwc/pcie-designware.c
> @@ -1041,7 +1041,10 @@ static void dw_pcie_edma_init_data(struct dw_pcie *pci)
> pci->edma.ops = &dw_pcie_edma_ops;
>
> pci->edma.flags |= DW_EDMA_CHIP_LOCAL;
> - pci->edma.ch_space_sz = 256;
> +
> + /* Default unless a glue driver programmed a different separation */
> + if (!pci->edma.ch_space_sz)
> + pci->edma.ch_space_sz = 256;
> }
>
> static int dw_pcie_edma_find_mf(struct dw_pcie *pci)
>
> --
> 2.34.1
>
More information about the linux-phy
mailing list