Re: Sony Clie PEG-TJ37 vs. FreeBSD CURRENT (long)

From: Brian Fundakowski Feldman <green_at_freebsd.org>
Date: Thu, 1 Jul 2004 16:16:42 -0400
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_at_FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\
Received on Thu Jul 01 2004 - 18:16:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:59 UTC