Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sfc: SFT9001: Fix condition for LNPGA power-off

Only the SFX7101 requires software power control. This was
incorrectly being applied to the SFT9001 rev A as well.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ben Hutchings and committed by
David S. Miller
2a7e637d 4dbc242e

+3 -2
+3 -2
drivers/net/sfc/tenxpress.c
··· 636 636 { 637 637 int reg; 638 638 639 - if (efx->phy_type == PHY_TYPE_SFT9001B) { 639 + if (efx->phy_type == PHY_TYPE_SFT9001B) 640 640 device_remove_file(&efx->pci_dev->dev, 641 641 &dev_attr_phy_short_reach); 642 - } else { 642 + 643 + if (efx->phy_type == PHY_TYPE_SFX7101) { 643 644 /* Power down the LNPGA */ 644 645 reg = (1 << PMA_PMD_LNPGA_POWERDOWN_LBN); 645 646 mdio_clause45_write(efx, efx->mii.phy_id, MDIO_MMD_PMAPMD,