Browse Source

cnss2: log the debug cmd for runtime_pm debugfs

User may configure such runtime_pm debugfs unexpected during test,
add the log to explicitly show what is configured.

Change-Id: I7d427603bfc7e6bb5d732fa3e29ff66c965e153b
CRs-Fixed: 3399930
Lin Bai 2 years ago
parent
commit
13c9e92c31
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cnss2/debug.c

+ 2 - 0
cnss2/debug.c

@@ -576,6 +576,8 @@ static ssize_t cnss_runtime_pm_debug_write(struct file *fp,
 	buf[len] = '\0';
 	cmd = buf;
 
+	cnss_pr_dbg("Received runtime_pm debug command: %s\n", cmd);
+
 	if (sysfs_streq(cmd, "usage_count")) {
 		cnss_pci_pm_runtime_show_usage_count(pci_priv);
 	} else if (sysfs_streq(cmd, "request_resume")) {