soundwire: add debugfs support
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 21 Aug 2019 18:58:18 +0000 (13:58 -0500)
committerVinod Koul <vkoul@kernel.org>
Fri, 23 Aug 2019 06:31:02 +0000 (12:01 +0530)
commitbf03473d5bcc85fbe9533fa042f67809d8520c4e
treef7011ad3cc5026c8d2644ba7bede251510ec2d98
parente87cf35835d933d8c295cc946dae8547d1a6bd63
soundwire: add debugfs support

Add base debugfs mechanism for SoundWire bus by creating soundwire
root and master-N and slave-x hierarchy.

Also add SDW Slave SCP, DP0 and DP-N register debug file.

Registers not implemented will print as "XX"

Credits: this patch is based on an earlier internal contribution by
Vinod Koul, Sanyog Kale, Shreyas Nc and Hardik Shah.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Sanyog Kale <sanyog.r.kale@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190821185821.12690-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/Makefile
drivers/soundwire/bus.c
drivers/soundwire/bus.h
drivers/soundwire/bus_type.c
drivers/soundwire/debugfs.c [new file with mode: 0644]
drivers/soundwire/slave.c
include/linux/soundwire/sdw.h