Changeset 65e079b in mainline


Ignore:
Timestamp:
2017-10-03T17:52:09Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d07b052
Parents:
472235a
Message:

Fixed ADDRESS_DEVICE command by fixing the size of input control context and properly assigning the slot id, current solution works as long as CSZ = 1 in HCCPARAMS1.

Location:
uspace/drv/bus/usb/xhci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hw_struct/context.h

    r472235a r65e079b  
    159159 */
    160160typedef struct xhci_input_ctrl_ctx {
    161         uint32_t data [16];
     161        uint32_t data [8];
    162162#define XHCI_INPUT_CTRL_CTX_DROP(ctx, idx) \
    163163        XHCI_DWORD_EXTRACT((ctx).data[0], (idx), (idx))
  • uspace/drv/bus/usb/xhci/rh.c

    r472235a r65e079b  
    129129
    130130        xhci_cmd_init(&cmd);
     131        cmd.slot_id = slot_id;
    131132        xhci_send_address_device_command(hc, &cmd, ictx);
    132133        if ((err = xhci_cmd_wait(&cmd, 100000)) != EOK)
Note: See TracChangeset for help on using the changeset viewer.