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


Ignore:
Timestamp:
2013-12-31T23:11:00Z (10 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/ehci/ehci.c

    re3a07bba rba4a03a5  
    9696        addr_range_t regs = hw_res.mem_ranges.ranges[0];
    9797        const int irq = hw_res.irqs.irqs[0];
    98         hw_res_list_parsed_clean(&hw_res);
    99 
    100         usb_log_debug("Memory mapped regs at %p (size %zu), IRQ %d.\n",
    101             RNGABSPTR(regs), RNGSZ(regs), irq);
    10298
    10399        /* Initialize generic HCD driver */
     
    107103                usb_log_error("Failed to setup generic hcd structures: %s.",
    108104                    str_error(ret));
     105                hw_res_list_parsed_clean(&hw_res);
    109106                return ret;
    110107        }
     
    113110        if (!hc) {
    114111                usb_log_error("Failed to allocate driver structure.\n");
     112                hw_res_list_parsed_clean(&hw_res);
    115113                ret = ENOMEM;
    116114                goto ddf_hc_clean;
     
    119117        /* Try to enable interrupts */
    120118        bool interrupts = false;
    121         ret = hcd_ddf_setup_interrupts(device, &regs, irq, irq_handler,
     119        ret = hcd_ddf_setup_interrupts(device, &hw_res, irq_handler,
    122120            hc_gen_irq_code);
    123121        if (ret != EOK) {
     
    131129        /* Initialize EHCI HC */
    132130        ret = hc_init(hc, &regs, interrupts);
     131        hw_res_list_parsed_clean(&hw_res);
    133132        if (ret != EOK) {
    134133                usb_log_error("Failed to init hc: %s.\n", str_error(ret));
Note: See TracChangeset for help on using the changeset viewer.