From 8f8359455d570bcd41a00c04a11cab4d4d61760b Mon Sep 17 00:00:00 2001 From: Marian-Cristian Rotariu Date: Tue, 10 Mar 2015 14:47:59 +0200 Subject: dpaa_eth: fix the address settings of a FD There is no need to set high and low addresses separately. Signed-off-by: Marian-Cristian Rotariu Change-Id: I584d11704d7d0f790ccbab7b35c7ec2ba7b1402a Reviewed-on: http://git.am.freescale.net:8181/32484 Reviewed-by: Madalin-Cristian Bucur diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c index 41d068f3..2e541a8 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c @@ -724,8 +724,8 @@ static int __hot skb_to_contig_fd(struct dpa_priv_s *priv, netdev_err(net_dev, "dma_map_single() failed\n"); return -EINVAL; } - fd->addr_hi = (uint8_t)upper_32_bits(addr); - fd->addr_lo = lower_32_bits(addr); + fd->addr = addr; + return 0; } -- cgit v0.10.2