Ignore:
Timestamp:
2011-03-08T21:54:10Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c8562c, f8c190e
Parents:
0c0f5a5d
Message:

Another toggle protocol fix.

SET CONFIGURATION resets toggle only if the target is device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/utils/device_keeper.c

    r0c0f5a5d rc0964800  
    3535#include <assert.h>
    3636#include <errno.h>
     37#include <usb/debug.h>
    3738
    3839#include "device_keeper.h"
     
    120121        case 0x9: /* set configuration */
    121122        case 0x11: /* set interface */
    122                 instance->devices[target.address].toggle_status = 0;
     123                /* target must be device */
     124                if ((data[0] & 0xf) == 0) {
     125                        instance->devices[target.address].toggle_status = 0;
     126                }
    123127        break;
    124128        }
Note: See TracChangeset for help on using the changeset viewer.