]> git.baikalelectronics.ru Git - kernel.git/commit
phylib: phy_mii_ioctl() fixes
authorLennert Buytenhek <buytenh@wantstofly.org>
Thu, 18 Sep 2008 03:06:52 +0000 (03:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Oct 2008 22:24:56 +0000 (15:24 -0700)
commitb55e8430e4d3093dc2d9cfcd80c8141c58e373f0
tree73b390800c656c2304c911ce8c5b45330053706a
parent4d3e4ac9e10c0e465c950c23c111f1855ce46e96
phylib: phy_mii_ioctl() fixes

Make the SIOCGMIIPHY case fall through properly (it is supposed
to not only return the ID of the default PHY but also to read from
that PHY), and make phy_mii_ioctl() return the same error code as
generic_mii_ioctl() in case of an unsupported operation.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c