> From: U-Boot <u-boot-boun...@lists.denx.de> On Behalf Of Sergei Antonov > Sent: Saturday, February 04, 2023 3:09 AM > To: u-boot@lists.denx.de; rfried....@gmail.com; joe.hershber...@ni.com > Cc: Sergei Antonov <sap...@gmail.com> > Subject: [PATCH v3 3/3] net: ftmac100: add mii read and write callbacks > > Register mii_bus with read and write callbacks to allow the 'mii' > command to work. Use a timeout of 10 ms to wait for the R/W operations to > complete. > > Signed-off-by: Sergei Antonov <sap...@gmail.com> > ---
Reviewed-by: Rick Chen <r...@andestech.com> Tested-by: Rick Chen <r...@andestech.com> I have verified this patch on AE350 platform and it work well with dhcp command as below: U-Boot 2023.04-rc1-00032-gf9f161b600-dirty (Feb 09 2023 - 10:55:03 +0800) DRAM: 1 GiB Core: 16 devices, 12 uclasses, devicetree: board Flash: 64 MiB MMC: Loading Environment from SPIFlash... SF: Detected mx25u1635e with page size 256 Bytes, erase size 4 KiB, total 2 MiB OK In: serial@f0300000 Out: serial@f0300000 Err: serial@f0300000 Net: no alias for ethernet0 eth0: mac@e0100000 Hit any key to stop autoboot: 0 RISC-V # RISC-V # dhcp 0x06000000 10.0.12.60:Image-518 BOOTP broadcast 1 BOOTP broadcast 2 DHCP client bound to address 10.0.12.91 (280 ms) Using mac@e0100000 device TFTP from server 10.0.12.60; our IP address is 10.0.12.91 Filename 'Image-518'. Load address: 0x6000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################### 300.8 KiB/s done Bytes transferred = 14098060 (d71e8c hex) RISC-V # mii device MII devices: 'eth0' Current device: 'eth0' RISC-V # mii info PHY 0x00: OUI = 0x606E, Model = 0x0B, Rev = 0x01, 100baseT, FDX RISC-V #