u-boot/drivers/net
Stefan Roese 5ccd657b6d net: macb: Fix rx buffer cache handling
With commit c6d07bf440 ("net/macb: increase RX buffer size for GEM")
ethernet support does not work any more with d-cache enabled on the
AT91SAM. The reason is, that MACB_RX_BUFFER_SIZE was changed from 4096
to 128 but this change was not refected in the rx_buffer flush and
invalidate functions, as these also use this macro.

This patch now fixes this by calculating the rx buffer size correctly
again in those functions. With this change, ethernet works again
reliably on my AT91SAM board.

Signed-off-by: Stefan Roese <sr@denx.de>
Fixes: c6d07bf440 ("net/macb: increase RX buffer size for GEM")
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Cc: Anup Patel <anup.patel@wdc.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2019-09-04 11:37:19 -05:00
..
fm env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
fsl-mc drivers/fsl-mc: Create Kconfig file to manage driver specific configs better 2019-09-04 11:37:19 -05:00
ldpaa_eth drivers: net: ldpaa_eth: fix resource leak 2019-05-08 17:26:59 -05:00
mscc_eswitch net: mscc: refactor mscc_miim 2019-07-15 13:32:25 -05:00
pfe_eth drivers: net: pfe_eth: undefined return value 2019-09-04 11:37:19 -05:00
phy env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
ti env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
8390.h
ag7xxx.c ag7xxx: add initial support for s17 2019-04-12 17:32:51 +02:00
altera_tse.c fdt: Rename a few functions in fdt_support 2017-06-01 07:03:11 -06:00
altera_tse.h net: altera_tse: add mSG-DMA support 2015-11-12 08:26:59 +08:00
armada100_fec.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
armada100_fec.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
at91_emac.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ax88180.c Remove some merge markers 2016-10-23 18:33:18 -04:00
ax88180.h AX88180: use standard I/O accessors 2010-07-12 00:14:29 -07:00
ax88796.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ax88796.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm-sf2-eth-gmac.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm-sf2-eth-gmac.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm-sf2-eth.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm-sf2-eth.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm6348-eth.c net: add support for bcm6348-enet 2018-12-19 15:23:00 +01:00
bcm6368-eth.c net: bcm6368: fix restart flow issues 2019-01-16 13:56:43 +01:00
calxedaxgmac.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cs8900.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cs8900.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dc2114x.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
designware.c net: designware: drop compatible altr, socfpga-stmmac 2019-09-04 11:37:19 -05:00
designware.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dm9000x.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dm9000x.h dm9000 remove dead external phy support, gpio fix 2008-08-26 23:08:19 -07:00
dnet.c net: cosmetic: Fix var naming net <-> eth drivers 2015-04-18 11:11:33 -06:00
dnet.h dnet: driver for Dave DNET ethernet controller 2009-02-10 00:16:27 +01:00
dwc_eth_qos.c net: dwc_et_qos: update weak function board_interface_eth_init 2019-09-04 11:37:19 -05:00
dwmac_socfpga.c net: designware: socfpga: adapt to Gen5 2019-02-18 13:00:53 +01:00
e1000.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
e1000.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
e1000_spi.c spi: Remove unused spi_init 2018-11-27 21:06:53 +05:30
eepro100.c net.h: Include linux/if_ether.h to avoid duplication 2018-10-10 12:28:52 -05:00
ep93xx_eth.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ep93xx_eth.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ethoc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fec_mxc.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
fec_mxc.h net: dm: fec: Support phy-reset-post-delay property 2019-04-08 15:23:28 +02:00
fsl_enetc.c drivers: net: fsl_enetc: add support for SGMII 2500 2019-07-25 13:13:30 -05:00
fsl_enetc.h drivers: net: fsl_enetc: add support for SGMII 2500 2019-07-25 13:13:30 -05:00
fsl_enetc_mdio.c drivers: net: fsl_enet_mdio: fix missing terminator in PCI ID array 2019-09-04 11:37:19 -05:00
fsl_mcdmafec.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
fsl_mdio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ftgmac100.c net: ftgmac100: Add support for the Aspeed SoC 2018-11-05 10:41:58 -06:00
ftgmac100.h net: ftgmac100: use the aligned() macro 2018-11-05 10:41:56 -06:00
ftmac100.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
ftmac100.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ftmac110.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ftmac110.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gmac_rockchip.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
higmacv300.c net: add higmacv300 Ethernet driver for HiSilicon platform 2019-04-23 17:57:24 -04:00
Kconfig drivers: net: add marvell MDIO driver 2019-09-04 11:37:19 -05:00
ks8851_mll.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ks8851_mll.h net: ks8851_mll: add ethernet support 2013-06-24 19:11:14 -05:00
lan91c96.c env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
lan91c96.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lpc32xx_eth.c net: lpc32xx: Use IRAM for transmit buffer 2019-04-26 18:58:20 -04:00
macb.c net: macb: Fix rx buffer cache handling 2019-09-04 11:37:19 -05:00
macb.h net: macb: add support for faster clk rates 2019-07-25 13:13:30 -05:00
Makefile drivers: net: add marvell MDIO driver 2019-09-04 11:37:19 -05:00
mcffec.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
mcfmii.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mdio_mux_i2creg.c drivers: net: driver for MDIO muxes controlled over I2C 2019-09-04 11:37:19 -05:00
mdio_mux_sandbox.c test: dm: add a test for MDIO MUX DM uclass 2019-07-18 16:37:13 -05:00
mdio_sandbox.c test: dm_mdio: avoid out of bounds access 2019-09-04 11:37:19 -05:00
mpc8xx_fec.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mt7628-eth.c net: Add MT7628 ethernet driver 2018-11-05 10:41:56 -06:00
mtk_eth.c eth: mtk-eth: fix incorrect read of phy-handle 2019-05-14 14:43:33 -05:00
mtk_eth.h ethernet: MediaTek: add ethernet driver for MediaTek ARM-based SoCs 2019-01-14 17:43:18 -05:00
mvgbe.c net: mvgbe: fallback phy-mode to GMII 2019-01-24 11:35:29 -06:00
mvgbe.h net: mvgbe: convert to DM 2018-07-26 14:08:21 -05:00
mvmdio.c drivers: net: add marvell MDIO driver 2019-09-04 11:37:19 -05:00
mvneta.c net: mvneta: Add GPIO configuration support 2019-01-24 11:35:29 -06:00
mvpp2.c net: mvpp2: support setting hardware addresses from ethernet core 2019-09-04 11:37:19 -05:00
natsemi.c net.h: Include linux/if_ether.h to avoid duplication 2018-10-10 12:28:52 -05:00
ne2000.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
ne2000.h NE2000: Fix regresssion introduced by e710185aae on non AX88796 2008-04-28 22:26:36 -07:00
ne2000_base.c Drop PCMCIA 2019-08-11 19:27:41 -04:00
ne2000_base.h Consolidate bool type 2013-04-01 16:33:52 -04:00
netconsole.c env: Move get_env_id() to env.h 2019-08-11 16:43:41 -04:00
ns8382x.c net.h: Include linux/if_ether.h to avoid duplication 2018-10-10 12:28:52 -05:00
pch_gbe.c net: pch_gbe: Make probe/remove static 2018-10-09 14:18:21 -05:00
pch_gbe.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pcnet.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pic32_eth.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pic32_eth.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pic32_mdio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ravb.c net: ravb: Avoid unsupported internal delay mode for R-Car E3/D3 2019-05-04 19:26:49 +02:00
rtl8139.c net: remove CONFIG_MCAST_TFTP 2019-01-24 11:35:30 -06:00
rtl8169.c CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
sandbox-raw-bus.c sandbox: net: Correct name copy in eth_raw_bus_post_bind() 2018-12-05 06:01:34 -07:00
sandbox-raw.c env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
sandbox.c regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset 2019-04-23 11:17:15 +02:00
sh_eth.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
sh_eth.h net: sh_eth: Fix 64bit build warnings 2019-08-09 23:15:01 +02:00
smc911x.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
smc911x.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
smc91111.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
smc91111.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sni_ave.c net: add Socionext AVE ethernet driver support 2018-06-13 13:54:17 -05:00
sun8i_emac.c net: sun8i_emac: Test the correct phy 2019-07-25 13:36:13 -05:00
sunxi_emac.c net: sunxi_emac: Add CLK support 2019-04-16 16:29:00 +05:30
tsec.c net: tsec: Change compatible strings to match Linux 2019-07-25 13:13:31 -05:00
uli526x.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
vsc7385.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
vsc9953.c drivers/net/vsc9953: Initialize action RAM in VCAP complex 2018-06-13 13:54:16 -05:00
xilinx_axi_emac.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
xilinx_emaclite.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynq_gem.c net: gem: Remove phy autodetection code 2019-04-16 11:52:02 +02:00