Changeset fa0f53b in mainline for uspace/lib/usb/src/pipesinit.c


Ignore:
Timestamp:
2011-04-14T13:54:40Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
12b8e03
Parents:
5e168be1
Message:

Automatic endpoint halt clearing (#190)

To prevent total stall of endpoint 0, if some control read/write
function detects a stall, it automatically tries to clear it.

On real HW it works more or less fine, simulators does not always
handle stall condition correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/pipesinit.c

    r5e168be1 rfa0f53b  
    365365        pipe->direction = direction;
    366366        pipe->refcount = 0;
     367        pipe->auto_reset_halt = false;
    367368
    368369        return EOK;
     
    385386            0, USB_TRANSFER_CONTROL, CTRL_PIPE_MIN_PACKET_SIZE,
    386387            USB_DIRECTION_BOTH);
     388
     389        pipe->auto_reset_halt = true;
    387390
    388391        return rc;
Note: See TracChangeset for help on using the changeset viewer.