Displaying 1 result from an estimated 1 matches for "usbd_short_xfer_ok".
2003 Jun 11
1
Palm m50x & the USB stack
...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'v...