From nobody@FreeBSD.org  Wed May  1 09:57:57 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 309D437B41A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 May 2002 09:57:55 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g41GvtX23772;
	Wed, 1 May 2002 09:57:55 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200205011657.g41GvtX23772@freefall.freebsd.org>
Date: Wed, 1 May 2002 09:57:55 -0700 (PDT)
From: Jim Mercer <jim@reptiles.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: USB ufm driver using major 200, although conf/majors lists 167
X-Send-Pr-Version: www-1.0

>Number:         37635
>Category:       kern
>Synopsis:       USB ufm driver using major 200, although conf/majors lists 167
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 01 10:00:02 PDT 2002
>Closed-Date:    Thu Nov 04 02:37:21 GMT 2004
>Last-Modified:  Thu Nov 04 02:37:21 GMT 2004
>Originator:     Jim Mercer
>Release:        4.x-stable
>Organization:
Reptilian Research
>Environment:
FreeBSD monitor.reptiles.org 4.5-STABLE FreeBSD 4.5-STABLE #4: Wed Apr 24 12:38:56 EDT 2002     root@monitor.reptiles.org:/usr/obj/usr/src/sys/REP-MON  i386

>Description:
      the ufm driver appears to use major 200, which i guess was the number used for development.
in /sys/conf/majors, it appears the ufm was assigned 167.  i guess the core code wasn't updated to reflect the assignment.

i manually did a mknod /dev/ufm0 c 200 0
and it works fine.

>How-To-Repeat:
      
>Fix:
edits:

maybe:  /sys/dev/usb/dsbr100io.h:#define FM_SET_FREQ _IOWR('U', 200, int)

definitely: /sys/dev/usb/ufm.c:#define UFM_CDEV_MAJOR    200

useful: /dev/MAKEDEV

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 17 17:30:28 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37635 
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Thu Nov 4 02:34:21 GMT 2004 
State-Changed-Why:  

FreeBSD 5.x and 6.0-CURRENT use automatic major number assignment, 
and MAKEDEV in 4-stable seems to match up with the kernel in that 
both use major 200. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37635 
>Unformatted:
