aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/micrel.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2014-10-03 14:24:46 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-10-03 14:24:46 -0400
commit447a8b858e4bda41c394b1bc7fdbc9dc0bdf44f6 (patch)
tree676e741f2552c9cb301e1e49c557b92bf8940f55 /drivers/net/phy/micrel.c
parent3049683eafdbbbd7350b0e5ca02a2d8c026a3362 (diff)
parent042e1c79166b9250edd8262bea84e1703f27ad2e (diff)
Merge branch 'next' into for-linus
Prepare first round of input updates for 3.18.
Diffstat (limited to 'drivers/net/phy/micrel.c')
-rw-r--r--drivers/net/phy/micrel.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index bc7c7d2f75f2..fd0ea7c50ee6 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)
420 return 0; 420 return 0;
421} 421}
422 422
423/* This routine returns -1 as an indication to the caller that the
424 * Micrel ksz9021 10/100/1000 PHY does not support standard IEEE
425 * MMD extended PHY registers.
426 */
427static int
428ksz9021_rd_mmd_phyreg(struct phy_device *phydev, int ptrad, int devnum,
429 int regnum)
430{
431 return -1;
432}
433
434/* This routine does nothing since the Micrel ksz9021 does not support
435 * standard IEEE MMD extended PHY registers.
436 */
437static void
438ksz9021_wr_mmd_phyreg(struct phy_device *phydev, int ptrad, int devnum,
439 int regnum, u32 val)
440{
441}
442
423static struct phy_driver ksphy_driver[] = { 443static struct phy_driver ksphy_driver[] = {
424{ 444{
425 .phy_id = PHY_ID_KS8737, 445 .phy_id = PHY_ID_KS8737,
@@ -565,6 +585,8 @@ static struct phy_driver ksphy_driver[] = {
565 .config_intr = ksz9021_config_intr, 585 .config_intr = ksz9021_config_intr,
566 .suspend = genphy_suspend, 586 .suspend = genphy_suspend,
567 .resume = genphy_resume, 587 .resume = genphy_resume,
588 .read_mmd_indirect = ksz9021_rd_mmd_phyreg,
589 .write_mmd_indirect = ksz9021_wr_mmd_phyreg,
568 .driver = { .owner = THIS_MODULE, }, 590 .driver = { .owner = THIS_MODULE, },
569}, { 591}, {
570 .phy_id = PHY_ID_KSZ9031, 592 .phy_id = PHY_ID_KSZ9031,