From nobody@FreeBSD.org  Sat Apr  8 08:50:10 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A551816A402
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  8 Apr 2006 08:50:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1CB7543D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  8 Apr 2006 08:50:10 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k388o9WK058978
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 8 Apr 2006 08:50:09 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k388o921058977;
	Sat, 8 Apr 2006 08:50:09 GMT
	(envelope-from nobody)
Message-Id: <200604080850.k388o921058977@www.freebsd.org>
Date: Sat, 8 Apr 2006 08:50:09 GMT
From: Kyryll A Mirnenko <mirya@matrix.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: uplcom(4) module load after device plug-in: dev nodes are not created
X-Send-Pr-Version: www-2.3

>Number:         95509
>Category:       kern
>Synopsis:       [uplcom] uplcom(4) module load after device plug-in: dev nodes are not created
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 08 09:00:32 GMT 2006
>Closed-Date:    Fri Nov 03 18:49:54 GMT 2006
>Last-Modified:  Fri Nov 03 18:49:54 GMT 2006
>Originator:     Kyryll A Mirnenko
>Release:        6.0-RELEASE
>Organization:
>Environment:
FreeBSD myhost 6.0-RELEASE-p6 FreeBSD 6.0-RELEASE-p6 #5: Thu Mar 23 15:57:16 EET 2006     root@myhost:/usr/src/sys/i386/compile/GENERIC  i386
>Description:
When loading uplcom(4) kernel module after the USB2Serial device is plugged the first doesn't "attach", so I still see ugen(4) associated with the device and no dev. nodes created.

Here's an extract from `usbdevs -dv`:

Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
  uhub0
 port 1 addr 2: full speed, power 100 mA, config 1, USB-Serial Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00
   ugen0

When changing the sequence (e.g. first load, then plug) the device is detected correctly
>How-To-Repeat:
As described above
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: n_hibma 
State-Changed-When: Fri Nov 3 18:47:25 UTC 2006 
State-Changed-Why:  
This is by design. ugen is really a full driver with a userland interface. 
Yanking the device from under its feet and assigning it to another driver  
is a difficult thing to get right. 

A solution that has been proposed is to provide each driver with a 'generic 
interface', similar to the pass nodes in /dev for each SCSI device. But this 
creates other problems. 

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