From owner-freebsd-usb@FreeBSD.ORG Wed Jun 27 11:57:10 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 099F716A421 for ; Wed, 27 Jun 2007 11:57:10 +0000 (UTC) (envelope-from nike_d@cytexbg.com) Received: from office.suresupport.com (office.suresupport.com [213.145.98.15]) by mx1.freebsd.org (Postfix) with SMTP id 2744713C483 for ; Wed, 27 Jun 2007 11:57:08 +0000 (UTC) (envelope-from nike_d@cytexbg.com) Received: (qmail 20347 invoked by uid 1026); 27 Jun 2007 11:30:26 -0000 Received: from 213.145.98.14 by office.suresupport.com (envelope-from , uid 1004) with qmail-scanner-2.01 (clamdscan: 0.88.4/1784. Clear:RC:1(213.145.98.14):. Processed in 0.012305 secs); 27 Jun 2007 11:30:26 -0000 Received: from unknown (HELO ndenev.office.suresupport.com) (213.145.98.14) by office.suresupport.com with SMTP; 27 Jun 2007 11:30:25 -0000 Message-ID: <46824A51.4090308@cytexbg.com> Date: Wed, 27 Jun 2007 14:30:25 +0300 From: Niki Denev User-Agent: Thunderbird 2.0.0.0 (X11/20070531) MIME-Version: 1.0 To: Ian FREISLICH References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB mouse works again in current!!! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 11:57:10 -0000 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