kernel: backport bgmac patch moving MDIO code into separated file