net/ixgbe/base: refactor internal PHY mode determination
authorBeilei Xing <beilei.xing@intel.com>
Thu, 23 Jun 2016 07:22:22 +0000 (15:22 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 27 Jun 2016 14:17:53 +0000 (16:17 +0200)
commit5e0920d93cda69143c905b12a21092acc765cc13
tree75bdb61fa988872a39e1e5f5e2246a16479c998f
parentd20977088c5b0981d1b5761c882b58d85fdb4dc4
net/ixgbe/base: refactor internal PHY mode determination

NW_MNG_IF_SEL register is a PHY link configuration register.
Add ixgbe_read_mng_if_sel_x550em to read NW_MNG_IF_SEL, validate
register values and save fields such as PHY MDIO address. This
centralises the reading and checking of the register in one place

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/ixgbe/base/ixgbe_type.h
drivers/net/ixgbe/base/ixgbe_x550.c