Changeset ba4a03a5 in mainline for uspace/drv/bus/usb/uhci/uhci.c


Ignore:
Timestamp:
2013-12-31T23:11:00Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d1df381
Parents:
e3a07bba
Message:

usb host: Use all hw resources when generating irq code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/uhci.c

    re3a07bba rba4a03a5  
    9898        addr_range_t regs = hw_res.io_ranges.ranges[0];
    9999        const int irq = hw_res.irqs.irqs[0];
    100         hw_res_list_parsed_clean(&hw_res);
    101 
    102         usb_log_debug("I/O regs at %p (size %zu), IRQ %d.\n",
    103             RNGABSPTR(regs), RNGSZ(regs), irq);
    104100
    105101        ret = hcd_ddf_setup_hc(device, USB_SPEED_FULL,
     
    107103        if (ret != EOK) {
    108104                usb_log_error("Failed to setup generic HCD.\n");
     105                hw_res_list_parsed_clean(&hw_res);
    109106                return ret;
    110107        }
     
    113110        if (!hc) {
    114111                usb_log_error("Failed to allocate UHCI HC structure.\n");
     112                hw_res_list_parsed_clean(&hw_res);
    115113                ret = ENOMEM;
    116114                goto ddf_hc_clean;
     
    118116
    119117        bool interrupts = false;
    120         ret = hcd_ddf_setup_interrupts(device, &regs, irq, irq_handler,
     118        ret = hcd_ddf_setup_interrupts(device, &hw_res, irq_handler,
    121119            hc_gen_irq_code);
    122120        if (ret != EOK) {
     
    129127
    130128        ret = hc_init(hc, &regs, interrupts);
     129        hw_res_list_parsed_clean(&hw_res);
    131130        if (ret != EOK) {
    132131                usb_log_error("Failed to init uhci_hcd: %s.\n", str_error(ret));
Note: See TracChangeset for help on using the changeset viewer.