hi,
Pls use the attachments enet driver, i think you need to align the ethernet driver with our release.
For your issue:
1. Plug in-out on eth0 will reset eth1 and vice versa: if you use the attachment driver, you don't meet it.
2. Write MAC0 register FEC_ECNTRL (HW_ENET_MAC_ECR) reset bit, both eth0 and eth1 will also be reset and the communication will be interrupted: =>The reason is MAC0 and MAC1 share one MDIO bus, when you
reset the MAC0, MDIO bus cannot work, trigger MAC1 MDIO read timeout, and then software to reset MAC1. The reset MAC1 is caused by software action, not hardware itself.
Anyway, use the attachment driver instead of yours, the issue can be fixed.