public inbox for dmaengine@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dma/dw-edma: chip regs base should add the offset
@ 2024-10-14 13:48 ChunyouTang
  2024-10-15  5:36 ` Manivannan Sadhasivam
  0 siblings, 1 reply; 4+ messages in thread
From: ChunyouTang @ 2024-10-14 13:48 UTC (permalink / raw)
  To: manivannan.sadhasivam, fancer.lancer, vkoul
  Cc: dmaengine, linux-kernel, tangchunyou

From: tangchunyou <tangchunyou@163.com>

fix the regs base with offset.

Signed-off-by: tangchunyou <tangchunyou@163.com>
---
 drivers/dma/dw-edma/dw-edma-pcie.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers/dma/dw-edma/dw-edma-pcie.c
index 1c6043751dc9..2918b64708f9 100644
--- a/drivers/dma/dw-edma/dw-edma-pcie.c
+++ b/drivers/dma/dw-edma/dw-edma-pcie.c
@@ -234,6 +234,8 @@ static int dw_edma_pcie_probe(struct pci_dev *pdev,
 	if (!chip->reg_base)
 		return -ENOMEM;
 
+	chip->reg_base += vsec_data.rg.off;
+
 	for (i = 0; i < chip->ll_wr_cnt; i++) {
 		struct dw_edma_region *ll_region = &chip->ll_region_wr[i];
 		struct dw_edma_region *dt_region = &chip->dt_region_wr[i];
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-16  4:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-14 13:48 [PATCH] dma/dw-edma: chip regs base should add the offset ChunyouTang
2024-10-15  5:36 ` Manivannan Sadhasivam
2024-10-15 10:45   ` 唐春有
2024-10-16  4:56     ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox