diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2011-03-07 16:59:45 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-14 17:10:15 -0400 |
commit | e47c90523484518aac30498150e427d824ace705 (patch) | |
tree | 04a57da9305eca9a5202fd5f16627930b922e4a1 /drivers/net/sh_eth.h | |
parent | c5ed53687b39c195b4730de8c0355c1b78054ba6 (diff) |
net: sh_eth: modify the PHY_INTERFACE_MODE
The previous code had hardcoded the PHY_INTERFACE_MODE_MII of phy_connect.
So some Gigabit PHYs will not behave correctly.
The patch adds the phy_interface in sh_eth_plat_data, so we can select
the phy interface.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sh_eth.h')
-rw-r--r-- | drivers/net/sh_eth.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/sh_eth.h b/drivers/net/sh_eth.h index b349c5e2bcda..c3048a6ba676 100644 --- a/drivers/net/sh_eth.h +++ b/drivers/net/sh_eth.h | |||
@@ -781,6 +781,7 @@ struct sh_eth_private { | |||
781 | struct mii_bus *mii_bus; /* MDIO bus control */ | 781 | struct mii_bus *mii_bus; /* MDIO bus control */ |
782 | struct phy_device *phydev; /* PHY device control */ | 782 | struct phy_device *phydev; /* PHY device control */ |
783 | enum phy_state link; | 783 | enum phy_state link; |
784 | phy_interface_t phy_interface; | ||
784 | int msg_enable; | 785 | int msg_enable; |
785 | int speed; | 786 | int speed; |
786 | int duplex; | 787 | int duplex; |