diff mbox series

[u-boot-net,v3,06/14] net: phy: fix parsing wrong property

Message ID 20220329200845.13435-7-kabel@kernel.org
State Superseded
Delegated to: Ramon Fried
Headers show
Series u-boot-net refactors, fixes, cleanups | expand

Commit Message

Marek Behún March 29, 2022, 8:08 p.m. UTC
From: Marek Behún <marek.behun@nic.cz>

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>
---
 drivers/net/phy/phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vladimir Oltean April 6, 2022, 1:16 p.m. UTC | #1
On Tue, Mar 29, 2022 at 10:08:37PM +0200, Marek Behún wrote:
> From: Marek Behún <marek.behun@nic.cz>
> 
> 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 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
> index c9fc20855b..fe6dbdaee4 100644
> --- a/drivers/net/phy/phy.c
> +++ b/drivers/net/phy/phy.c
> @@ -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);
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index c9fc20855b..fe6dbdaee4 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -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);