]> Pileus Git - ~andy/linux/commitdiff
be2net: Fix displaying supported speeds for BE2
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 6 Aug 2013 03:57:18 +0000 (09:27 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2013 17:39:06 +0000 (10:39 -0700)
The BE2 FW GET_PHY_DETAILS cmd does not return fixed speeds supported.

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c

index ce15b1084ccbbe273763b9bbd1673569eb1612f3..48e266abbb8eef955d5b777e4f14e50430cfde46 100644 (file)
@@ -2454,6 +2454,12 @@ int be_cmd_get_phy_info(struct be_adapter *adapter)
                        le16_to_cpu(resp_phy_info->fixed_speeds_supported);
                adapter->phy.misc_params =
                        le32_to_cpu(resp_phy_info->misc_params);
+
+               if (BE2_chip(adapter)) {
+                       adapter->phy.fixed_speeds_supported =
+                               BE_SUPPORTED_SPEED_10GBPS |
+                               BE_SUPPORTED_SPEED_1GBPS;
+               }
        }
        pci_free_consistent(adapter->pdev, cmd.size,
                                cmd.va, cmd.dma);