Date: Sat, 29 Nov 2008 10:20:09 GMT From: Alex <freebsd.alex@spamfoodie.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/129268: [patch] small patch to let moused(8) detect usb2 Message-ID: <200811291020.mATAK9Xd046105@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/129268; it has been noted by GNATS. From: Alex <freebsd.alex@spamfoodie.com> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811291020.mATAK9Xd046105>