Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1221171

Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel

From Petr Cvek <petr.cvek@tul.cz>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel
Date 2015-09-09 03:20 +0200
Message-ID <q6Cdj-4EY-7@gated-at.bofh.it> (permalink)
References <q4wc2-3Qp-7@gated-at.bofh.it> <q4wc2-3Qp-23@gated-at.bofh.it> <q6xGH-6yx-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Dne 8.9.2015 v 22:24 Petr Cvek napsal(a):
> 
> Did you defined resources somewhere? Actual resources are in "pxa_ir_resources" variable at:
> 
> 	http://lxr.free-electrons.com/source/arch/arm/mach-pxa/devices.c#L386
> 
> or this pdata should be moved into specific machine files?
> 

I tried to add following patch for new resources, but now it fails with:

[  141.534545] pxa2xx-ir pxa2xx-ir: can't request region for resource [mem 0x40700000-0x40700100]
[  141.534574] pxa2xx-ir pxa2xx-ir: resource stuart not defined
[  141.534656] pxa2xx-ir: probe of pxa2xx-ir failed with error -16

That's because STUART is allocated by normal UART driver at:

	http://lxr.free-electrons.com/source/arch/arm/mach-pxa/devices.c#L244

So somehow there must be configuration for STUART used with FICP and STUART alone (probably can be used for normal UART).


diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c
index 3543466..316ffa3 100644
--- a/arch/arm/mach-pxa/devices.c
+++ b/arch/arm/mach-pxa/devices.c
@@ -394,6 +394,26 @@ static struct resource pxa_ir_resources[] = {
 		.end    = IRQ_ICP,
 		.flags  = IORESOURCE_IRQ,
 	},
+	[2] = {
+		.start  = 0x40800000,
+		.end    = 0x40800000 + 0x100,
+		.flags  = IORESOURCE_MEM,
+	},
+	[3] = {
+		.start  = 0x40700000,
+		.end    = 0x40700000 + 0x100,
+		.flags  = IORESOURCE_MEM,
+	},
+	[4] = {
+		.start  = 17,
+		.end    = 17,
+		.flags  = IORESOURCE_DMA,
+	},
+	[5] = {
+		.start  = 18,
+		.end    = 18,
+		.flags  = IORESOURCE_DMA,
+	},
 };
 
 struct platform_device pxa_device_ficp = {
-- 
1.7.12.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Petr Cvek <petr.cvek@tul.cz> - 2015-09-08 22:30 +0200
  Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Petr Cvek <petr.cvek@tul.cz> - 2015-09-09 03:20 +0200
    Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Robert Jarzmik <robert.jarzmik@free.fr> - 2015-09-09 08:40 +0200
      Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Petr Cvek <petr.cvek@tul.cz> - 2015-09-10 08:20 +0200
        Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Robert Jarzmik <robert.jarzmik@free.fr> - 2015-09-10 13:20 +0200
          Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Petr Cvek <petr.cvek@tul.cz> - 2015-09-11 03:50 +0200
            Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Robert Jarzmik <robert.jarzmik@free.fr> - 2015-09-11 08:30 +0200
              Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Petr Cvek <petr.cvek@tul.cz> - 2015-09-12 06:20 +0200
                Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Robert Jarzmik <robert.jarzmik@free.fr> - 2015-09-12 13:10 +0200
                Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel Petr Cvek <petr.cvek@tul.cz> - 2015-09-13 04:50 +0200

csiph-web