From: Florian Fainelli Date: Wed, 3 Dec 2014 17:56:59 +0000 (-0800) Subject: net: bcmgenet: add support for new GENET PHY revision scheme X-Git-Tag: omap-for-v3.20/drop-legacy-3517~122^2~73^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b04a2f5b9ff5460a0bfbc97c9d6dd0017ad0cbe5;p=pandora-kernel.git net: bcmgenet: add support for new GENET PHY revision scheme Starting with GPHY revision G0, the GENET register layout has changed to use the same numbering scheme as the Starfighter 2 switch. This means that GPHY major revision is in bits 15:12, minor in bits 11:8 and patch level is in bits 7:4. Introduce a small heuristic which checks for the old scheme first, tests for the new scheme and finally attempts to catch reserved values and aborts. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed