]> git.proxmox.com Git - mirror_qemu.git/commit
hw/net/cadence_gem: perform PHY access on write only
authorLuc Michel <luc.michel@amd.com>
Tue, 17 Oct 2023 19:44:21 +0000 (21:44 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Oct 2023 14:27:06 +0000 (15:27 +0100)
commit71a082a3fa9845360224c66029eea8d972b8b8bd
tree001ffb0820a83eb3100c0d402ad9b2596782b80e
parent1b09eeb122aaf1666a9c5aa789eb219443772685
hw/net/cadence_gem: perform PHY access on write only

The MDIO access is done only on a write to the PHYMNTNC register. A
subsequent read is used to retrieve the result but does not trigger an
MDIO access by itself.

Refactor the PHY access logic to perform all accesses (MDIO reads and
writes) at PHYMNTNC write time.

Signed-off-by: Luc Michel <luc.michel@amd.com>
Reviewed-by: sai.pavan.boddu@amd.com
Message-id: 20231017194422.4124691-11-luc.michel@amd.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/cadence_gem.c