From owner-freebsd-current@FreeBSD.ORG Thu Jul 1 19:51:44 2004 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 78E0916A4CE; Thu, 1 Jul 2004 19:51:44 +0000 (GMT) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6709A43D31; Thu, 1 Jul 2004 19:51:44 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from tomcat.kitchenlab.org (adsl-64-142-31-107.sonic.net [64.142.31.107]) by a.mail.sonic.net (8.12.11/8.12.11) with ESMTP id i61Jnqgx000398 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 1 Jul 2004 12:49:52 -0700 Received: from tomcat.kitchenlab.org (localhost.kitchenlab.org [127.0.0.1]) i61JnqZH029285; Thu, 1 Jul 2004 12:49:52 -0700 (PDT) (envelope-from bmah@freebsd.org) Received: (from bmah@localhost) by tomcat.kitchenlab.org (8.12.11/8.12.11/Submit) id i61JnpKP029284; Thu, 1 Jul 2004 12:49:51 -0700 (PDT) (envelope-from bmah@freebsd.org) X-Authentication-Warning: tomcat.kitchenlab.org: bmah set sender to bmah@freebsd.org using -f From: "Bruce A. Mah" To: Brian Fundakowski Feldman In-Reply-To: <20040701172532.GC1034@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> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-NoQBdBHbTZIjnGRlpMq6" Message-Id: <1088711391.3601.74.camel@tomcat.kitchenlab.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 01 Jul 2004 12:49:51 -0700 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 19:51:44 -0000 --=-NoQBdBHbTZIjnGRlpMq6 Content-Type: multipart/mixed; boundary="=-x90tIjG2oxTwh4fI74Q6" --=-x90tIjG2oxTwh4fI74Q6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 =3D=3D nc) i =3D nc - 1;" fallthrough code. Huh?!= ? Thanks, Bruce. --=-x90tIjG2oxTwh4fI74Q6 Content-Description: Content-Disposition: attachment; filename=uvisor.c.diff2 Content-Transfer-Encoding: base64 Content-Type: text/plain LS0tIHV2aXNvci5jLWdyZWVuCVRodSBKdWwgIDEgMTA6NDI6MTcgMjAwNA0KKysrIHV2aXNvci5j CVRodSBKdWwgIDEgMTI6NDE6NDIgMjAwNA0KQEAgLTM2OCw2ICszNjgsMTggQEANCiAJCWlmIChu YyA+IFVWSVNPUl9NQVhfQ09OTikNCiAJCQluYyA9IFVWSVNPUl9NQVhfQ09OTjsNCiANCisjaWZk ZWYgVVNCX0RFQlVHDQorCQlmb3IgKGkgPSAwOyBpIDwgbmM7ICsraSkgew0KKwkJCWludCBqOw0K KwkJCXByaW50ZigiJXM6IENvbm5lY3Rpb24gJWQ6IHBvcnQgJWQgZW5kX3BvaW50X2luZm8gJWQg cG9ydF9mdW5jdGlvbl9pZCAiLCANCisJCQkgICAgICAgZGV2bmFtZSwgaSwNCisJCQkgICAgICAg Y29uaW5mby5jaV9wYWxtLmNvbm5lY3Rpb25zW2ldLnBvcnQsDQorCQkJICAgICAgIGNvbmluZm8u Y2lfcGFsbS5jb25uZWN0aW9uc1tpXS5lbmRfcG9pbnRfaW5mbyk7DQorCQkJZm9yIChqID0gMDsg aiA8IHNpemVvZih1RFdvcmQpOyArK2opDQorCQkJCXByaW50ZigiJTJ4ICIsIGNvbmluZm8uY2lf cGFsbS5jb25uZWN0aW9uc1tpXS5wb3J0X2Z1bmN0aW9uX2lkW2pdKTsNCisJCQlwcmludGYoIlxu Iik7DQorCQl9DQorI2VuZGlmDQogCQkvKiBYWFggU2hvdWxkIGF0dGFjaCBhIHVjb20gZm9yIGVh Y2ggY29ubmVjdGlvbi4gKi8NCiAJCWZvciAoaSA9IDA7IGkgPCBuYzsgKytpKQ0KIAkJCWlmIChj b25pbmZvLmNpX3BhbG0uY29ubmVjdGlvbnNbaV0ucG9ydF9mdW5jdGlvbl9pZFswXQ0K --=-x90tIjG2oxTwh4fI74Q6-- --=-NoQBdBHbTZIjnGRlpMq6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBA5Grf2MoxcVugUsMRAkyMAKC43F1gbNHPEa00Phh3A2Jz0LCw5QCgu/Wm GlgtKXvtS0f1M53CwR4fQ3M= =zcUT -----END PGP SIGNATURE----- --=-NoQBdBHbTZIjnGRlpMq6--