From: Florian Fainelli Date: Fri, 19 Sep 2014 20:07:55 +0000 (-0700) Subject: net: dsa: bcm_sf2: communicate integrated PHY revision to PHY driver X-Git-Tag: fixes-against-v3.18-rc2~81^2~34^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa9aef77c76113725d9dbf124c4dab414326b0a3;p=pandora-kernel.git net: dsa: bcm_sf2: communicate integrated PHY revision to PHY driver The integrated BCM7xxx PHY contains no useful revision information in its MII_PHYSID2 bits 3:0, that information is instead contained in the SWITCH_REG_PHY_REVISION register. Read this register, store its value, and return it by implementing the dsa_switch::get_phy_flags() callback accordingly. The register layout is already matching what the BCM7xxx PHY driver is expecting to find. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed