diff options
author | Suji Velupillai <suji.velupillai@broadcom.com> | 2017-03-03 17:06:34 -0800 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2017-03-26 09:58:15 -0500 |
commit | 5c624b9e9ccfbc8640e815202da3511aca4e449e (patch) | |
tree | 218a1350607c5fb0150d465f749bd9d35b71053e /drivers/net/bcm-sf2-eth.h | |
parent | ec7aa8fd677f52a6175265aeb7b7f0345d9850c2 (diff) | |
download | u-boot-5c624b9e9ccfbc8640e815202da3511aca4e449e.tar.gz |
net: fix cache misaligned issue in Broadcom SF2 driver
Fixed cache misaligned issue in the net driver. The issue shows-up when
a call to flush_dcache_range is made with unaligned memory. The memory
must be aligned to ARCH_DMA_MINALIGN.
Signed-off-by: Suji Velupillai <suji.velupillai@broadcom.com>
Tested-by: Suji Velupillai <suji.velupillai@broadcom.com>
Reviewed-by: Arun Parameswaran <arun.parameswaran@broadcom.com>
Reviewed-by: JD Zheng <jiandong.zheng@broadcom.com>
Reviewed-by: Shamez Kurji <shamez.kurji@broadcom.com>
Signed-off-by: Steve Rae <steve.rae@raedomain.com>
Cover Letter:
This series resolves issues specific to the Broadcom SF2 driver:
- fix cache misaligned issue
- convert to Kconfig
END
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/bcm-sf2-eth.h')
-rw-r--r-- | drivers/net/bcm-sf2-eth.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/bcm-sf2-eth.h b/drivers/net/bcm-sf2-eth.h index 6104affc51..c4e2e01003 100644 --- a/drivers/net/bcm-sf2-eth.h +++ b/drivers/net/bcm-sf2-eth.h @@ -1,5 +1,5 @@ /* - * Copyright 2014 Broadcom Corporation. + * Copyright 2014-2017 Broadcom. * * SPDX-License-Identifier: GPL-2.0+ */ @@ -30,8 +30,6 @@ enum { struct eth_dma { void *tx_desc_aligned; void *rx_desc_aligned; - void *tx_desc; - void *rx_desc; uint8_t *tx_buf; uint8_t *rx_buf; |