[PATCH 2/5] net: fec_imx: Specify that DMA is 32-bit only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



FEC can only do a DMA transfer to 32-bit address space, so mark it as
such.

Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx>
---
 drivers/net/fec_imx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 087483801..f459516df 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -769,6 +769,8 @@ static int fec_probe(struct device_d *dev)
 	edev->set_ethaddr = fec_set_hwaddr;
 	edev->parent = dev;
 
+	dma_set_mask(dev, DMA_BIT_MASK(32));
+
 	ret = fec_clk_get(fec);
 	if (ret < 0)
 		goto err_free;
-- 
2.17.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux