[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] Patch: Palm m50x USB support (Linux)



On Mon, Jul 16, 2001 at 07:55:25PM +0200, Koen Deforche wrote:
> 
> The first mystery is that the first 6B (which happen to be a header)
> of communication on the ttyUSB1 pipe from palm to PC are missing!

They are missing because they are part of the USB discovery process that
the palm USB protocol specifies.  Take a look at the visor.h file in the
linux kernel source directory drivers/usb/serial for a description of
these commands and responses.  They are not part of the data stream used
by the sync process.

> Also, noteworthy, and which may be a hint: when the palm finally
> timeouts or I disconnect the palm from the cradle (to reset it), the
> USB stack ofcourse detects the disconnect, and at that moment 64B more
> of data are supplied:

Wow!  This was the most complete bug description I've seen in a long
time.  I had never noticed this problem.

Are you using the usb-ohci.o or usb-uhci.o driver?  It looks like a
problem in there, as the visor driver never gets the data.

Of course, it could be a bug in the device, as a "close" command just
got sent to the device, which might flush out the data from the pilot.

Hard to tell which it is without a USB protocol analizer.  You wouldn't
happen to have access to one, would you?

> One more thing I will try, is to find a way to get the naked USB data,
> so that I can verify if the Palm actually sends it, or not. Do you
> know where in the kernel that I should look for that?

Try turning on debugging in the host controller driver.  Each one does
it differently.

thanks a lot,

greg k-h
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.