mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
PCI: rockchip: pcie dma transfer function only enabled when "rockchip,dma_trx_enabled" set
Change-Id: I8ae69ac649c15bd4920621d6db27173a7cb36b4a Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
@@ -1617,6 +1617,9 @@ static int rockchip_pcie_probe(struct platform_device *pdev)
|
||||
}
|
||||
}
|
||||
|
||||
if (rockchip->dma_trx_enabled == 0)
|
||||
return 0;
|
||||
|
||||
rockchip->dma_obj = rk_pcie_dma_obj_probe(dev);
|
||||
if (IS_ERR(rockchip->dma_obj)) {
|
||||
dev_err(dev, "failed to prepare dma object\n");
|
||||
|
||||
Reference in New Issue
Block a user