spi: bcm2835: add driver stats to debugfs
authorMartin Sperl <kernel@martin.sperl.org>
Tue, 23 Apr 2019 20:15:13 +0000 (20:15 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 8 May 2019 08:59:47 +0000 (17:59 +0900)
commit154f7da56f1ecba42021d550c9e8432ac8d32c26
tree184739c135821c9e1456a4a7797e903c8ca44b57
parentff245d90ebed8d4da6751dfee1bc76e4a5e94257
spi: bcm2835: add driver stats to debugfs

To estimate efficiency add statistics on transfer types
(polling, interrupt and dma) used to debugfs.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Changelog:
  V1 -> V2: applied feedback by Stefan Wahren
            reorganized patchset
    added extra rational, descriptions
    fixed compile issue when CONFIG_DEBUG_FS is unset
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c