summaryrefslogtreecommitdiff
path: root/drivers/net/ldpaa_eth
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2015-07-02 11:28:57 +0530
committerYork Sun <yorksun@freescale.com>2015-07-20 11:44:36 -0700
commite247db4fadc4e00b6f61f28f4df012bcb3b083c1 (patch)
treeeb8152bb75fdf641cf293bc0bcd78db4db04d391 /drivers/net/ldpaa_eth
parentcc088c3ac63e3decca1a84c7e64cb31b863bc111 (diff)
downloadu-boot-imx-e247db4fadc4e00b6f61f28f4df012bcb3b083c1.zip
u-boot-imx-e247db4fadc4e00b6f61f28f4df012bcb3b083c1.tar.gz
u-boot-imx-e247db4fadc4e00b6f61f28f4df012bcb3b083c1.tar.bz2
driver/ldpaa_eth:Flush buffer before seeding BMAN after TX_conf
Flush buffer before releasing to BMan after TX_conf to ensure, the core does not have any cachelines that the WRIOP will DMA to. Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers/net/ldpaa_eth')
-rw-r--r--drivers/net/ldpaa_eth/ldpaa_eth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c
index d4be1ba..5636511 100644
--- a/drivers/net/ldpaa_eth/ldpaa_eth.c
+++ b/drivers/net/ldpaa_eth/ldpaa_eth.c
@@ -153,6 +153,7 @@ static void ldpaa_eth_tx_conf(struct ldpaa_eth_priv *priv,
}
}
+ flush_dcache_range(fd_addr, fd_addr + LDPAA_ETH_RX_BUFFER_SIZE);
qbman_release_desc_clear(&releasedesc);
qbman_release_desc_set_bpid(&releasedesc, dflt_dpbp->dpbp_attr.bpid);
do {