stmmac: fix valid numbers of unicast filter entries
authorJongsung Kim <neidhard.kim@lge.com>
Thu, 13 Sep 2018 09:32:21 +0000 (18:32 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2018 22:23:48 +0000 (15:23 -0700)
commitedf2ef7242805e53ec2e0841db26e06d8bc7da70
treedf9f26c62a9f817c30c69932f9541c5c3eb27df3
parent34043d250f51368f214aed7f54c2dc29c819a8c7
stmmac: fix valid numbers of unicast filter entries

Synopsys DWC Ethernet MAC can be configured to have 1..32, 64, or
128 unicast filter entries. (Table 7-8 MAC Address Registers from
databook) Fix dwmac1000_validate_ucast_entries() to accept values
between 1 and 32 in addition.

Signed-off-by: Jongsung Kim <neidhard.kim@lge.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c