Changeset 65f77f4 in mainline


Ignore:
Timestamp:
2013-09-10T17:21:33Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86733f3
Parents:
39b13f8
Message:

Do not add interrupt for devices that do not use an interrupt pin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/pci/pciintel/pci.c

    r39b13f8 r65f77f4  
    552552{
    553553        uint8_t irq = pci_conf_read_8(fun, PCI_BRIDGE_INT_LINE);
    554         if (irq != 0xff)
     554        uint8_t pin = pci_conf_read_8(fun, PCI_BRIDGE_INT_PIN);
     555
     556        if (pin != 0 && irq != 0xff)
    555557                pci_add_interrupt(fun, irq);
    556558}
Note: See TracChangeset for help on using the changeset viewer.