kernel: bump to 4.4.39
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 0055-PCI-designware-Remove-PCI_PROBE_ONLY-handling.patch
1 From ee2a430c1691d0bac3098e8db3c29d8f023b04c2 Mon Sep 17 00:00:00 2001
2 From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
3 Date: Fri, 29 Jan 2016 11:29:32 +0000
4 Subject: [PATCH 55/70] PCI: designware: Remove PCI_PROBE_ONLY handling
5
6 The PCIe designware host driver is not used in system configurations
7 requiring the PCI_PROBE_ONLY flag to be set to prevent resources
8 assignment, therefore the driver code handling the flag can be removed
9 from the kernel.
10
11 Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
12 Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
13 Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
14 Acked-by: Jingoo Han Jingoo Han <jingoohan1@gmail.com>
15 Cc: Arnd Bergmann <arnd@arndb.de>
16 Cc: Gabriele Paoloni <gabriele.paoloni@huawei.com>
17 Cc: Zhou Wang <wangzhou1@hisilicon.com>
18 ---
19 drivers/pci/host/pcie-designware.c | 10 ++++------
20 1 file changed, 4 insertions(+), 6 deletions(-)
21
22 --- a/drivers/pci/host/pcie-designware.c
23 +++ b/drivers/pci/host/pcie-designware.c
24 @@ -556,13 +556,11 @@ int dw_pcie_host_init(struct pcie_port *
25 pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci);
26 #endif
27
28 - if (!pci_has_flag(PCI_PROBE_ONLY)) {
29 - pci_bus_size_bridges(bus);
30 - pci_bus_assign_resources(bus);
31 + pci_bus_size_bridges(bus);
32 + pci_bus_assign_resources(bus);
33
34 - list_for_each_entry(child, &bus->children, node)
35 - pcie_bus_configure_settings(child);
36 - }
37 + list_for_each_entry(child, &bus->children, node)
38 + pcie_bus_configure_settings(child);
39
40 pci_bus_add_devices(bus);
41 return 0;