* [PATCH 0/2] two minor cleanup patches for function pci_process_bridge_OF_ranges
@ 2013-05-17 6:58 Kevin Hao
2013-05-17 6:58 ` [PATCH 1/2] powerpc/pci: remove the stale comments of pci_process_bridge_OF_ranges Kevin Hao
2013-05-17 6:58 ` [PATCH 2/2] powerpc/pci: remove the unused variables in pci_process_bridge_OF_ranges Kevin Hao
0 siblings, 2 replies; 3+ messages in thread
From: Kevin Hao @ 2013-05-17 6:58 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc
Kevin Hao (2):
powerpc/pci: remove the stale comments of pci_process_bridge_OF_ranges
powerpc/pci: remove the unused variables in
pci_process_bridge_OF_ranges
arch/powerpc/kernel/pci-common.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
--
1.8.1.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] powerpc/pci: remove the stale comments of pci_process_bridge_OF_ranges
2013-05-17 6:58 [PATCH 0/2] two minor cleanup patches for function pci_process_bridge_OF_ranges Kevin Hao
@ 2013-05-17 6:58 ` Kevin Hao
2013-05-17 6:58 ` [PATCH 2/2] powerpc/pci: remove the unused variables in pci_process_bridge_OF_ranges Kevin Hao
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Hao @ 2013-05-17 6:58 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc
These comments already don't apply to the current code. So just remove
them.
Signed-off-by: Kevin Hao <haokexin@gmail.com>
---
arch/powerpc/kernel/pci-common.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 6053f03..8245d51 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -657,15 +657,6 @@ void pci_resource_to_user(const struct pci_dev *dev, int bar,
* ranges. However, some machines (thanks Apple !) tend to split their
* space into lots of small contiguous ranges. So we have to coalesce.
*
- * - We can only cope with all memory ranges having the same offset
- * between CPU addresses and PCI addresses. Unfortunately, some bridges
- * are setup for a large 1:1 mapping along with a small "window" which
- * maps PCI address 0 to some arbitrary high address of the CPU space in
- * order to give access to the ISA memory hole.
- * The way out of here that I've chosen for now is to always set the
- * offset based on the first resource found, then override it if we
- * have a different offset and the previous was set by an ISA hole.
- *
* - Some busses have IO space not starting at 0, which causes trouble with
* the way we do our IO resource renumbering. The code somewhat deals with
* it for 64 bits but I would expect problems on 32 bits.
--
1.8.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] powerpc/pci: remove the unused variables in pci_process_bridge_OF_ranges
2013-05-17 6:58 [PATCH 0/2] two minor cleanup patches for function pci_process_bridge_OF_ranges Kevin Hao
2013-05-17 6:58 ` [PATCH 1/2] powerpc/pci: remove the stale comments of pci_process_bridge_OF_ranges Kevin Hao
@ 2013-05-17 6:58 ` Kevin Hao
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Hao @ 2013-05-17 6:58 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc
The codes which ever used these two variables have gone. Throw away
them too.
Signed-off-by: Kevin Hao <haokexin@gmail.com>
---
arch/powerpc/kernel/pci-common.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 8245d51..50fabab 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -671,10 +671,9 @@ void pci_process_bridge_OF_ranges(struct pci_controller *hose,
int rlen;
int pna = of_n_addr_cells(dev);
int np = pna + 5;
- int memno = 0, isa_hole = -1;
+ int memno = 0;
u32 pci_space;
unsigned long long pci_addr, cpu_addr, pci_next, cpu_next, size;
- unsigned long long isa_mb = 0;
struct resource *res;
printk(KERN_INFO "PCI host bridge %s %s ranges:\n",
@@ -768,8 +767,6 @@ void pci_process_bridge_OF_ranges(struct pci_controller *hose,
}
/* Handles ISA memory hole space here */
if (pci_addr == 0) {
- isa_mb = cpu_addr;
- isa_hole = memno;
if (primary || isa_mem_base == 0)
isa_mem_base = cpu_addr;
hose->isa_mem_phys = cpu_addr;
--
1.8.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-17 6:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-17 6:58 [PATCH 0/2] two minor cleanup patches for function pci_process_bridge_OF_ranges Kevin Hao
2013-05-17 6:58 ` [PATCH 1/2] powerpc/pci: remove the stale comments of pci_process_bridge_OF_ranges Kevin Hao
2013-05-17 6:58 ` [PATCH 2/2] powerpc/pci: remove the unused variables in pci_process_bridge_OF_ranges Kevin Hao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).