Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel
From: Robert Jarzmik
Date: Wed Sep 09 2015 - 02:30:31 EST
Petr Cvek <petr.cvek@xxxxxx> writes:
> 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:
I have them in patch [1], which is exactly the patch you have made yourself.
> 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).
That's because you have to remove from magician.c:
pxa_set_stuart_info(NULL);
Cheers.
--
Robert
[1]