Subject: kern/29113: re(4) reports "unknown subtype"
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 01/25/2005 02:02:01
>Number:         29113
>Category:       kern
>Synopsis:       re(4) reports "unknown subtype"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 25 02:02:00 +0000 2005
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 2.99.14
>Organization:

>Environment:
	
	
System: NetBSD kaeru 2.99.14 NetBSD 2.99.14 (build.kaeru) #152: Mon Jan 24 17:11:57 JST 2005 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
	SIOCGIFMEDIA seems to make re_gmii_readreg() read register,
	which is 0xff or something when the device is down.
>How-To-Repeat:
	% sudo ifconfig re0 up
	% ifconfig re0|grep media
		media: Ethernet autoselect (100baseTX full-duplex)
	% sudo ifconfig re0 down
	% ifconfig re0|grep media
		media: Ethernet autoselect (<unknown subtype> full-duplex,loopback)
>Fix:
	check RTK_ENABLED in re_ifmedia_sts().

>Unformatted: