diff options
Diffstat (limited to 'drivers/net/phy/micrel.c')
| -rw-r--r-- | drivers/net/phy/micrel.c | 25 | 
1 files changed, 23 insertions, 2 deletions
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index bc7c7d2f75f2..011dbda2b2f1 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -420,6 +420,26 @@ static int ksz8873mll_config_aneg(struct phy_device *phydev)  	return 0;  } +/* This routine returns -1 as an indication to the caller that the + * Micrel ksz9021 10/100/1000 PHY does not support standard IEEE + * MMD extended PHY registers. + */ +static int +ksz9021_rd_mmd_phyreg(struct phy_device *phydev, int ptrad, int devnum, +		      int regnum) +{ +	return -1; +} + +/* This routine does nothing since the Micrel ksz9021 does not support + * standard IEEE MMD extended PHY registers. + */ +static void +ksz9021_wr_mmd_phyreg(struct phy_device *phydev, int ptrad, int devnum, +		      int regnum, u32 val) +{ +} +  static struct phy_driver ksphy_driver[] = {  {  	.phy_id		= PHY_ID_KS8737, @@ -565,13 +585,14 @@ static struct phy_driver ksphy_driver[] = {  	.config_intr	= ksz9021_config_intr,  	.suspend	= genphy_suspend,  	.resume		= genphy_resume, +	.read_mmd_indirect = ksz9021_rd_mmd_phyreg, +	.write_mmd_indirect = ksz9021_wr_mmd_phyreg,  	.driver		= { .owner = THIS_MODULE, },  }, {  	.phy_id		= PHY_ID_KSZ9031,  	.phy_id_mask	= 0x00fffff0,  	.name		= "Micrel KSZ9031 Gigabit PHY", -	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause -				| SUPPORTED_Asym_Pause), +	.features	= (PHY_GBIT_FEATURES | SUPPORTED_Pause),  	.flags		= PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,  	.config_init	= ksz9031_config_init,  	.config_aneg	= genphy_config_aneg,  |