USB mouse works again in current!!!

Niki Denev nike_d at cytexbg.com
Wed Jun 27 11:30:28 UTC 2007


Ian FREISLICH wrote:
> Hans Petter Selasky wrote:
>   
>> Yes, that is correct.
>>
>> If you are building with the latest FreeBSD-7 current, then be aware that it 
>> might break. You need to zero at least "/usr/src/sys/dev/usb/umass.c" after 
>> installation.
>>     
>
> Your USB stack fixes the external mouse which is nice.
>
> It's a pity that it breaks the trackpad and umass.
>
> Ian
>
> --
> Ian Freislich
>
>   
I believe umass.c needs very little change to make it work in 7-Current, 
atleast
it worked for me after simply adding one zero as the missing argument 
for the function
that had changed from 6-stable to 7-current. I haven't tested how 
reliably it will work after this though,
but my umass devices seem to be recognized.


This is what i changed :

--- umass-hps-orig      2007-06-27 14:25:32.000000000 +0000
+++ umass-hps-fixed     2007-06-27 14:27:17.000000000 +0000
@@ -2305,7 +2305,7 @@
        mtx_lock(&(sc->sc_mtx));
 #endif

-       if(xpt_bus_register(sc->sc_sim, sc->sc_unit) != CAM_SUCCESS) {
+       if(xpt_bus_register(sc->sc_sim, NULL, sc->sc_unit) != CAM_SUCCESS) {
 #if (__FreeBSD_version >= 700037)
            mtx_unlock(&(sc->sc_mtx));
 #endif



More information about the freebsd-current mailing list