GPIO monitor MDIO

Dear Expert,

we use attached diff(gpio-mdio.diff) to enable gpio to monitor mdio, but when print phy id in mdio_bus.c->__mdiobus_register function( since gpio-mdio probe function will register here ).

after boot up, the phy on original mdio will print right phy id, however, all phys in gpio-mdio will not, all id is zero

could you help us figure out where the problem is ?

Thanks a lot and Best regards,
Bryant Wu
gpio-mdio.7z (655 Bytes)

Did you check the GPIO working well by sysfs first?

https://elinux.org/GPIO