net: phy: fix parsing wrong property

The "phy-interface-type" property should be "phy-connection-type".

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
This commit is contained in:
Marek Behún
2022-04-07 00:33:00 +02:00
committed by Ramon Fried
parent 1776a24bbb
commit 9c06b4815c

View File

@@ -989,7 +989,7 @@ struct phy_device *fixed_phy_create(ofnode node)
if_str = ofnode_read_string(node, "phy-mode");
if (!if_str) {
if_str = ofnode_read_string(node, "phy-interface-type");
if_str = ofnode_read_string(node, "phy-connection-type");
}
if (if_str) {
interface = phy_get_interface_by_name(if_str);