Commit 1e19e084 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by David S. Miller

stmmac: pci: set default of the filter bins

The commit 3b57de95 brought the support for a different amount of the
filter bins, but didn't update the PCI driver accordingly. This patch appends
the default values when the device is enumerated via PCI bus.

Fixes: 3b57de95 (net: stmmac: Support devicetree configs for mcast and ucast filter entries)
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d2911c4
...@@ -33,6 +33,7 @@ static struct stmmac_dma_cfg dma_cfg; ...@@ -33,6 +33,7 @@ static struct stmmac_dma_cfg dma_cfg;
static void stmmac_default_data(void) static void stmmac_default_data(void)
{ {
memset(&plat_dat, 0, sizeof(struct plat_stmmacenet_data)); memset(&plat_dat, 0, sizeof(struct plat_stmmacenet_data));
plat_dat.bus_id = 1; plat_dat.bus_id = 1;
plat_dat.phy_addr = 0; plat_dat.phy_addr = 0;
plat_dat.interface = PHY_INTERFACE_MODE_GMII; plat_dat.interface = PHY_INTERFACE_MODE_GMII;
...@@ -47,6 +48,12 @@ static void stmmac_default_data(void) ...@@ -47,6 +48,12 @@ static void stmmac_default_data(void)
dma_cfg.pbl = 32; dma_cfg.pbl = 32;
dma_cfg.burst_len = DMA_AXI_BLEN_256; dma_cfg.burst_len = DMA_AXI_BLEN_256;
plat_dat.dma_cfg = &dma_cfg; plat_dat.dma_cfg = &dma_cfg;
/* Set default value for multicast hash bins */
plat_dat.multicast_filter_bins = HASH_TABLE_SIZE;
/* Set default value for unicast filter entries */
plat_dat.unicast_filter_entries = 1;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment