Subject: kern/20425: Incorrect USB Vendor code: 0x0bda is Realtek ID not GreenHouse.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nabe@nabechan.org>
List: netbsd-bugs
Date: 02/19/2003 02:05:17
>Number:         20425
>Category:       kern
>Synopsis:       Incorrect USB Vendor code: 0x0bda is Realtek ID not GreenHouse.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 19 02:06:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Shingo WATANABE
>Release:        NetBSD 1.6O
>Organization:
>Environment:
NetBSD think.nabechan.org 1.6O NetBSD 1.6O (X30) #30: Wed Feb 19 15:30:51 JST 2003     nabe@think.nabechan.org:/sys/arch/i386/compile/X30 i386

>Description:
The USB vendor name of 0x0bda was incorrectly registered into the usbdevs file. It is my mistake when I wrote if_url(Realtek RTL8150L) driver, :-(

The vendor of "0x0bda" is Realtek, see "usb.if" from http://www.usb.org/app/pub/dump/comp_dump/ . 

>How-To-Repeat:
see usbdevs in /sys/dev/usb/

>Fix:
apply following patch to usbdevs and if_url.c in /sys/dev/usb/.


diff -ur /home/nabe/work/cvs/NetBSD/src/sys/dev/usb/if_url.c usb/if_url.c
--- /home/nabe/work/cvs/NetBSD/src/sys/dev/usb/if_url.c	2003-01-22 10:31:54.000000000 +0900
+++ usb/if_url.c	2003-02-19 18:36:57.000000000 +0900
@@ -161,8 +161,8 @@
 } url_devs [] = {
 	/* MELCO LUA-KTX */
 	{{ USB_VENDOR_MELCO, USB_PRODUCT_MELCO_LUAKTX }, 0},
-	/* GREEN HOUSE USBKR100 */
-	{{ USB_VENDOR_GREENHOUSE2, USB_PRODUCT_GREENHOUSE2_USBKR100}, 0}
+	/* Realtek RTL8150L Generic (GREEN HOUSE USBKR100) */
+	{{ USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8150L}, 0}
 };
 #define url_lookup(v, p) ((struct url_type *)usb_lookup(url_devs, v, p))
 
diff -ur /home/nabe/work/cvs/NetBSD/src/sys/dev/usb/usbdevs usb/usbdevs
--- /home/nabe/work/cvs/NetBSD/src/sys/dev/usb/usbdevs	2003-02-16 12:22:39.000000000 +0900
+++ usb/usbdevs	2003-02-19 18:40:33.000000000 +0900
@@ -330,7 +330,7 @@
 vendor NEC2		0x0b62	NEC
 vendor ATI2		0x0b6f	ATI
 vendor KURUSUGAWA	0x0b7e	Kurusugawa Electronics, Inc.
-vendor GREENHOUSE2	0x0bda	GREENHOUSE
+vendor REALTEK		0x0bda	Realtek
 vendor ADDONICS2	0x0bf6	Addonics Technology
 vendor AGATE		0x0c08	Agate Technologies
 vendor DMI		0x0c0b	DMI
@@ -678,7 +678,6 @@
 
 /* GREENHOUSE products */
 product GREENHOUSE KANA21	0x0001	CF-writer with Portable MP3 Player
-product GREENHOUSE2 USBKR100	0x8150	USB Ethernet Adapter GH-USB100B
 
 /* Griffin Technology */
 product GRIFFIN IMATE		0x0405	iMate, ADB adapter
@@ -1173,6 +1172,9 @@
 /* Rainbow Technologies products */
 product	RAINBOW IKEY2000	0x1200	i-Key 2000  
 
+/* Realtek Products */
+product REALTEK RTL8150L	0x8150	Realtek RTL8150L USB-Ethernet Bridge
+
 /* Roland products */
 product	ROLAND SC8850		0x0003	RolandED SC-8850 SOUND Canvas MIDI Synth.
 product	ROLAND UM1		0x0009	UM-1 MIDI I/F

>Release-Note:
>Audit-Trail:
>Unformatted: