05 Sep, 2019

1 commit


19 Jul, 2019

1 commit


16 Jul, 2019

1 commit

  • Adds UCLASS_MDIO DM class supporting MDIO buses that are probed as
    stand-alone devices. Useful in particular for systems that support
    DM_ETH and have a stand-alone MDIO hardware block shared by multiple
    Ethernet interfaces.

    Signed-off-by: Alex Marginean
    Reviewed-by: Bin Meng
    Acked-by: Joe Hershberger

    Alex Marginean
     

02 Jun, 2019

1 commit

  • Alex reported the following:

    "
    I'm doing some MDIO work on a freescale/NXP platform and I bumped into
    errors with this command:
    => mdio r emdio#3 5 3
    Reading from bus emdio#3
    "Synchronous Abort" handler, esr 0x8600000e
    elr: ffffffff862b8000 lr : 000000008200cce4 (reloc)
    ...

    mdio list does not list any PHYs currently because ethernet is using DM
    and the interfaces are not probed at this time. The PHY does exist
    on the bus though.
    The above scenario works with this commit reverted:
    e55047ec51a662c12ed53ff543ec7cdf158b2137 cmd: mdio: Switch to generic
    helpers when accessing the registers

    The current code using generic helpers only works for PHYs that have
    been registered and show up in bus->phymap and crashes for arbitrary
    IDs. I find it useful to allow reading from other addresses over MDIO
    too, certainly helpful for people debugging MDIO on various boards.
    "

    Fix this by reverting to use the raw MDIO bus operations in case there
    is no PHY probed based on DT at the specified address.

    This restores the old behavior for these PHYs, which means that the
    newly introduced MMD-over-C22 helpers won't be available for them, but
    at least they will be accessible again without crashing the system.

    Fixes: commit e55047ec51a6 ("cmd: mdio: Switch to generic helpers when accessing the registers")
    Reported-by: Alex Marginean
    Signed-off-by: Vladimir Oltean
    Reviewed-by: Alex Marginean
    Acked-by: Joe Hershberger

    Vladimir Oltean
     

08 May, 2019

1 commit


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

27 Feb, 2018

1 commit


02 Dec, 2016

1 commit

  • It is confusing that mdio commands work and report phy id as
    decimal value when mii is working with hex values.

    For example:
    ZynqMP> mdio list
    gem:
    21 - TI DP83867 ethernet@ff0e0000
    ZynqMP> mdio read ethernet@ff0e0000 0
    Reading from bus gem
    PHY at address 21:
    0 - 0x1140
    ZynqMP> mii dump 21 0
    Incorrect PHY address. Range should be 0-31
    ...
    ZynqMP> mii dump 15
    0. (1140) -- PHY control register --
    (8000:0000) 0.15 = 0 reset

    U-Boot normally takes hex values that's why this patch is changing mdio
    command to handle hex instead of changing mii command to handle decimal
    values.

    Signed-off-by: Michal Simek
    Reviewed-by: Simon Glass
    Acked-by: Joe Hershberger

    Michal Simek
     

25 Jan, 2016

1 commit

  • Now that they are in their own directory, we can remove this prefix.
    This makes it easier to find a file since the prefix does not get in the
    way.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Acked-by: Stefan Roese
    Acked-by: Przemyslaw Marczak

    Simon Glass