Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9af3281 in mainline


Ignore:
Timestamp:
2017-07-22T01:07:02Z (3 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
master
Children:
110d795
Parents:
12fba858
Message:

Added initialization of allocated ERST segments, previously garbage data caused an invalid segment size to be passed to the xHC which in result collapsed and did not respon to commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/trb_ring.c

    r12fba858 r9af3281  
    243243        if (ring->erst == NULL)
    244244                return ENOMEM;
     245        memset(ring->erst, 0, PAGE_SIZE);
    245246
    246247        xhci_fill_erst_entry(&ring->erst[0], segment->phys, SEGMENT_TRB_COUNT);
Note: See TracChangeset for help on using the changeset viewer.