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>
This commit is contained in:
Yoshihiro Shimoda
2011-03-07 21:59:45 +00:00
کامیت شده توسط David S. Miller
والد c5ed53687b
کامیت e47c905234
3فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده

مشاهده پرونده

@@ -781,6 +781,7 @@ struct sh_eth_private {
struct mii_bus *mii_bus; /* MDIO bus control */
struct phy_device *phydev; /* PHY device control */
enum phy_state link;
phy_interface_t phy_interface;
int msg_enable;
int speed;
int duplex;