drivers/net/phy/: default return value in ioctl phy.c
Subsystems (3)
PATCH 1/1 drivers/net/phy/: default return value in ioctl phy.c
Hello Andy,
This patch (to 2.6.23.9) add a default return value EOPNOTSUPP to the ioctl function. The problem with the always 0 return value is that the iwconfig (wireless) tool found a valid device when an ethernet device uses the phy abstraction layer. I 've tetsted this with the macb driver.
Signed-off-by Rini van Zetten <[email protected]>
drivers/net/phy/phy.c +2 -0
@@ -405,6 +405,8 @@ int phy_mii_ioctl(struct phy_device *phydev, && phydev->drv->config_init) phydev->drv->config_init (phydev);break ; +default : +return -EOPNOTSUPP ; }return 0 ;
Quoted 7 lines · Rini van Zetten
Hello Andy,
This patch (to 2.6.23.9) add a default return value EOPNOTSUPP to the ioctl function. The problem with the always 0 return value is that the iwconfig (wireless) tool found a valid device when an ethernet device uses the phy abstraction layer. I 've tetsted this with the macb driver.
Signed-off-by Rini van Zetten <[email protected]>
Acked-by Andy Fleming <[email protected]>