From owner-freebsd-stable@FreeBSD.ORG Wed Jun 11 16:24:26 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4C9737B401 for ; Wed, 11 Jun 2003 16:24:26 -0700 (PDT) Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 148B043F85 for ; Wed, 11 Jun 2003 16:24:26 -0700 (PDT) (envelope-from ler@lerctr.org) Received: from pppte02-406.ght.iadfw.net (pppte02-406.ght.iadfw.net [66.94.129.152]) (authenticated bits=0)h5BNO7o7029861; Wed, 11 Jun 2003 18:24:09 -0500 (CDT) Date: Wed, 11 Jun 2003 18:24:05 -0500 From: Larry Rosenman To: Adriaan de Groot , freebsd-stable@freebsd.org Message-ID: <5520000.1055373845@lerlaptop.iadfw.net> In-Reply-To: <200306120110.41459.adridg@cs.kun.nl> References: <200306120110.41459.adridg@cs.kun.nl> X-Mailer: Mulberry/3.0.3 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Subject: Re: Palm m50x & the USB stack X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 23:24:27 -0000 I don't believe that things are any better now. --On Thursday, June 12, 2003 01:10:41 +0200 Adriaan de Groot wrote: > [It seems the last time this came up was in march, under the heading of > "Sony Cybershot should be in hardware notes". This message is intended > mainly to document what I've managed to track down.] > > The m500s still will not sync with pilot-link 0.11.7 in -STABLE. An > easily triggerable panic is another issue [1]. The pilot-link code first > opens /dev/ugenX and then switches to /dev/ugenX.2, which is the HotSync > endpoint for HotSyncs (endpoint 1 is listed as "Generic" in the endpoint > descriptions). Relevant code is then: > > i = 0; /* 0 or USBD_SHORT_XFER_OK */ > if (ioctl(endpoint_fd, USB_SET_SHORT_XFER, &i) < 0) { > > i = 50; > if (ioctl(endpoint_fd, USB_SET_TIMEOUT, &i) < 0) { > > later, writes to the endpoint go fine, but a read() on the endpoint_fd > returns immediately with ETIMEDOUT if the USB_TIMEOUT is non-0. I've > started following this through the ugen code, but get totally lost in > kernel intricacies. Mostly I need a good way to dump debug info to the > console while running though this code. Is kprintf() the right way to > go? Will (over)using it cause timing problems in the ugen code? > > I've got 5.1-RELEASE on a laptop, I'll check tomorrow if the situation is > any different there (though cvsweb indicates not much has changed, > really, recently, and NetBSD 1.6.1 fails just as miserably as FreeBSD > 4.8 in doing anything with an m500.). > > [ade] > > [1] open(/dev/ugen0) open(/dev/ugen0.2) ioctl(/dev/ugen0.2) is pretty > much it, as documented in the pilot-link source. > > -- > pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot > Key fingerprint = 934E 31AA 80A7 723F 54F9 50ED 76AC EE01 FEA2 A3FE > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749