hw/net/lan9118_phy: Reuse in imx_fec and consolidate implementations
authorBernhard Beschow <shentey@gmail.com>
Wed, 11 Dec 2024 15:30:51 +0000 (15:30 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 11 Dec 2024 15:30:51 +0000 (15:30 +0000)
commitc01194e17a01b2a17805dfa0c710aad7c05eab69
tree8a7b8e85ab89f8797b74bd41ebe759092af13364
parentc0cf6b412ecb099d49fe040d32fd5dd149f770d7
hw/net/lan9118_phy: Reuse in imx_fec and consolidate implementations

imx_fec models the same PHY as lan9118_phy. The code is almost the same with
imx_fec having more logging and tracing. Merge these improvements into
lan9118_phy and reuse in imx_fec to fix the code duplication.

Some migration state how resides in the new device model which breaks migration
compatibility for the following machines:
* imx25-pdk
* sabrelite
* mcimx7d-sabre
* mcimx6ul-evk

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20241102125724.532843-3-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/Kconfig
hw/net/imx_fec.c
hw/net/lan9118_phy.c
hw/net/trace-events
include/hw/net/imx_fec.h