]> git.baikalelectronics.ru Git - kernel.git/commit
spi: hisi-kunpeng: Add debugfs support
authorJay Fang <f.fangjian@huawei.com>
Fri, 4 Jun 2021 06:55:18 +0000 (14:55 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jun 2021 15:24:12 +0000 (16:24 +0100)
commitd234403d9c64eaa10099563fa76df8c5def32f39
treeb342cf64cb1d8d60e9c7561a5bef704234c07752
parentb0ef0505cab2c68e35f65c637ca2b626d070960a
spi: hisi-kunpeng: Add debugfs support

This patch uses debugfs_regset32 interface to create the registers dump
file. Use it instead of creating a generic debugfs file with manually
written read callback function.

With these entries, users can check all the SPI controller registers
during run time.

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1622789718-13977-1-git-send-email-f.fangjian@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-hisi-kunpeng.c