* [PATCH] uio_pdrv: set memory mapping name
@ 2012-11-09 6:06 Manuel Traut
2012-11-11 12:43 ` Hans J. Koch
0 siblings, 1 reply; 2+ messages in thread
From: Manuel Traut @ 2012-11-09 6:06 UTC (permalink / raw)
To: linux-kernel; +Cc: Hans J. Koch, Greg Kroah-Hartman, Stefan Staedtler
If uio_pdrv[_genirq] is used, the uio maps have currently no name set.
This patch sets the uio_mem name to the name of the memory resource.
Signed-off-by: Manuel Traut <manut@linutronix.de>
Reported-by: Stefan Staedtler <stefan.staedtler@siemens.com>
Tested-by: Stefan Staedtler <stefan.staedtler@siemens.com>
diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
index 42202cd..ac988ce 100644
--- a/drivers/uio/uio_pdrv_genirq.c
+++ b/drivers/uio/uio_pdrv_genirq.c
@@ -172,6 +172,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
uiomem->memtype = UIO_MEM_PHYS;
uiomem->addr = r->start;
uiomem->size = resource_size(r);
+ uiomem->name = r->name;
++uiomem;
}
diff --git a/drivers/uio/uio_pdrv.c b/drivers/uio/uio_pdrv.c
index 72d3646..39be9e0 100644
--- a/drivers/uio/uio_pdrv.c
+++ b/drivers/uio/uio_pdrv.c
@@ -60,6 +60,7 @@ static int uio_pdrv_probe(struct platform_device *pdev)
uiomem->memtype = UIO_MEM_PHYS;
uiomem->addr = r->start;
uiomem->size = resource_size(r);
+ uiomem->name = r->name;
++uiomem;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] uio_pdrv: set memory mapping name
2012-11-09 6:06 [PATCH] uio_pdrv: set memory mapping name Manuel Traut
@ 2012-11-11 12:43 ` Hans J. Koch
0 siblings, 0 replies; 2+ messages in thread
From: Hans J. Koch @ 2012-11-11 12:43 UTC (permalink / raw)
To: Manuel Traut
Cc: linux-kernel, Hans J. Koch, Greg Kroah-Hartman, Stefan Staedtler,
Magnus Damm, Uwe Kleine-Koenig
On Fri, Nov 09, 2012 at 07:06:40AM +0100, Manuel Traut wrote:
> If uio_pdrv[_genirq] is used, the uio maps have currently no name set.
> This patch sets the uio_mem name to the name of the memory resource.
Looks fine to me. I added the driver's authors to Cc.
Signed-off-by: "Hans J. Koch" <hjk@hansjkoch.de>
>
> Signed-off-by: Manuel Traut <manut@linutronix.de>
> Reported-by: Stefan Staedtler <stefan.staedtler@siemens.com>
> Tested-by: Stefan Staedtler <stefan.staedtler@siemens.com>
>
> diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
> index 42202cd..ac988ce 100644
> --- a/drivers/uio/uio_pdrv_genirq.c
> +++ b/drivers/uio/uio_pdrv_genirq.c
> @@ -172,6 +172,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
> uiomem->memtype = UIO_MEM_PHYS;
> uiomem->addr = r->start;
> uiomem->size = resource_size(r);
> + uiomem->name = r->name;
> ++uiomem;
> }
>
> diff --git a/drivers/uio/uio_pdrv.c b/drivers/uio/uio_pdrv.c
> index 72d3646..39be9e0 100644
> --- a/drivers/uio/uio_pdrv.c
> +++ b/drivers/uio/uio_pdrv.c
> @@ -60,6 +60,7 @@ static int uio_pdrv_probe(struct platform_device *pdev)
> uiomem->memtype = UIO_MEM_PHYS;
> uiomem->addr = r->start;
> uiomem->size = resource_size(r);
> + uiomem->name = r->name;
> ++uiomem;
> }
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-11 12:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-09 6:06 [PATCH] uio_pdrv: set memory mapping name Manuel Traut
2012-11-11 12:43 ` Hans J. Koch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox