linux: rtl836x: add a generic reset_switch function