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:

کامیت شده توسط
David S. Miller

والد
c5ed53687b
کامیت
e47c905234
@@ -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;
|
||||
|
مرجع در شماره جدید
Block a user