[PATCH 3.16 166/254] phy: Add helper function to check phy interface mode