aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/efx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index 127b4da0a5e..15ae2fcf641 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -129,6 +129,10 @@ static unsigned int rss_cpus;
129module_param(rss_cpus, uint, 0444); 129module_param(rss_cpus, uint, 0444);
130MODULE_PARM_DESC(rss_cpus, "Number of CPUs to use for Receive-Side Scaling"); 130MODULE_PARM_DESC(rss_cpus, "Number of CPUs to use for Receive-Side Scaling");
131 131
132static int phy_flash_cfg;
133module_param(phy_flash_cfg, int, 0644);
134MODULE_PARM_DESC(phy_flash_cfg, "Set PHYs into reflash mode initially");
135
132/************************************************************************** 136/**************************************************************************
133 * 137 *
134 * Utility functions and prototypes 138 * Utility functions and prototypes
@@ -609,6 +613,9 @@ static int efx_probe_port(struct efx_nic *efx)
609 if (rc) 613 if (rc)
610 goto err; 614 goto err;
611 615
616 if (phy_flash_cfg)
617 efx->phy_mode = PHY_MODE_SPECIAL;
618
612 /* Sanity check MAC address */ 619 /* Sanity check MAC address */
613 if (is_valid_ether_addr(efx->mac_address)) { 620 if (is_valid_ether_addr(efx->mac_address)) {
614 memcpy(efx->net_dev->dev_addr, efx->mac_address, ETH_ALEN); 621 memcpy(efx->net_dev->dev_addr, efx->mac_address, ETH_ALEN);