Re: [PATCH net] of: of_mdio: Ensure mdio device is a PHY

2016-01-28 Thread David Miller
From: Andrew Lunn Date: Tue, 26 Jan 2016 15:12:30 +0100 > of_phy_find_device() is used to find the phy device associated with a > device node. It is expected the node is for a PHY device, but in fact > it could of been probed as a generic MDIO device. Ensure the device is > a PHY before returning

Re: [PATCH net] of: of_mdio: Ensure mdio device is a PHY

2016-01-26 Thread Aaro Koskinen
Hi, On Tue, Jan 26, 2016 at 03:12:30PM +0100, Andrew Lunn wrote: > of_phy_find_device() is used to find the phy device associated with a > device node. It is expected the node is for a PHY device, but in fact > it could of been probed as a generic MDIO device. Ensure the device is > a PHY before r

[PATCH net] of: of_mdio: Ensure mdio device is a PHY

2016-01-26 Thread Andrew Lunn
of_phy_find_device() is used to find the phy device associated with a device node. It is expected the node is for a PHY device, but in fact it could of been probed as a generic MDIO device. Ensure the device is a PHY before returning it. Fixes: a9049e0c513c ("mdio: Add support for mdio drivers.")