Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03f2eecd authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by David S. Miller
Browse files

stmmac: re-add IFF_UNICAST_FLT for dwmac1000



In commit (bfab27a1 stmmac: add the experimental PCI support) the
IFF_UNICAST_FLT flag has been removed from the stmmac_mac_device_setup()
function. This patch re-adds the flag.

Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Acked-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca7b91bb
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1737,10 +1737,12 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
	struct mac_device_info *mac;
	struct mac_device_info *mac;


	/* Identify the MAC HW device */
	/* Identify the MAC HW device */
	if (priv->plat->has_gmac)
	if (priv->plat->has_gmac) {
		priv->dev->priv_flags |= IFF_UNICAST_FLT;
		mac = dwmac1000_setup(priv->ioaddr);
		mac = dwmac1000_setup(priv->ioaddr);
	else
	} else {
		mac = dwmac100_setup(priv->ioaddr);
		mac = dwmac100_setup(priv->ioaddr);
	}
	if (!mac)
	if (!mac)
		return -ENOMEM;
		return -ENOMEM;