From owner-freebsd-current@FreeBSD.ORG Mon Jun 16 16:31:28 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06E6937B401 for ; Mon, 16 Jun 2003 16:31:28 -0700 (PDT) Received: from castle.org (castle.org [207.178.4.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5561543FB1 for ; Mon, 16 Jun 2003 16:31:27 -0700 (PDT) (envelope-from nomad@castle.org) Received: from castle.org (localhost.castle.org [127.0.0.1]) by castle.org (8.12.9/8.12.9) with ESMTP id h5GNVPwJ041484 for ; Mon, 16 Jun 2003 16:31:25 -0700 (PDT) (envelope-from nomad@castle.org) Message-Id: <200306162331.h5GNVPwJ041484@castle.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: freebsd-current@freebsd.org In-reply-to: Your message of Mon, 16 Jun 2003 23:37:38 +0200. <20030616213737.GB3469@speedy.unibe.ch> X-uri: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 16 Jun 2003 16:31:25 -0700 From: Lee Damon X-Spam-Status: No, hits=-1.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: IBM T30 bluetooth - success X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 16 Jun 2003 23:31:28 -0000 I can second that success. Any chance of getting this patch checked in? thanks, nomad Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub2 port 1 addr 2: full speed, power 200 mA, config 1, IBM Integrated Bluetooth(0x0310), TDK(0x04bf), rev 1.15 ubt0 port 2 powered > Index: usb_subr.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/usb/usb_subr.c,v > retrieving revision 1.54 > diff -u -r1.54 usb_subr.c > --- usb_subr.c 14 Jan 2003 23:07:43 -0000 1.54 > +++ usb_subr.c 14 Jun 2003 16:01:38 -0000 > @@ -964,6 +964,7 @@ > usbd_device_handle dev; > struct usbd_device *hub; > usb_device_descriptor_t *dd; > + usb_port_status_t ps; > usbd_status err; > int addr; > int i; > @@ -1020,12 +1021,14 @@ > up->device = dev; > dd = &dev->ddesc; > /* Try a few times in case the device is slow (i.e. outside specs.) */ > - for (i = 0; i < 3; i++) { > + for (i = 0; i < 15; i++) { > /* Get the first 8 bytes of the device descriptor. */ > err = usbd_get_desc(dev, UDESC_DEVICE, 0, USB_MAX_IPACKET, dd); > if (!err) > break; > usbd_delay_ms(dev, 200); > + if ((i & 3) == 3) > + usbd_reset_port(up->parent, port, &ps); > } > if (err) { > DPRINTFN(-1, ("usbd_new_device: addr=%d, getting first desc " > nomad ----------- - Lee "nomad" Damon - \ play: nomad@castle.org or castle!nomad \ work: nomad@ee.washington.edu \ /\ Seneschal, Castle PAUS. / \ "Celebrate Diversity" / \