]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: SAUCE: phylib: Minimum hack to get the generic 10G PHY driver to work with...
authorEmil Medve <Emilian.Medve@freescale.com>
Tue, 27 Oct 2009 21:55:41 +0000 (16:55 -0500)
committerTim Gardner <tim.gardner@canonical.com>
Fri, 26 Feb 2016 02:44:02 +0000 (19:44 -0700)
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Ben Collins <ben.c@servergy.com>
drivers/net/phy/fixed_phy.c

index e23bf5b90e17325060f4e4900b66ac2c086ec6dd..1502a4ff0fea00a4316d6d2d8805da31521c1f57 100644 (file)
@@ -5,6 +5,7 @@
  *         Anton Vorontsov <avorontsov@ru.mvista.com>
  *
  * Copyright (c) 2006-2007 MontaVista Software, Inc.
+ * Copyright 2009 Freescale Semiconductor, Inc.
  *
  * This program is free software; you can redistribute  it and/or modify it
  * under  the terms of  the GNU General  Public License as published by the
@@ -17,6 +18,7 @@
 #include <linux/platform_device.h>
 #include <linux/list.h>
 #include <linux/mii.h>
+#include <linux/mdio.h>
 #include <linux/phy.h>
 #include <linux/phy_fixed.h>
 #include <linux/err.h>
@@ -59,6 +61,9 @@ static int fixed_phy_update_regs(struct fixed_phy *fp)
 
        if (fp->status.duplex) {
                switch (fp->status.speed) {
+               case 10000:
+                       fp->regs[MDIO_STAT2] = MDIO_STAT2_DEVPRST_VAL;
+                       break;
                case 1000:
                        bmsr |= BMSR_ESTATEN;
                        break;
@@ -73,6 +78,9 @@ static int fixed_phy_update_regs(struct fixed_phy *fp)
                }
        } else {
                switch (fp->status.speed) {
+               case 10000:
+                       fp->regs[MDIO_STAT2] = MDIO_STAT2_DEVPRST_VAL;
+                       break;
                case 1000:
                        bmsr |= BMSR_ESTATEN;
                        break;