[PATCH 1/2] net: tsec: only call tsec_get_interface as fallback to DT-specified PHY mode

Bin Meng bmeng.cn at gmail.com
Sun Sep 19 09:32:06 CEST 2021


On Sat, Sep 18, 2021 at 8:47 PM Vladimir Oltean <vladimir.oltean at nxp.com> wrote:
>
> Currently the init_phy function may overwrite the priv->interface
> property, since it calls tsec_get_interface which tries to determine it
> dynamically based on default register values in ECNTRL.
>
> Let's do that only if phy-connection-type happens to not be defined in
> the device tree.
>
> Signed-off-by: Vladimir Oltean <vladimir.oltean at nxp.com>
> ---
>  drivers/net/tsec.c | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Tested-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list