* [PATCH]drivers/net/phy/: default return value in ioctl phy.c
@ 2007-12-11 15:02 Rini van Zetten
2008-01-14 18:48 ` Andy Fleming
0 siblings, 1 reply; 2+ messages in thread
From: Rini van Zetten @ 2007-12-11 15:02 UTC (permalink / raw)
To: afleming; +Cc: netdev, linux-kernel
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 <rini@arvoo.nl>
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index cb230f4..c07460d 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH]drivers/net/phy/: default return value in ioctl phy.c
2007-12-11 15:02 [PATCH]drivers/net/phy/: default return value in ioctl phy.c Rini van Zetten
@ 2008-01-14 18:48 ` Andy Fleming
0 siblings, 0 replies; 2+ messages in thread
From: Andy Fleming @ 2008-01-14 18:48 UTC (permalink / raw)
To: Rini van Zetten; +Cc: netdev, linux-kernel
On Dec 11, 2007, at 09:02, Rini van Zetten wrote:
> 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 <rini@arvoo.nl>
Acked-by: Andy Fleming <afleming@freescale.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-14 18:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-11 15:02 [PATCH]drivers/net/phy/: default return value in ioctl phy.c Rini van Zetten
2008-01-14 18:48 ` Andy Fleming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).