diff options
Diffstat (limited to 'recipes-kernel/linux/linux-hierofalcon/412-4-styx-linux-tracking.git-d1072e3d950aa6e348313a31395091003611f794.patch')
-rw-r--r-- | recipes-kernel/linux/linux-hierofalcon/412-4-styx-linux-tracking.git-d1072e3d950aa6e348313a31395091003611f794.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-hierofalcon/412-4-styx-linux-tracking.git-d1072e3d950aa6e348313a31395091003611f794.patch b/recipes-kernel/linux/linux-hierofalcon/412-4-styx-linux-tracking.git-d1072e3d950aa6e348313a31395091003611f794.patch new file mode 100644 index 0000000..51f348e --- /dev/null +++ b/recipes-kernel/linux/linux-hierofalcon/412-4-styx-linux-tracking.git-d1072e3d950aa6e348313a31395091003611f794.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From a0f4d0a183159646da9eacd6645c9c8de1fe958c Mon Sep 17 00:00:00 2001 | ||
2 | From: Adrian Calianu <adrian.calianu@enea.com> | ||
3 | Date: Mon, 10 Aug 2015 18:05:08 +0200 | ||
4 | Subject: [PATCH] [PATCH] probe-only | ||
5 | |||
6 | From: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> | ||
7 | Date: Tue, 20 Jan 2015 19:48:59 -0600 | ||
8 | |||
9 | Signed-off-by: Adrian Calianu <adrian.calianu@enea.com> | ||
10 | --- | ||
11 | drivers/pci/pci.c | 8 +++++++- | ||
12 | drivers/pci/setup-bus.c | 3 ++- | ||
13 | 2 files changed, 9 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c | ||
16 | index acc4b6e..221f47f 100644 | ||
17 | --- a/drivers/pci/pci.c | ||
18 | +++ b/drivers/pci/pci.c | ||
19 | @@ -1198,7 +1198,13 @@ EXPORT_SYMBOL_GPL(pci_load_and_free_saved_state); | ||
20 | |||
21 | int __weak pcibios_enable_device(struct pci_dev *dev, int bars) | ||
22 | { | ||
23 | - return pci_enable_resources(dev, bars); | ||
24 | + int err; | ||
25 | + | ||
26 | + if (!pci_has_flag(PCI_PROBE_ONLY)) { | ||
27 | + err = pci_enable_resources(dev, bars); | ||
28 | + if (err < 0) | ||
29 | + return err; | ||
30 | + } | ||
31 | } | ||
32 | |||
33 | static int do_pci_enable_device(struct pci_dev *dev, int bars) | ||
34 | diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c | ||
35 | index 508cc56..029222c 100644 | ||
36 | --- a/drivers/pci/setup-bus.c | ||
37 | +++ b/drivers/pci/setup-bus.c | ||
38 | @@ -1737,7 +1737,8 @@ void __init pci_assign_unassigned_resources(void) | ||
39 | struct pci_bus *root_bus; | ||
40 | |||
41 | list_for_each_entry(root_bus, &pci_root_buses, node) | ||
42 | - pci_assign_unassigned_root_bus_resources(root_bus); | ||
43 | + if (!pci_has_flag(PCI_PROBE_ONLY)) | ||
44 | + pci_assign_unassigned_root_bus_resources(root_bus); | ||
45 | } | ||
46 | |||
47 | void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge) | ||
48 | -- | ||
49 | 1.9.1 | ||
50 | |||