Skip to content

Commit

Permalink
sfc: Restore phy_flash_cfg module parameter
Browse files Browse the repository at this point in the history
This is needed for recovery in case a PHY firmware upgrade is aborted.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Dec 13, 2008
1 parent 2f7f573 commit 84ae48f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ static unsigned int rss_cpus;
module_param(rss_cpus, uint, 0444);
MODULE_PARM_DESC(rss_cpus, "Number of CPUs to use for Receive-Side Scaling");

static int phy_flash_cfg;
module_param(phy_flash_cfg, int, 0644);
MODULE_PARM_DESC(phy_flash_cfg, "Set PHYs into reflash mode initially");

/**************************************************************************
*
* Utility functions and prototypes
Expand Down Expand Up @@ -609,6 +613,9 @@ static int efx_probe_port(struct efx_nic *efx)
if (rc)
goto err;

if (phy_flash_cfg)
efx->phy_mode = PHY_MODE_SPECIAL;

/* Sanity check MAC address */
if (is_valid_ether_addr(efx->mac_address)) {
memcpy(efx->net_dev->dev_addr, efx->mac_address, ETH_ALEN);
Expand Down

0 comments on commit 84ae48f

Please sign in to comment.