probe.c (ffb1e76f4f32d2b8ea4189df0484980370476395) | probe.c (06dc660e6eb8817c4c379d2ca290ae0b3f77c69f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * PCI detection and setup code 4 */ 5 6#include <linux/kernel.h> 7#include <linux/delay.h> 8#include <linux/init.h> --- 2436 unchanged lines hidden (view full) --- 2445 * devices. Firmware interfaces that can select the MSI domain on a 2446 * per-device basis should be called from here. 2447 */ 2448static struct irq_domain *pci_dev_msi_domain(struct pci_dev *dev) 2449{ 2450 struct irq_domain *d; 2451 2452 /* | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * PCI detection and setup code 4 */ 5 6#include <linux/kernel.h> 7#include <linux/delay.h> 8#include <linux/init.h> --- 2436 unchanged lines hidden (view full) --- 2445 * devices. Firmware interfaces that can select the MSI domain on a 2446 * per-device basis should be called from here. 2447 */ 2448static struct irq_domain *pci_dev_msi_domain(struct pci_dev *dev) 2449{ 2450 struct irq_domain *d; 2451 2452 /* |
2453 * If a domain has been set through the pcibios_add_device() | 2453 * If a domain has been set through the pcibios_device_add() |
2454 * callback, then this is the one (platform code knows best). 2455 */ 2456 d = dev_get_msi_domain(&dev->dev); 2457 if (d) 2458 return d; 2459 2460 /* 2461 * Let's see if we have a firmware interface able to provide --- 51 unchanged lines hidden (view full) --- 2513 /* 2514 * Add the device to our list of discovered devices 2515 * and the bus list for fixup functions, etc. 2516 */ 2517 down_write(&pci_bus_sem); 2518 list_add_tail(&dev->bus_list, &bus->devices); 2519 up_write(&pci_bus_sem); 2520 | 2454 * callback, then this is the one (platform code knows best). 2455 */ 2456 d = dev_get_msi_domain(&dev->dev); 2457 if (d) 2458 return d; 2459 2460 /* 2461 * Let's see if we have a firmware interface able to provide --- 51 unchanged lines hidden (view full) --- 2513 /* 2514 * Add the device to our list of discovered devices 2515 * and the bus list for fixup functions, etc. 2516 */ 2517 down_write(&pci_bus_sem); 2518 list_add_tail(&dev->bus_list, &bus->devices); 2519 up_write(&pci_bus_sem); 2520 |
2521 ret = pcibios_add_device(dev); | 2521 ret = pcibios_device_add(dev); |
2522 WARN_ON(ret < 0); 2523 2524 /* Set up MSI IRQ domain */ 2525 pci_set_msi_domain(dev); 2526 2527 /* Notifier could use PCI capabilities */ 2528 dev->match_driver = false; 2529 ret = device_add(&dev->dev); --- 800 unchanged lines hidden --- | 2522 WARN_ON(ret < 0); 2523 2524 /* Set up MSI IRQ domain */ 2525 pci_set_msi_domain(dev); 2526 2527 /* Notifier could use PCI capabilities */ 2528 dev->match_driver = false; 2529 ret = device_add(&dev->dev); --- 800 unchanged lines hidden --- |