From owner-freebsd-current@FreeBSD.ORG Tue Aug 18 13:32:00 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E7A6106568E for ; Tue, 18 Aug 2009 13:32:00 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.tele2.se [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 9AA818FC55 for ; Tue, 18 Aug 2009 13:31:59 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=gg2W7PyvkLb8p4ie143lBA==:17 a=8kQB0OdkAAAA:8 a=6I5d2MoRAAAA:8 a=tlORsIYbfsrD9LvzZ0MA:9 a=mmPAAgUw-sakB0tzUaMA:7 a=qCVTN3qJ7QMixclqrM8UUxwZxO4A:4 a=9aOQ2cSd83gA:10 a=SV7veod9ZcQA:10 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 907980503; Tue, 18 Aug 2009 15:31:57 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Tue, 18 Aug 2009 15:32:08 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <20090213204112.7b982402.ota@j.email.ne.jp> <200908180706.30202.hselasky@c2i.net> <20090818091104.28cda3be.ota@j.email.ne.jp> In-Reply-To: <20090818091104.28cda3be.ota@j.email.ne.jp> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908181532.09088.hselasky@c2i.net> Cc: Yoshihiro Ota Subject: Re: USB2 - keyboard error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2009 13:32:00 -0000 On Tuesday 18 August 2009 15:11:04 Yoshihiro Ota wrote: > On Tue, 18 Aug 2009 07:06:29 +0200 > > Hans Petter Selasky wrote: > > On Tuesday 18 August 2009 04:51:05 Yoshihiro Ota wrote: > > > Hi all and Hans, > > > > > > After switching code base for 8 release, I realized problems with my > > > keyboard. The work-around described below fixed my problems. > > > > > > Could you be able to incorporate fix for this? > > > > > > Thanks, > > > Hiro > > > > Can you resend the patch? > > > > --HPS > > Below is the change you suggested. > It doesn't look good for other keyboards. I can implement this like a sysctl: hw.usb.ukbd.no_leds --HPS > > Thanks, > Hiro > > %env LANG=C svn diff --diff-cmd /usr/bin/diff -x-U10 input/ukbd.c > Index: input/ukbd.c > =================================================================== > --- input/ukbd.c (revision 196086) > +++ input/ukbd.c (working copy) > @@ -606,20 +606,21 @@ > } > > static void > ukbd_set_leds_callback(struct usb_xfer *xfer, usb_error_t error) > { > struct usb_device_request req; > struct usb_page_cache *pc; > uint8_t buf[2]; > struct ukbd_softc *sc = usbd_xfer_softc(xfer); > > +return; /* USB-keyboard workaround */ > switch (USB_GET_STATE(xfer)) { > case USB_ST_TRANSFERRED: > case USB_ST_SETUP: > if (sc->sc_flags & UKBD_FLAG_SET_LEDS) { > sc->sc_flags &= ~UKBD_FLAG_SET_LEDS; > > req.bmRequestType = UT_WRITE_CLASS_INTERFACE; > req.bRequest = UR_SET_REPORT; > USETW2(req.wValue, UHID_OUTPUT_REPORT, 0); > req.wIndex[0] = sc->sc_iface_no; > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"