[PATCH v2 3/3] phy: Refactor generic_{setup, shutdown}_phy() to reduce complexity