XHCI/UHCI USB: forgot to get the x86 PCI module.
This commit is contained in:
@@ -1973,6 +1973,14 @@ UHCI::AddTo(Stack *stack)
|
|||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Try to get the PCI x86 module as well so we can enable possible MSIs.
|
||||||
|
if (sPCIx86Module == NULL && get_module(B_PCI_X86_MODULE_NAME,
|
||||||
|
(module_info **)&sPCIx86Module) != B_OK) {
|
||||||
|
// If it isn't there, that's not critical though.
|
||||||
|
TRACE_MODULE_ERROR("failed to get pci x86 module\n");
|
||||||
|
sPCIx86Module = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
for (int32 i = 0; sPCIModule->get_nth_pci_info(i, item) >= B_OK; i++) {
|
for (int32 i = 0; sPCIModule->get_nth_pci_info(i, item) >= B_OK; i++) {
|
||||||
|
|
||||||
if (item->class_base == PCI_serial_bus && item->class_sub == PCI_usb
|
if (item->class_base == PCI_serial_bus && item->class_sub == PCI_usb
|
||||||
|
|||||||
@@ -690,6 +690,14 @@ XHCI::AddTo(Stack *stack)
|
|||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Try to get the PCI x86 module as well so we can enable possible MSIs.
|
||||||
|
if (sPCIx86Module == NULL && get_module(B_PCI_X86_MODULE_NAME,
|
||||||
|
(module_info **)&sPCIx86Module) != B_OK) {
|
||||||
|
// If it isn't there, that's not critical though.
|
||||||
|
TRACE_MODULE_ERROR("failed to get pci x86 module\n");
|
||||||
|
sPCIx86Module = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
for (int32 i = 0; sPCIModule->get_nth_pci_info(i, item) >= B_OK; i++) {
|
for (int32 i = 0; sPCIModule->get_nth_pci_info(i, item) >= B_OK; i++) {
|
||||||
if (item->class_base == PCI_serial_bus && item->class_sub == PCI_usb
|
if (item->class_base == PCI_serial_bus && item->class_sub == PCI_usb
|
||||||
&& item->class_api == PCI_usb_xhci) {
|
&& item->class_api == PCI_usb_xhci) {
|
||||||
|
|||||||
Reference in New Issue
Block a user