diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-09-30 15:12:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-02 16:10:29 -0400 |
commit | 0cf2f380073867e5d0cfb526fdf9bee0e7f8a9c6 (patch) | |
tree | 5576b9f7fe99866eecfeba289b547c34d242ad8f /tools | |
parent | 8a8c3f5bebe2455200cd488aea8546d01645b06b (diff) | |
download | lwn-0cf2f380073867e5d0cfb526fdf9bee0e7f8a9c6.tar.gz lwn-0cf2f380073867e5d0cfb526fdf9bee0e7f8a9c6.zip |
net: calxedaxgmac: determine number of address filters at runtime
Highbank and Midway xgmac h/w have different number of MAC address filter
registers with 7 and 31, respectively. Highbank has been wrong, so fix it
and detect the number of filter registers at run-time. Unfortunately,
the version register is the same on both SOCs, so simply test if write to
the last filter register will take a value. It always reads as 0 if not.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions