i40e/i40evf: Refactor PHY structure and add phy_capabilities enum
[deliverable/linux.git] / drivers / net / ethernet / intel / i40e / i40e_main.c
index dc80a5fbf389f62722c081e1c1417712e3fd95f8..7158ff2035b64f4cac3a3fa79036d8be7b09fe1b 100644 (file)
@@ -10338,6 +10338,14 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
                         i40e_aq_str(&pf->hw, pf->hw.aq.asq_last_status));
        pf->hw.phy.link_info.requested_speeds = abilities.link_speed;
 
+       /* get the supported phy types from the fw */
+       err = i40e_aq_get_phy_capabilities(hw, false, true, &abilities, NULL);
+       if (err)
+               dev_dbg(&pf->pdev->dev, "get supported phy types ret =  %s last_status =  %s\n",
+                       i40e_stat_str(&pf->hw, err),
+                       i40e_aq_str(&pf->hw, pf->hw.aq.asq_last_status));
+       pf->hw.phy.phy_types = le32_to_cpu(abilities.phy_type);
+
        /* print a string summarizing features */
        i40e_print_features(pf);
 
This page took 0.025654 seconds and 5 git commands to generate.