>From 9b600c17aa56b3949a040055cf82222c48b60bf3 Mon Sep 17 00:00:00 2001 From: Serge Semin Date: Fri, 2 Feb 2024 18:01:31 +0300 Subject: [PATCH 1/5] PCI: dwc: Fix eDMA mapping info string DW PCIe controller can be equipped with the next types of DMA controllers: 1. eDMA controller with viewport-based CSRs access (so called legacy), 2. eDMA controller with unrolled CSRs mapping, 3. HDMA controller compatible with the eDMA unrolled CSRs mapping, 4. HDMA controller with native CSRs mapping. The later three types imply having the DMA-engine CSRs _unrolled_ mapping. Let's fix the info-message printed in the DW PCIe eDMA controller detection procedure to comply with that. Signed-off-by: Serge Semin --- drivers/pci/controller/dwc/pcie-designware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c index 7551e0fea5e9..454ea32ee70b 100644 --- a/drivers/pci/controller/dwc/pcie-designware.c +++ b/drivers/pci/controller/dwc/pcie-designware.c @@ -1018,7 +1018,7 @@ int dw_pcie_edma_detect(struct dw_pcie *pci) } dev_info(pci->dev, "eDMA: unroll %s, %hu wr, %hu rd\n", - pci->edma.mf == EDMA_MF_EDMA_UNROLL ? "T" : "F", + pci->edma.mf != EDMA_MF_EDMA_LEGACY ? "T" : "F", pci->edma.ll_wr_cnt, pci->edma.ll_rd_cnt); return 0; -- 2.43.0