Skip to content
Commit 123ca114 authored by Marek Behún's avatar Marek Behún Committed by Ramon Fried
Browse files

net: introduce helpers to get PHY interface mode from a device/ofnode



Add helpers ofnode_read_phy_mode() and dev_read_phy_mode() to parse the
"phy-mode" / "phy-connection-type" property. Add corresponding UT test.

Use them treewide.

This allows us to inline the phy_get_interface_by_name() into
ofnode_read_phy_mode(), since the former is not used anymore.

Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
Tested-by: default avatarPatrice Chotard <patrice.chotard@foss.st.com>
parent 9c06b481
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment