Re: [PATCH 08/12] misc: Flexcard misc device support

From: Arnd Bergmann
Date: Wed Dec 14 2016 - 03:43:05 EST


On Wednesday, December 14, 2016 1:11:49 AM CET Holger Dengler wrote:
> The Flexcard PCI BAR0 contain registers for configuration but also
> for informational purpose like error counter, statistical information
> and some timestamps. The read-only mmap of the misc device offers the
> userspace a fast access to these registers.
>
> Signed-off-by: Benedikt Spranger <b.spranger@xxxxxxxxxxxxx>
> Signed-off-by: Holger Dengler <dengler@xxxxxxxxxxxxx>
> cc: Arnd Bergmann <arnd@xxxxxxxx>
> cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> ---
> drivers/mfd/Kconfig | 1 +
> drivers/misc/Kconfig | 6 ++
> drivers/misc/Makefile | 1 +
> drivers/misc/flexcard_misc.c | 165 +++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 173 insertions(+)
> create mode 100644 drivers/misc/flexcard_misc.c
>

Maybe this could fit better in drivers/uio/ than drivers/misc? It
seems to only export a memory mapped device.

Arnd