net: dsa: split dsa_switch_setup into two functions