Skip to content

Commit 038306a

Browse files
udaymbvinodkoul
authored andcommitted
soundwire: debugfs: Add missing SCP registers
SCP registers needs to be updated to accommodate additional register entries as per the Soundwire 1.2 specification. Signed-off-by: Uday M Bhat <[email protected]> Signed-off-by: Yong Zhi <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 0cbcced commit 038306a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

drivers/soundwire/debugfs.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,17 @@ static int sdw_slave_reg_show(struct seq_file *s_file, void *data)
8686

8787
/* SCP registers */
8888
ret += scnprintf(buf + ret, RD_BUF - ret, "\nSCP\n");
89-
for (i = SDW_SCP_INT1; i <= SDW_SCP_BANKDELAY; i++)
89+
for (i = SDW_SCP_INT1; i <= SDW_SCP_BUS_CLOCK_BASE; i++)
9090
ret += sdw_sprintf(slave, buf, ret, i);
9191
for (i = SDW_SCP_DEVID_0; i <= SDW_SCP_DEVID_5; i++)
9292
ret += sdw_sprintf(slave, buf, ret, i);
93+
for (i = SDW_SCP_FRAMECTRL_B0; i <= SDW_SCP_BUSCLOCK_SCALE_B0; i++)
94+
ret += sdw_sprintf(slave, buf, ret, i);
95+
for (i = SDW_SCP_FRAMECTRL_B1; i <= SDW_SCP_BUSCLOCK_SCALE_B1; i++)
96+
ret += sdw_sprintf(slave, buf, ret, i);
97+
for (i = SDW_SCP_PHY_OUT_CTRL_0; i <= SDW_SCP_PHY_OUT_CTRL_7; i++)
98+
ret += sdw_sprintf(slave, buf, ret, i);
99+
93100

94101
/*
95102
* SCP Bank 0/1 registers are read-only and cannot be

0 commit comments

Comments
 (0)