kernel-ark/drivers/uio
Michal Sojka 270579d95f uio_mf624: Align memory regions to page size and set correct offsets
mf624 card has its registers not aligned to pages. Since commit
b655028795 ("uio: we cannot mmap unaligned page contents") mmap()ing
mf624 registers fails, because now the uio drivers must set
uio_mem->addr to be page-aligned.

We align the address here and set the newly introduced offs field to
the offset of the mf264 registers within the page so that userspace
can find the address of the mmap()ed register by reading
/sys/class/uio/uio?/maps/map?/offset.

Tested with real mf624 card.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-08 18:13:28 +02:00
..
Kconfig uio-hv-generic: new userspace i/o driver for VMBus 2016-12-06 11:52:49 +01:00
Makefile uio-hv-generic: new userspace i/o driver for VMBus 2016-12-06 11:52:49 +01:00
uio_aec.c
uio_cif.c
uio_dmem_genirq.c
uio_fsl_elbc_gpcm.c
uio_hv_generic.c vmbus: add direct isr callback mode 2017-02-14 10:20:35 -08:00
uio_mf624.c uio_mf624: Align memory regions to page size and set correct offsets 2017-04-08 18:13:28 +02:00
uio_netx.c
uio_pci_generic.c
uio_pdrv_genirq.c
uio_pruss.c uio: pruss: add clk_disable() 2016-11-29 20:43:12 +01:00
uio_sercos3.c
uio.c uio: Allow handling of non page-aligned memory regions 2017-04-08 18:13:27 +02:00