Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2007 14:30:25 +0300
From:      Niki Denev <nike_d@cytexbg.com>
To:        Ian FREISLICH <ianf@clue.co.za>
Cc:        freebsd-current@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: USB mouse works again in current!!!
Message-ID:  <46824A51.4090308@cytexbg.com>
In-Reply-To: <E1I3UOx-000130-Ic@clue.co.za>
References:  <E1I3UOx-000130-Ic@clue.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46824A51.4090308>