From owner-freebsd-current@FreeBSD.ORG Tue Dec 23 10:28:16 2008 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 83EF0106564A for ; Tue, 23 Dec 2008 10:28:16 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swipnet.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 17E968FC19 for ; Tue, 23 Dec 2008 10:28:15 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=pgw_eo6bRDYA:10 a=JgwOP_QsqSoA:10 a=Ugr8SkMAZI94xsn0fWUA:9 a=gGzlbMnzwXWICpPBqZe_XKXvux0A:4 a=LY0hPdMaydYA:10 Received: from [193.217.167.134] (account mc467741@c2i.net HELO [10.0.0.186]) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 997995209; Tue, 23 Dec 2008 11:28:14 +0100 From: Hans Petter Selasky To: remko@elvandar.org Date: Tue, 23 Dec 2008 11:30:32 +0100 User-Agent: KMail/1.9.7 References: <20081222214010.GA18389@elvis.mu.org> <200812231103.26561.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812231130.33842.hselasky@c2i.net> Cc: freebsd-current@freebsd.org, Pegasus Mc Cleaft Subject: Re: HEADSUP usb2 (usb4bsd) to become default in 2 weeks. 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, 23 Dec 2008 10:28:16 -0000 On Tuesday 23 December 2008, Remko Lodder wrote: > On Tue, December 23, 2008 11:03 am, Hans Petter Selasky wrote: > > On Tuesday 23 December 2008, Pegasus Mc Cleaft wrote: > >> I believe that the Prolific USB serial adapter is broken on AMD64. I > >> tried > >> one of the adapters on my machine and no matter what serial speed I was > >> selecting with cu it would come back with an error stating the speed was > >> unsupported. I moved the adapter to a 8-current machine (i386) with the > >> usb1 stack and everything worked fine. > >> > >> Peg > > > > Are you sure that this is not an mpsafetty problem? > > Given that he states that it works under the original USB stack, I would > guess that it's not an MPsafeTTY thingy else it wouldn't work under the > original stack either. Try to turn on USB debugging for: sysctl hw.usb2.ucom.debug=15 sysctl hw.usb2.uftdi.debug=15 Have a look in "/usr/src/sys/dev/usb2/serial/uftdi2.c" and the function: uftdi_8u232am_getrate(). Extra checks have been added to detect invalid line speeds between USB1 and USB2. What rate are you trying to set? Minimum and maximum rate is defined like this: if ((speed < 178) || (speed > ((3000000 * 100) / 97))) return (1); /* prevent numerical overflow */ --HPS uftdi_8u232am_getrate