Merge branch 'pci/trivial' into next
* pci/trivial: PCI: Drop duplicate const in DECLARE_PCI_FIXUP_SECTION PCI: Drop bogus default from ARCH_SUPPORTS_MSI PCI: cpqphp: Remove unreachable path PCI: Remove bus number resource debug messages PCI/AER: Print completion message at KERN_INFO to match starting message PCI: Fix drivers/pci/pci.c kernel-doc warnings
This commit is contained in:
Коммит
6dabee73d4
|
@ -3,7 +3,6 @@
|
||||||
#
|
#
|
||||||
config ARCH_SUPPORTS_MSI
|
config ARCH_SUPPORTS_MSI
|
||||||
bool
|
bool
|
||||||
default n
|
|
||||||
|
|
||||||
config PCI_MSI
|
config PCI_MSI
|
||||||
bool "Message Signaled Interrupts (MSI and MSI-X)"
|
bool "Message Signaled Interrupts (MSI and MSI-X)"
|
||||||
|
|
|
@ -2890,27 +2890,8 @@ static int configure_new_function(struct controller *ctrl, struct pci_func *func
|
||||||
func->mem_head = mem_node;
|
func->mem_head = mem_node;
|
||||||
} else
|
} else
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
} else if ((temp_register & 0x0BL) == 0x04) {
|
|
||||||
/* Map memory */
|
|
||||||
base = temp_register & 0xFFFFFFF0;
|
|
||||||
base = ~base + 1;
|
|
||||||
|
|
||||||
dbg("CND: length = 0x%x\n", base);
|
|
||||||
mem_node = get_resource(&(resources->mem_head), base);
|
|
||||||
|
|
||||||
/* allocate the resource to the board */
|
|
||||||
if (mem_node) {
|
|
||||||
base = mem_node->base;
|
|
||||||
|
|
||||||
mem_node->next = func->mem_head;
|
|
||||||
func->mem_head = mem_node;
|
|
||||||
} else
|
|
||||||
return -ENOMEM;
|
|
||||||
} else if ((temp_register & 0x0BL) == 0x06) {
|
|
||||||
/* Those bits are reserved, we can't handle this */
|
|
||||||
return 1;
|
|
||||||
} else {
|
} else {
|
||||||
/* Requesting space below 1M */
|
/* Reserved bits or requesting space below 1M */
|
||||||
return NOT_ENOUGH_RESOURCES;
|
return NOT_ENOUGH_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1491,7 +1491,7 @@ void pci_pme_wakeup_bus(struct pci_bus *bus)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pci_wakeup - Wake up a PCI device
|
* pci_wakeup - Wake up a PCI device
|
||||||
* @dev: Device to handle.
|
* @pci_dev: Device to handle.
|
||||||
* @ign: ignored parameter
|
* @ign: ignored parameter
|
||||||
*/
|
*/
|
||||||
static int pci_wakeup(struct pci_dev *pci_dev, void *ign)
|
static int pci_wakeup(struct pci_dev *pci_dev, void *ign)
|
||||||
|
|
|
@ -509,14 +509,12 @@ static void do_recovery(struct pci_dev *dev, int severity)
|
||||||
"resume",
|
"resume",
|
||||||
report_resume);
|
report_resume);
|
||||||
|
|
||||||
dev_printk(KERN_DEBUG, &dev->dev,
|
dev_info(&dev->dev, "AER: Device recovery successful\n");
|
||||||
"AER driver successfully recovered\n");
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
/* TODO: Should kernel panic here? */
|
/* TODO: Should kernel panic here? */
|
||||||
dev_printk(KERN_DEBUG, &dev->dev,
|
dev_info(&dev->dev, "AER: Device recovery failed\n");
|
||||||
"AER driver didn't recover\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1748,11 +1748,6 @@ int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int bus_max)
|
||||||
"busn_res: can not insert %pR under %s%pR (conflicts with %s %pR)\n",
|
"busn_res: can not insert %pR under %s%pR (conflicts with %s %pR)\n",
|
||||||
res, pci_is_root_bus(b) ? "domain " : "",
|
res, pci_is_root_bus(b) ? "domain " : "",
|
||||||
parent_res, conflict->name, conflict);
|
parent_res, conflict->name, conflict);
|
||||||
else
|
|
||||||
dev_printk(KERN_DEBUG, &b->dev,
|
|
||||||
"busn_res: %pR is inserted under %s%pR\n",
|
|
||||||
res, pci_is_root_bus(b) ? "domain " : "",
|
|
||||||
parent_res);
|
|
||||||
|
|
||||||
return conflict == NULL;
|
return conflict == NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1504,7 +1504,7 @@ enum pci_fixup_pass {
|
||||||
/* Anonymous variables would be nice... */
|
/* Anonymous variables would be nice... */
|
||||||
#define DECLARE_PCI_FIXUP_SECTION(section, name, vendor, device, class, \
|
#define DECLARE_PCI_FIXUP_SECTION(section, name, vendor, device, class, \
|
||||||
class_shift, hook) \
|
class_shift, hook) \
|
||||||
static const struct pci_fixup const __pci_fixup_##name __used \
|
static const struct pci_fixup __pci_fixup_##name __used \
|
||||||
__attribute__((__section__(#section), aligned((sizeof(void *))))) \
|
__attribute__((__section__(#section), aligned((sizeof(void *))))) \
|
||||||
= { vendor, device, class, class_shift, hook };
|
= { vendor, device, class, class_shift, hook };
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче