Changeset 11dd29b in mainline for uspace/drv/uhci-hcd/uhci.c


Ignore:
Timestamp:
2011-03-22T15:26:35Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
408ebc5, e18e0d6
Parents:
b01995b
Message:

Using interrupts in OHCI and UHCI optional

Added option to HelenOS config to allow enforced usage of polling.

Shall bypass problems discussed on HelenOS mailing list recently:
http://lists.modry.cz/cgi-bin/private/helenos-devel/2011-March/007038.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/uhci.c

    rb01995b r11dd29b  
    175175
    176176        bool interrupts = false;
     177#ifdef CONFIG_USBHC_NO_INTERRUPTS
     178        usb_log_warning("Interrupts disabled in OS config, " \
     179            "falling back to polling.\n");
     180#else
    177181        ret = pci_enable_interrupts(device);
    178182        if (ret != EOK) {
    179                 usb_log_warning(
    180                     "Failed(%d) to enable interrupts, fall back to polling.\n",
    181                     ret);
     183                usb_log_warning("Failed to enable interrupts: %s.\n",
     184                    str_error(rc));
     185                usb_log_info("HW interrupts not available, " \
     186                    "falling back to polling.\n");
    182187        } else {
    183188                usb_log_debug("Hw interrupts enabled.\n");
    184189                interrupts = true;
    185190        }
     191#endif
    186192
    187193        instance->hc_fun = ddf_fun_create(device, fun_exposed, "uhci-hc");
Note: See TracChangeset for help on using the changeset viewer.