mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
arm: ls102xa: Fix RGMII phy-connection-type FDT fixup
In ft_fixup_enet_phy_connect_type(), use strlen() instead of sizeof() on the pointer result of phy_string_for_interface(). sizeof() was returning the size of the pointer (4 bytes), resulting in the phy-connection-type being set to "rgmi" rather than "rgmii-id". Signed-off-by: Brendan Shanks <brendan.shanks@teradek.com> Cc: York Sun <york.sun@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
3fa48f0a1a
commit
e784cf1bf2
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ void ft_fixup_enet_phy_connect_type(void *fdt)
|
|||
do_fixup_by_path(fdt, enet_path, "phy-connection-type",
|
||||
phy_string_for_interface(
|
||||
PHY_INTERFACE_MODE_RGMII_ID),
|
||||
sizeof(phy_string_for_interface(
|
||||
PHY_INTERFACE_MODE_RGMII_ID)),
|
||||
strlen(phy_string_for_interface(
|
||||
PHY_INTERFACE_MODE_RGMII_ID)) + 1,
|
||||
1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue