uio_pdrv_genirq: Allow use with non-page-aligned memory resources
authorEsben Haabendal <esben@geanix.com>
Wed, 1 Jul 2020 14:56:59 +0000 (16:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jul 2020 09:01:50 +0000 (11:01 +0200)
commit7aca462b133300c16213e214bb96e516f1f2784e
tree52f190a96b58323f6a6f446cafe9ecaaac209b44
parent52f944ee5d39b6b93797480f9181d3d40ed0d07b
uio_pdrv_genirq: Allow use with non-page-aligned memory resources

Similar to the changes made in 270579d95f82 ("uio_mf624: Align memory
regions to page size and set correct offsets"), this will allow
uio_pdrv_genirq devices to expose memory regions that is not page-aligned,
requiring the users to respect the offset sysfs attribute (as implemented
in libuio).

Signed-off-by: Esben Haabendal <esben@geanix.com>
Link: https://lore.kernel.org/r/20200701145659.3978-4-esben@geanix.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pdrv_genirq.c