History

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.

Pierre-Louis Bossart committed 7 years ago

Commit bf034731 parent e87cf357 files · +189 −0Browse files

Showing the changes to include/linux (1 of 7 files). Show all

Unified · Split

include/linux/soundwire/sdw.h+8−0
@@ -542,6 +542,7 @@ struct sdw_slave_ops { · 541 unmodified lines
542542 * @bus: Bus handle
543543 * @ops: Slave callback ops
544544 * @prop: Slave properties
545+ * @debugfs: Slave debugfs
545546 * @node: node for bus list
546547 * @port_ready: Port ready completion flag for each Slave port
547548 * @dev_num: Device Number assigned by Bus
@@ -553,6 +554,9 @@ struct sdw_slave { · 5 unmodified lines
553554 struct sdw_bus *bus;
554555 const struct sdw_slave_ops *ops;
555556 struct sdw_slave_prop prop;
557+#ifdef CONFIG_DEBUG_FS
558+ struct dentry *debugfs;
559+#endif
556560 struct list_head node;
557561 struct completion *port_ready;
558562 u16 dev_num;
@@ -729,6 +733,7 @@ struct sdw_master_ops { · 170 unmodified lines
729733 * @m_rt_list: List of Master instance of all stream(s) running on Bus. This
730734 * is used to compute and program bus bandwidth, clock, frame shape,
731735 * transport and port parameters
736+ * @debugfs: Bus debugfs
732737 * @defer_msg: Defer message
733738 * @clk_stop_timeout: Clock stop timeout computed
734739 * @bank_switch_timeout: Bank switch timeout computed
@@ -748,6 +753,9 @@ struct sdw_bus { · 13 unmodified lines
748753 struct sdw_bus_params params;
749754 struct sdw_master_prop prop;
750755 struct list_head m_rt_list;
756+#ifdef CONFIG_DEBUG_FS
757+ struct dentry *debugfs;
758+#endif
751759 struct sdw_defer defer_msg;
752760 unsigned int clk_stop_timeout;
753761 u32 bank_switch_timeout;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t