Changeset 2770b66 in mainline for uspace/drv/bus/usb/xhci/hc.c


Ignore:
Timestamp:
2017-10-15T15:05:06Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
816f5f4
Parents:
20eaa82
Message:

Fixed few bugs related to control transfers and some deadlocks. Registering control endpoint with HelenOS. Can read out device descriptors through MID and initialize mouse driver!

File:
1 edited

Legend:

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

    r20eaa82 r2770b66  
    213213                goto err_scratch;
    214214
     215        if ((err = xhci_init_transfers(hc)))
     216                goto err_cmd;
     217
    215218        if ((err = xhci_rh_init(&hc->rh, hc)))
    216                 goto err_cmd;
     219                goto err_transfers;
    217220
    218221        if ((err = xhci_bus_init(&hc->bus)))
     
    224227err_rh:
    225228        xhci_rh_fini(&hc->rh);
     229err_transfers:
     230        xhci_fini_transfers(hc);
    226231err_cmd:
    227232        xhci_fini_commands(hc);
     
    472477        case USB_TRANSFER_ISOCHRONOUS:
    473478                /* TODO: Implement me. */
    474                 break;
     479                usb_log_error("Isochronous transfers are not yet implemented!");
     480                return ENOTSUP;
    475481        case USB_TRANSFER_BULK:
    476482                return xhci_schedule_bulk_transfer(hc, batch);
    477483        case USB_TRANSFER_INTERRUPT:
    478484                /* TODO: Implement me. */
    479                 break;
     485                usb_log_error("Interrupt transfers are not yet implemented!");
     486                return ENOTSUP;
    480487        }
    481488
     
    617624        xhci_event_ring_fini(&hc->event_ring);
    618625        hc_dcbaa_fini(hc);
     626        xhci_fini_transfers(hc);
    619627        xhci_fini_commands(hc);
    620628        xhci_rh_fini(&hc->rh);
Note: See TracChangeset for help on using the changeset viewer.