Subject: kern/30556: Add support for Marvell 88E1111 to makphy
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <khym@azeotrope.org>
List: netbsd-bugs
Date: 06/19/2005 02:43:00
>Number:         30556
>Category:       kern
>Synopsis:       Add support for Marvell 88E1111 to makphy
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 19 02:43:00 +0000 2005
>Originator:     Dave Huang
>Release:        NetBSD 2.0
>Organization:
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 29 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Environment:
	
	
System: NetBSD yerfable.azeotrope.org 2.0 NetBSD 2.0 (YERFABLE) #214: Sun Dec 12 07:15:04 CST 2004 khym@yerfable.azeotrope.org:/usr2/obj.alpha/sys/arch/alpha/compile/YERFABLE alpha
Architecture: alpha
Machine: alpha
>Description:
	The makphy(4) driver doesn't recognize the Marvell 88E1111
PHY, although it seems to work fine with it.

>How-To-Repeat:
	Boot NetBSD on a Tyan K8WE, which according to the manual,
uses a Marvell 88E1111CAA PHY, and see:

ukphy0 at nv0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000ac2, model 0x000c, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto

>Fix:
diff -ur /usr/src/sys/dev/mii/makphy.c ./makphy.c
--- /usr/src/sys/dev/mii/makphy.c	2005-05-17 03:16:51.000000000 -0500
+++ ./makphy.c	2005-06-18 21:18:28.000000000 -0500
@@ -112,6 +112,9 @@
 	{ MII_OUI_xxMARVELL,		MII_MODEL_xxMARVELL_E1011,
 	  MII_STR_xxMARVELL_E1011 },
 
+	{ MII_OUI_xxMARVELL,		MII_MODEL_xxMARVELL_E1111,
+	  MII_STR_xxMARVELL_E1111 },
+
 	{ 0,				0,
 	  NULL },
 };
diff -ur /usr/src/sys/dev/mii/miidevs ./miidevs
--- /usr/src/sys/dev/mii/miidevs	2005-05-17 03:16:51.000000000 -0500
+++ ./miidevs	2005-06-18 21:18:09.000000000 -0500
@@ -177,6 +177,7 @@
 model xxMARVELL E1011		0x0002 Marvell 88E1011 Gigabit PHY
 model xxMARVELL E1000_3		0x0003 Marvell 88E1000 Gigabit PHY
 model xxMARVELL E1000_5		0x0005 Marvell 88E1000 Gigabit PHY
+model xxMARVELL E1111		0x000c Marvell 88E1111 Gigabit PHY
 
 /* Myson Technology PHYs */
 model xxMYSON MTD972		0x0000 MTD972 10/100 media interface

>Unformatted: