From 076870f535a4df741e0b0a6eca37386e092e89aa Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Fri, 12 Dec 2008 21:34:54 -0800 Subject: [PATCH] --- yaml --- r: 122609 b: refs/heads/master c: 84ae48fe4c1fe8b79fac015df6ad0b0937a7ae37 h: refs/heads/master i: 122607: a2ab7dc01a8f3a29cddb3905eb17306c12a3baaa v: v3 --- [refs] | 2 +- trunk/drivers/net/sfc/efx.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 9f1d6341854c..87f36b63ae21 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2f7f573095132240916a8780cd5ef648c0ad7281 +refs/heads/master: 84ae48fe4c1fe8b79fac015df6ad0b0937a7ae37 diff --git a/trunk/drivers/net/sfc/efx.c b/trunk/drivers/net/sfc/efx.c index 127b4da0a5e7..15ae2fcf6416 100644 --- a/trunk/drivers/net/sfc/efx.c +++ b/trunk/drivers/net/sfc/efx.c @@ -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 @@ -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);