diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c index 9eb7f65d8000..c9775f3eb1f4 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c @@ -567,6 +567,7 @@ static void sun8i_dwmac_set_filter(struct mac_device_info *hw, int macaddrs = netdev_uc_count(dev) + netdev_mc_count(dev) + 1; v = EMAC_FRM_FLT_CTL; + netdev_info(dev, "DEBUG: %d %d\n", macaddrs, hw->unicast_filter_entries); if (dev->flags & IFF_PROMISC) { v = EMAC_FRM_FLT_RXALL; @@ -575,12 +576,14 @@ static void sun8i_dwmac_set_filter(struct mac_device_info *hw, } else if (macaddrs <= hw->unicast_filter_entries) { if (!netdev_mc_empty(dev)) { netdev_for_each_mc_addr(ha, dev) { + netdev_info(dev, "DEBUG: Add mc %d %pM\n", i, ha->addr); sun8i_dwmac_set_umac_addr(hw, ha->addr, i); i++; } } if (!netdev_uc_empty(dev)) { netdev_for_each_uc_addr(ha, dev) { + netdev_info(dev, "DEBUG: Add uc %d %pM\n", i, ha->addr); sun8i_dwmac_set_umac_addr(hw, ha->addr, i); i++; }