hw/net: cadence_gem: Fix MDIO_OP_xxx values
commit0c7ffc977195c1f71c8132eb5616827e589d4a0f
authorBin Meng <bmeng@tinylab.org>
Tue, 2 Jan 2024 14:18:03 +0000 (2 22:18 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 5 Jan 2024 19:28:54 +0000 (5 22:28 +0300)
tree4b6c25152a0e72128caf5e49c1f9c4ea30842de5
parent09a36158c283f7448d1b00fdbb6634f05d27f922
hw/net: cadence_gem: Fix MDIO_OP_xxx values

Testing upstream U-Boot with 'sifive_u' machine we see:

  => dhcp
  ethernet@10090000: PHY present at 0
  Could not get PHY for ethernet@10090000: addr 0
  phy_connect failed

This has been working till QEMU 8.1 but broken since QEMU 8.2.

Fixes: 1b09eeb122aa ("hw/net/cadence_gem: use FIELD to describe PHYMNTNC register fields")
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/net/cadence_gem.c