hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/microblaze/pci/pci-common.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Contains common pci routines for ALL ppc platform
34 * (based on pci_32.c and pci_64.c)
....@@ -9,18 +10,13 @@
910 * Rework, based on alpha PCI code.
1011 *
1112 * Common pmac/prep/chrp pci routines. -- Cort
12
- *
13
- * This program is free software; you can redistribute it and/or
14
- * modify it under the terms of the GNU General Public License
15
- * as published by the Free Software Foundation; either version
16
- * 2 of the License, or (at your option) any later version.
1713 */
1814
1915 #include <linux/kernel.h>
2016 #include <linux/pci.h>
2117 #include <linux/string.h>
2218 #include <linux/init.h>
23
-#include <linux/bootmem.h>
19
+#include <linux/memblock.h>
2420 #include <linux/mm.h>
2521 #include <linux/shmem_fs.h>
2622 #include <linux/list.h>
....@@ -437,10 +433,6 @@
437433 pr_debug("Parsing ranges property...\n");
438434 for_each_of_pci_range(&parser, &range) {
439435 /* Read next ranges element */
440
- pr_debug("pci_space: 0x%08x pci_addr:0x%016llx ",
441
- range.pci_space, range.pci_addr);
442
- pr_debug("cpu_addr:0x%016llx size:0x%016llx\n",
443
- range.cpu_addr, range.size);
444436
445437 /* If we failed translation or got a zero-sized region
446438 * (some FW try to feed us with non sensical zero sized regions
....@@ -490,7 +482,7 @@
490482 pr_info(" MEM 0x%016llx..0x%016llx -> 0x%016llx %s\n",
491483 range.cpu_addr, range.cpu_addr + range.size - 1,
492484 range.pci_addr,
493
- (range.pci_space & 0x40000000) ?
485
+ (range.flags & IORESOURCE_PREFETCH) ?
494486 "Prefetch" : "");
495487
496488 /* We support only 3 memory ranges */
....@@ -1125,4 +1117,3 @@
11251117 {
11261118 return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap);
11271119 }
1128
-