]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy: fix parsing wrong property
authorMarek Behún <marek.behun@nic.cz>
Wed, 6 Apr 2022 22:33:00 +0000 (00:33 +0200)
committerRamon Fried <ramon@neureality.ai>
Sun, 10 Apr 2022 05:44:12 +0000 (08:44 +0300)
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>
drivers/net/phy/phy.c

index 92fff5b72c0c50fbc5977d55b60be60179eeeba7..c8289d38898e9c736c4cca4a46d2cadc293fca60 100644 (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);