[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <55EF43E9.2040000@tul.cz>
Date: Tue, 8 Sep 2015 22:24:09 +0200
From: Petr Cvek <petr.cvek@....cz>
To: Robert Jarzmik <robert.jarzmik@...e.fr>,
Samuel Ortiz <samuel@...tiz.org>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel
Dne 3.9.2015 v 08:20 Robert Jarzmik napsal(a):
> Convert the pxa IRDA driver to readl and writel primitives, and remove
> another set of direct registers access. This leaves only the DMA
> registers access, which will be dealt with dmaengine conversion.
Test on magician (nonvanilla, but there should not be any collision).
>
> - err = request_mem_region(__PREG(STUART), 0x24, "IrDA") ? 0 : -EBUSY;
> - if (err)
> - goto err_mem_1;
> + res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> + ficp = devm_ioremap_resource(&pdev->dev, res);
> + if (IS_ERR(ficp)) {
> + dev_err(&pdev->dev, "resource ficp not defined\n");
Fails around here with:
[ 4245.368764] pxa2xx-ir pxa2xx-ir: invalid resource
[ 4245.369191] pxa2xx-ir pxa2xx-ir: resource ficp not defined
[ 4245.369364] pxa2xx-ir: probe of pxa2xx-ir failed with error -22
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?
Cheers,
Petr
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists