]> git.baikalelectronics.ru Git - kernel.git/commit
of: of_mdio: Add a whitelist of PHY compatibilities.
authorAndrew Lunn <andrew@lunn.ch>
Thu, 28 Jan 2016 01:30:29 +0000 (02:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jan 2016 06:53:16 +0000 (22:53 -0800)
commitcd6dc17d2fb25a306ed5da5c159e7ccc07bd97b3
treee3a1824525a42cc2e907e42151985191f104c923
parentb4cfd3f574ff8d808d9ba310b4e9cf29a6db8eb6
of: of_mdio: Add a whitelist of PHY compatibilities.

Some phy nodes list a compatible value indicating the PHY make/model.
This is never used to match the device to the driver. However it does
confuse the code to separate a PHY from a generic MDIO device like a
switch. Generic MDIO devices must have a compatible value, PHYs can
list clause 22 or 45, but nothing else.

Issue a warning if we find a compatible value known on the whitelist,
and say it is a PHY.

Fixes: 893392c09966 ("mdio: Add support for mdio drivers.")
Reported-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Reported-by: Olof Johansson <olof@lixom.net>
Tested-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c