ar71xx: ag71xx: check PHY IDs before accessing the switch registers