Commit c212e5fe authored by Emil Medve's avatar Emil Medve Committed by Tim Gardner

UBUNTU: SAUCE: phylib: Minimum hack to get the generic 10G PHY driver to work...

UBUNTU: SAUCE: phylib: Minimum hack to get the generic 10G PHY driver to work with 10G "fixed-link"s
Signed-off-by: default avatarEmil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: default avatarBen Collins <ben.c@servergy.com>
parent 5635d2d9
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* Anton Vorontsov <avorontsov@ru.mvista.com> * Anton Vorontsov <avorontsov@ru.mvista.com>
* *
* Copyright (c) 2006-2007 MontaVista Software, Inc. * 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 * 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 * under the terms of the GNU General Public License as published by the
...@@ -17,6 +18,7 @@ ...@@ -17,6 +18,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/mii.h> #include <linux/mii.h>
#include <linux/mdio.h>
#include <linux/phy.h> #include <linux/phy.h>
#include <linux/phy_fixed.h> #include <linux/phy_fixed.h>
#include <linux/err.h> #include <linux/err.h>
...@@ -59,6 +61,9 @@ static int fixed_phy_update_regs(struct fixed_phy *fp) ...@@ -59,6 +61,9 @@ static int fixed_phy_update_regs(struct fixed_phy *fp)
if (fp->status.duplex) { if (fp->status.duplex) {
switch (fp->status.speed) { switch (fp->status.speed) {
case 10000:
fp->regs[MDIO_STAT2] = MDIO_STAT2_DEVPRST_VAL;
break;
case 1000: case 1000:
bmsr |= BMSR_ESTATEN; bmsr |= BMSR_ESTATEN;
break; break;
...@@ -73,6 +78,9 @@ static int fixed_phy_update_regs(struct fixed_phy *fp) ...@@ -73,6 +78,9 @@ static int fixed_phy_update_regs(struct fixed_phy *fp)
} }
} else { } else {
switch (fp->status.speed) { switch (fp->status.speed) {
case 10000:
fp->regs[MDIO_STAT2] = MDIO_STAT2_DEVPRST_VAL;
break;
case 1000: case 1000:
bmsr |= BMSR_ESTATEN; bmsr |= BMSR_ESTATEN;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment