diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2016-08-11 13:00:59 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-08-12 09:23:47 -0400 |
commit | 1f01962e0fde9d3e57318e9f6e05c45d8ef2a783 (patch) | |
tree | 705a2495695397c838f8019a9651af4d344be202 /drivers/net/cpsw.c | |
parent | 358133239b37cf3c936cc968d7bde9c5546ad130 (diff) |
drivers: net: cpsw: always flush cache of size aligned to PKTALIGN
cpsw tries to flush dcache which is not in the range of PKTALIGN.
Because of this the following warning comes while flushing:
CACHE: Misaligned operation at range [dffecec0, dffed016]
Fix it by flushing cache of size aligned to PKTALIGN.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'drivers/net/cpsw.c')
-rw-r--r-- | drivers/net/cpsw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c index 774b021e35..511a965c9b 100644 --- a/drivers/net/cpsw.c +++ b/drivers/net/cpsw.c @@ -908,7 +908,7 @@ static int _cpsw_send(struct cpsw_priv *priv, void *packet, int length) int timeout = CPDMA_TIMEOUT; flush_dcache_range((unsigned long)packet, - (unsigned long)packet + length); + (unsigned long)packet + ALIGN(length, PKTALIGN)); /* first reap completed packets */ while (timeout-- && |