* [PATCH] define io_map_base for rc32434's PCI controller
@ 2008-11-11 23:16 Phil Sutter
2009-01-11 16:08 ` Florian Fainelli
2009-01-29 16:33 ` Ralf Baechle
0 siblings, 2 replies; 4+ messages in thread
From: Phil Sutter @ 2008-11-11 23:16 UTC (permalink / raw)
To: ralf; +Cc: linux-mips, florian
The code is rather based on trial-and-error than knowledge. Verified Via
Rhine functionality in PIO as well as MMIO mode.
Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Tested-by: Florian Fainelli <florian@openwrt.org>
---
arch/mips/pci/pci-rc32434.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/arch/mips/pci/pci-rc32434.c b/arch/mips/pci/pci-rc32434.c
index 1c2821e..71f7d27 100644
--- a/arch/mips/pci/pci-rc32434.c
+++ b/arch/mips/pci/pci-rc32434.c
@@ -205,6 +205,8 @@ static int __init rc32434_pcibridge_init(void)
static int __init rc32434_pci_init(void)
{
+ void __iomem *io_map_base;
+
pr_info("PCI: Initializing PCI\n");
ioport_resource.start = rc32434_res_pci_io1.start;
@@ -212,6 +214,15 @@ static int __init rc32434_pci_init(void)
rc32434_pcibridge_init();
+ io_map_base = ioremap(rc32434_res_pci_io1.start,
+ rc32434_res_pci_io1.end - rc32434_res_pci_io1.start + 1);
+
+ if (!io_map_base)
+ return -ENOMEM;
+
+ rc32434_controller.io_map_base =
+ (unsigned long)io_map_base - rc32434_res_pci_io1.start;
+
register_pci_controller(&rc32434_controller);
rc32434_sync();
--
1.5.6.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] define io_map_base for rc32434's PCI controller
2008-11-11 23:16 [PATCH] define io_map_base for rc32434's PCI controller Phil Sutter
@ 2009-01-11 16:08 ` Florian Fainelli
2009-01-11 17:44 ` Ralf Baechle
2009-01-29 16:33 ` Ralf Baechle
1 sibling, 1 reply; 4+ messages in thread
From: Florian Fainelli @ 2009-01-11 16:08 UTC (permalink / raw)
To: Phil Sutter; +Cc: ralf, linux-mips
Ralf,
This patch still applies to current linux-queue/linux.git, can you merge it
please ? Thanks a lot.
Le Wednesday 12 November 2008 00:16:04 Phil Sutter, vous avez écrit :
> The code is rather based on trial-and-error than knowledge. Verified Via
> Rhine functionality in PIO as well as MMIO mode.
>
> Signed-off-by: Phil Sutter <n0-1@freewrt.org>
> Tested-by: Florian Fainelli <florian@openwrt.org>
> ---
--
Best regards, Florian Fainelli
Email : florian@openwrt.org
http://openwrt.org
-------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] define io_map_base for rc32434's PCI controller
2009-01-11 16:08 ` Florian Fainelli
@ 2009-01-11 17:44 ` Ralf Baechle
0 siblings, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2009-01-11 17:44 UTC (permalink / raw)
To: Florian Fainelli; +Cc: Phil Sutter, linux-mips
On Sun, Jan 11, 2009 at 05:08:58PM +0100, Florian Fainelli wrote:
> This patch still applies to current linux-queue/linux.git, can you merge it
> please ? Thanks a lot.
I sent a pull request for the stuff in the upstream-linus tree earlier
today. To avoid possible confusion and I'll roll the next tree for him
only after he pulled this one.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] define io_map_base for rc32434's PCI controller
2008-11-11 23:16 [PATCH] define io_map_base for rc32434's PCI controller Phil Sutter
2009-01-11 16:08 ` Florian Fainelli
@ 2009-01-29 16:33 ` Ralf Baechle
1 sibling, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2009-01-29 16:33 UTC (permalink / raw)
To: Phil Sutter; +Cc: linux-mips, florian
On Wed, Nov 12, 2008 at 12:16:04AM +0100, Phil Sutter wrote:
> The code is rather based on trial-and-error than knowledge. Verified Via
> Rhine functionality in PIO as well as MMIO mode.
>
> Signed-off-by: Phil Sutter <n0-1@freewrt.org>
> Tested-by: Florian Fainelli <florian@openwrt.org>
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-29 16:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11 23:16 [PATCH] define io_map_base for rc32434's PCI controller Phil Sutter
2009-01-11 16:08 ` Florian Fainelli
2009-01-11 17:44 ` Ralf Baechle
2009-01-29 16:33 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox