Re: [PATCH 5/8] uio: fix dmem_region_start computation

2016-07-15 Thread Jan Viktorin
On Fri, 15 Jul 2016 20:32:24 +0900 Greg Kroah-Hartman wrote: > On Fri, Jul 15, 2016 at 02:34:00PM +0530, Anup Patel wrote: > > From: Jan Viktorin > > > > The variable i contains a total number of resources (including > > IORESOURCE_IRQ).

Re: [PATCH 5/8] uio: fix dmem_region_start computation

2016-07-15 Thread Greg Kroah-Hartman
On Fri, Jul 15, 2016 at 02:34:00PM +0530, Anup Patel wrote: > From: Jan Viktorin > > The variable i contains a total number of resources (including > IORESOURCE_IRQ). However, we want the dmem_region_start to point > after the last resource of type IORESOURCE_MEM. The

[PATCH 5/8] uio: fix dmem_region_start computation

2016-07-15 Thread Anup Patel
From: Jan Viktorin The variable i contains a total number of resources (including IORESOURCE_IRQ). However, we want the dmem_region_start to point after the last resource of type IORESOURCE_MEM. The original behaviour leads (very likely) to skipping several UIO mapping