From owner-freebsd-current@FreeBSD.ORG Thu Jul 1 20:16:44 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 74BC016A4CE; Thu, 1 Jul 2004 20:16:44 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i61KGhdn006233; Thu, 1 Jul 2004 16:16:43 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i61KGhCL006232; Thu, 1 Jul 2004 16:16:43 -0400 (EDT) (envelope-from green) Date: Thu, 1 Jul 2004 16:16:42 -0400 From: Brian Fundakowski Feldman To: "Bruce A. Mah" Message-ID: <20040701201642.GH1034@green.homeunix.org> References: <20040701154429.GA3543@tomcat.kitchenlab.org> <20040701164523.GA1034@green.homeunix.org> <1088702269.3601.40.camel@tomcat.kitchenlab.org> <20040701172532.GC1034@green.homeunix.org> <1088711391.3601.74.camel@tomcat.kitchenlab.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1088711391.3601.74.camel@tomcat.kitchenlab.org> User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: Sony Clie PEG-TJ37 vs. FreeBSD CURRENT (long) 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, 01 Jul 2004 20:16:44 -0000 On Thu, Jul 01, 2004 at 12:49:51PM -0700, Bruce A. Mah wrote: > On Thu, 2004-07-01 at 10:25, Brian Fundakowski Feldman wrote: > > > Great, glad it works! Yeah, that's the part where you'd potentially > > want to attach them all; since you're the one with the hardware > > in a position to really test it, I'd appreciate if you'd add the > > appropriate USB_DEBUG printfs for the PALM4 (!VISOR) case to see what > > ports are really available and hopefully get someone who really knows > > the USB/device drivers to finish making multiple ucom attachment work. > > OK, now I'm more confused. Please see the attached patch, which I added > to grab the connection information. > > (Yippee...a chance to embarass myself with my lamer un-l33t kernel > hacking skillz.) > > My debug output looks like (after MTA wordwrap): > > Jul 1 12:43:14 tomcat kernel: ucom0: Palm, Inc. Palm Handheld, rev > 1.00/1.00, addr 2 > Jul 1 12:43:14 tomcat kernel: ucom0: Palm, Inc. Palm Handheld, rev > 1.00/1.00, addr 2 > Jul 1 12:43:14 tomcat kernel: ucom0: Connection 0: port 0 > end_point_info 33 port_function_id 5f 70 70 70 > > If this is right, the only reason that I'm getting a successful > attachment is the "if (i == nc) i = nc - 1;" fallthrough code. Huh?!? I bet it's setting endpoint_numbers_different :) If you look at the code it gave, it was the string "_ppp" so you could potentially do memcmp(end_point_info, "_ppp", 4) now that we know what it looks like. What does it look like when you do HotSync instead of PPP? Now it's using the correct bulk endpoints, so it's no surprise that it's working (since there's only one port, too, reported). -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\