From owner-freebsd-current@FreeBSD.ORG Thu Apr 17 00:29:43 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 5BB6337B401; Thu, 17 Apr 2003 00:29:42 -0700 (PDT) Received: from ns3.safety.net (ns3.safety.net [216.40.201.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB93D43F3F; Thu, 17 Apr 2003 00:29:41 -0700 (PDT) (envelope-from cbiffle@safety.net) Received: from localhost (rs.rackshack.net.safety.net [216.40.201.32]) by ns3.safety.net (8.10.2/8.10.2) with ESMTP id h3H7TeA08019; Thu, 17 Apr 2003 00:29:40 -0700 From: "Cliff L. Biffle" To: current@freebsd.org, mobile@freebsd.org Date: Thu, 17 Apr 2003 00:29:40 -0700 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304170029.40861.cbiffle@safety.net> Subject: USB issues with Aladdin M5237 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: Thu, 17 Apr 2003 07:29:43 -0000 I'm having issues with my laptop's USB under -current (snapshot as of today). The controller has never worked in FreeBSD (4.x or 5.x), but works fine under Knoppix. I've found messages to mobile@ dating back a couple of years with people getting my exact symptoms on the same controller -- but there are also messages from folks for whom it works fine. The symptoms: when I attach a device, nothing happens. Shortly thereafter (if I'm lucky) it will output 'uhub0: device problem, disabling port 1.' If I plug in a bus-powered device with a power indicator (such as one of my hubs), the device acts like it's getting some power, but doesn't work properly. (The hub in particular turns its power light on but won't power the ports up.) Again, this works fine in Knoppix. With hw.usb.ohci.debug=1 and hw.usb.debug=1, I get the following output: usbd_new_device: addr=2, getting first desc failed uhub_explore: usb_new_device failed, error=TIMEOUT uhub0: device problem, disabling port 1 The OHCI probes correctly at boot, at least from what I can tell in the dmesg. Relevant lines: ohci0: mem 0xfedee000-0xfedeefff irq 9 at device 19.0 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered HELP! :-) I'm more than willing to muck around in the OHCI sources, if someone can point me at a place to start -- I've found the USB stack in general to be, well, underdocumented. :-) I've already requested a datasheet on the part from Aladdin so I can double-check if perhaps my BIOS isn't properly initializing the part. Suggestions? -Cliff L. Biffle