From owner-freebsd-bugs@FreeBSD.ORG Sat Nov 29 10:20:09 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF2B81065675 for ; Sat, 29 Nov 2008 10:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 951888FC14 for ; Sat, 29 Nov 2008 10:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mATAK9kB046106 for ; Sat, 29 Nov 2008 10:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mATAK9Xd046105; Sat, 29 Nov 2008 10:20:09 GMT (envelope-from gnats) Date: Sat, 29 Nov 2008 10:20:09 GMT Message-Id: <200811291020.mATAK9Xd046105@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Alex Cc: Subject: Re: bin/129268: [patch] small patch to let moused(8) detect usb2 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alex List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2008 10:20:09 -0000 The following reply was made to PR bin/129268; it has been noted by GNATS. From: Alex To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/129268: [patch] small patch to let moused(8) detect usb2 Date: Sat, 29 Nov 2008 10:16:16 GMT >Submitter-Id: current-users >Originator: Alex >Organization: >Confidential: no >Synopsis: Re: bin/129268: [patch] small patch to let moused(8) detect usb2 >Severity: non-critical >Priority: low >Category: bin >Class: change-request >Release: 8-CURRENT >Environment: FreeBSD moshnroll 8.0-CURRENT FreeBSD 8.0-CURRENT #8 r185353M: Thu Nov 27 01:48:42 CET 2008 root@moshnroll:/usr/obj/usr/src/sys/ARUNDEL i386 >Description: you're right. all the apps that rely on a usb kernel module don't know that for each usb1 module there's a usb2 counterpart. if an app needs let's say ums there are 3 possible cases to take care of: 1. the kernel was compiled with usb1 or the usb1 module was loaded 2. the kernel was compiled with usb2 or the usb2 module was loaded 3. the kernel was compiled without usb support and no usb module is loaded how about this: let's introduce a new sysctl variable. hw.usb2.enable e.g. in case 1 the variable will remain 0. in case 2 it will be set to 1. if the kernel was compiled without any usb support and no usb module got loaded it also remains 0. if the user however wishes to use usb2 even though he didn't add it to the kernel he can set hw.usb2.enable to 1 in order to tell moused e.g. to depend on usb2. if after a while the usb2 stack becomes the default stack the standard setting of hw.usb2.enable can be changed to 1. only if the user specifically adds usb1 to the kernel it will be set to 0. this would require only minor changes to moused and the other apps that load a usb module. cheers. >How-To-Repeat: >Fix: