diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-09-19 13:07:53 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-19 16:27:07 -0400 |
commit | 487320c541430a7a45eda668a26423e06eb32ad5 (patch) | |
tree | 825b97af4b5c2aec31848cf92ab78c31a878abe3 /drivers/net/ethernet/broadcom/genet/bcmgenet.h | |
parent | 80780a54ecded1647e661ababde13554a149f7f3 (diff) |
net: bcmgenet: 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
GENET hardware block.
We already read the GENET 32-bit revision register, so store the
integrated PHY revision in the driver private structure, and then
communicate this revision value to the PHY driver by overriding the
phy_flags value.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmgenet.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/genet/bcmgenet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.h b/drivers/net/ethernet/broadcom/genet/bcmgenet.h index c862d066677..ad95fe57ebc 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.h +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.h @@ -545,6 +545,7 @@ struct bcmgenet_priv { struct phy_device *phydev; struct device_node *phy_dn; struct mii_bus *mii_bus; + u16 gphy_rev; /* PHY device variables */ int old_duplex; |