coresight-stm: support mmapping channel regions with mmio_addr
authorChunyan Zhang <zhang.chunyan@linaro.org>
Thu, 25 Aug 2016 21:18:52 +0000 (15:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 11:05:42 +0000 (13:05 +0200)
commitf3864d85624a80222c8e01caa112554c998d922b
treebfcaa7d4ac45bb4cabb4c616b11ef3e353669a43
parentb8392153721c83de4e5d47ee455bbfefd0c8259e
coresight-stm: support mmapping channel regions with mmio_addr

CoreSight STM device allows direct mapping of the channel regions to
userspace for zero-copy writing. To support this ability, the STM
framework has provided a hook 'mmio_addr', this patch just implemented
this hook for CoreSight STM.

This patch also added an item into 'channel_space' to save the physical
base address of channel region which mmap operation needs to know.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-stm.c