Ticket #2083: echi_handover.diff

File echi_handover.diff, 1.1 KB (added by vegardw, 9 years ago)

Attaching the changes I did as a diff

  • src/add-ons/kernel/busses/usb/ehci.cpp

     
    181181        uint32 legacySupport = sPCIModule->read_pci_config(fPCIInfo->bus,
    182182            fPCIInfo->device, fPCIInfo->function, extendedCapPointer, 4);
    183183        if ((legacySupport & EHCI_LEGSUP_CAPID_MASK) == EHCI_LEGSUP_CAPID) {
    184             if (legacySupport & EHCI_LEGSUP_BIOSOWNED)
     184            if (legacySupport & EHCI_LEGSUP_BIOSOWNED) {
    185185                TRACE_ALWAYS("the host controller is bios owned\n");
    186186
    187             TRACE_ALWAYS("claiming ownership of the host controller\n");
    188             sPCIModule->write_pci_config(fPCIInfo->bus, fPCIInfo->device,
    189                 fPCIInfo->function, extendedCapPointer + 3, 1, 1);
     187                TRACE_ALWAYS("claiming ownership of the host controller\n");
     188                sPCIModule->write_pci_config(fPCIInfo->bus, fPCIInfo->device,
     189                    fPCIInfo->function, extendedCapPointer + 3, 1, 1);
     190            }
    190191
    191192            for (int32 i = 0; i < 20; i++) {
    192193                legacySupport = sPCIModule->read_pci_config(fPCIInfo->bus,