From: Rob Herring Date: Mon, 30 Sep 2013 20:12:17 +0000 (-0500) Subject: net: calxedaxgmac: determine number of address filters at runtime X-Git-Tag: v3.12-rc7~20^2~81^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cf2f380073867e5d0cfb526fdf9bee0e7f8a9c6;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed