* [PATCH][MIPS] add initialize vr41xx PCI io_map_base
@ 2008-06-16 13:51 Yoichi Yuasa
2008-06-16 14:43 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Yoichi Yuasa @ 2008-06-16 13:51 UTC (permalink / raw)
To: Ralf Baechle; +Cc: yoichi_yuasa, linux-mips
Add initialize vr41xx PCI io_map_base
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
diff -pruN -X /home/yuasa/Memo/dontdiff linux-orig/arch/mips/pci/pci-vr41xx.c linux/arch/mips/pci/pci-vr41xx.c
--- linux-orig/arch/mips/pci/pci-vr41xx.c 2008-06-16 12:32:30.875464524 +0900
+++ linux/arch/mips/pci/pci-vr41xx.c 2008-06-16 15:26:52.520088759 +0900
@@ -3,7 +3,7 @@
*
* Copyright (C) 2001-2003 MontaVista Software Inc.
* Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>
- * Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
+ * Copyright (C) 2004-2008 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
* Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)
*
* This program is free software; you can redistribute it and/or modify
@@ -300,6 +300,18 @@ static int __init vr41xx_pciu_init(void)
ioport_resource.end = IO_PORT_RESOURCE_END;
}
+ if (setup->master_io) {
+ void __iomem *io_map_base;
+ struct resource *res = vr41xx_pci_controller.io_resource;
+ master = setup->master_io;
+ io_map_base = ioremap(master->bus_base_address,
+ res->end - res->start + 1);
+ if (!io_map_base)
+ return -EBUSY;
+
+ vr41xx_pci_controller.io_map_base = (unsigned long)io_map_base;
+ }
+
register_pci_controller(&vr41xx_pci_controller);
return 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][MIPS] add initialize vr41xx PCI io_map_base
2008-06-16 13:51 [PATCH][MIPS] add initialize vr41xx PCI io_map_base Yoichi Yuasa
@ 2008-06-16 14:43 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2008-06-16 14:43 UTC (permalink / raw)
To: Yoichi Yuasa; +Cc: linux-mips
On Mon, Jun 16, 2008 at 10:51:08PM +0900, Yoichi Yuasa wrote:
Applied, Thanks!
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-16 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 13:51 [PATCH][MIPS] add initialize vr41xx PCI io_map_base Yoichi Yuasa
2008-06-16 14:43 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox