android_kernel_xiaomi_sm8350/drivers/net/sfc
Ben Hutchings 5a27e86bab sfc: Use fixed-size buffers for MCDI NVRAM requests
The low-level MCDI code always uses 32-bit MMIO operations, and
callers must pad input and output buffers to multiples of 4 bytes.
The MCDI NVRAM functions are not doing this.  Also, their buffers are
declared as variable-length arrays with no explicit maximum length.

Switch to a fixed buffer size based on the chunk size used by the
MTD driver (which is a multiple of 4).

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-01-25 15:49:59 -08:00
..
bitfield.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
efx.c sfc: Move PHY software state initialisation from init() into probe() 2009-12-23 19:09:04 -08:00
efx.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
enum.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
ethtool.c sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
falcon_boards.c sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
falcon_gmac.c sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
falcon_xmac.c sfc: Include XGXS in XMAC link status check except in XGMII loopback 2009-12-23 19:09:05 -08:00
falcon.c sfc: Move PHY software state initialisation from init() into probe() 2009-12-23 19:09:04 -08:00
io.h
Kconfig
mac.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
Makefile
mcdi_mac.c
mcdi_pcol.h sfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer 2010-01-25 15:49:19 -08:00
mcdi_phy.c sfc: Move PHY software state initialisation from init() into probe() 2009-12-23 19:09:04 -08:00
mcdi.c sfc: Use fixed-size buffers for MCDI NVRAM requests 2010-01-25 15:49:59 -08:00
mcdi.h sfc: Use fixed-size buffers for MCDI NVRAM requests 2010-01-25 15:49:59 -08:00
mdio_10g.c sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
mdio_10g.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
mtd.c sfc: Use fixed-size buffers for MCDI NVRAM requests 2010-01-25 15:49:59 -08:00
net_driver.h sfc: Move PHY software state initialisation from init() into probe() 2009-12-23 19:09:04 -08:00
nic.c sfc: Disable TX descriptor prefetch watchdog 2009-12-23 19:09:08 -08:00
nic.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
phy.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
qt202x_phy.c sfc: QT202x: Remove unreliable MMD check at initialisation 2010-01-19 01:59:17 -08:00
regs.h
rx.c sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
selftest.c sfc: Fix conditions for MDIO self-test 2010-01-13 17:12:47 -08:00
selftest.h
siena.c sfc: Move PHY software state initialisation from init() into probe() 2009-12-23 19:09:04 -08:00
spi.h
tenxpress.c sfc: Move PHY software state initialisation from init() into probe() 2009-12-23 19:09:04 -08:00
tx.c sfc: Fix DMA mapping cleanup in case of an error in TSO 2009-12-23 19:09:05 -08:00
workarounds.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00