From owner-freebsd-stable@FreeBSD.ORG Mon Feb 4 20:13:45 2013 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7A6F78D8 for ; Mon, 4 Feb 2013 20:13:45 +0000 (UTC) (envelope-from karl@denninger.net) Received: from FS.denninger.net (wsip-70-169-168-7.pn.at.cox.net [70.169.168.7]) by mx1.freebsd.org (Postfix) with ESMTP id 0FEF3A8E for ; Mon, 4 Feb 2013 20:13:44 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by FS.denninger.net (8.14.6/8.13.1) with ESMTP id r14KDi9H020530 for ; Mon, 4 Feb 2013 14:13:44 -0600 (CST) (envelope-from karl@denninger.net) Received: from [127.0.0.1] [192.168.1.40] by Spamblock-sys (LOCAL); Mon Feb 4 14:13:44 2013 Message-ID: <51101673.8050800@denninger.net> Date: Mon, 04 Feb 2013 14:13:39 -0600 From: Karl Denninger User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-stable@FreeBSD.org Subject: Re: So I whip out a FTDI-based multiport Serial USB Adapter.... References: <511004AA.3060201@denninger.net> <1360008362.93359.485.camel@revolution.hippie.lan> In-Reply-To: <1360008362.93359.485.camel@revolution.hippie.lan> X-Enigmail-Version: 1.5 X-Antivirus: avast! (VPS 130204-0, 02/04/2013), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 20:13:45 -0000 On 2/4/2013 2:06 PM, Ian Lepore wrote: > On Mon, 2013-02-04 at 12:57 -0600, Karl Denninger wrote: >> ... and plug it into FreeBSD 9.1-Stable with the rev ID FreeBSD >> 9.1-STABLE #16 r244942 >> >> and it returns.... >> >> ugen4.4: at usbus4 >> uhub6: >> on usbus4 >> uhub_attach: port 1 power on failed, USB_ERR_STALLED >> uhub_attach: port 2 power on failed, USB_ERR_STALLED >> uhub_attach: port 3 power on failed, USB_ERR_STALLED >> uhub_attach: port 4 power on failed, USB_ERR_STALLED >> uhub_attach: port 5 power on failed, USB_ERR_STALLED >> uhub_attach: port 6 power on failed, USB_ERR_STALLED >> uhub_attach: port 7 power on failed, USB_ERR_STALLED >> uhub6: 7 ports with 7 removable, self powered >> >> Yuck. >> >> The last time it was working was on a FreeBSD 7 box (yeah, I know, >> rather old) but I never had problems there. And it appears that all of >> the device declarations that I used to have to put in the kernel as >> non-standard stuff are now in GENERIC, so I would expect it to work. >> >> Ideas as to what may have gotten hosed up here? >> > Those messages all seem to be related to a hub. Vendor ID 0x0409 is NEC. > > FTDI's vendor ID is 0x0403, and FTDI stuff works fine in FreeBSD 9 and > 10; I use it all the time. Sometimes aftermarket vendors who use FTDI's > parts program different vendor/product info and IDs have to be added to > code to recognize them, that's the only trouble one usually encounters. > > -- Ian It appears there is no declaration in any of the NEC constants in any of the source or header files (other than usbdevs) in the /usr/src/sys/dev/usb tree, so I'm unsure where it's getting the "7" ports it is trying to attach, since there are 8 in the box and I can't find a use of the tuple that it IDs under from the usbdevs declarations..... Am I correct that if I was to add this pair to the serial/uftdi.c file where the structure is set up it should (might?) recognize it? There's no way to do this on a runtime basis, yes? -- -- Karl Denninger /The Market Ticker ®/ Cuda Systems LLC