mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
cnss2: Add logs for dev_boot debugfs
Add logs to identify the debug command triggered using dev_boot debugfs file. Change-Id: I186293ee9a0e8873d38aed9bd66ca21367205493 Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
This commit is contained in:
parent
da2e3647bf
commit
c0b8681dfe
1 changed files with 2 additions and 0 deletions
|
|
@ -178,6 +178,7 @@ static ssize_t cnss_dev_boot_debug_write(struct file *fp,
|
|||
|
||||
buf[len] = '\0';
|
||||
cmd = buf;
|
||||
cnss_pr_dbg("Received dev_boot debug command: %s\n", cmd);
|
||||
|
||||
if (sysfs_streq(cmd, "on")) {
|
||||
ret = cnss_power_on_device(plat_priv);
|
||||
|
|
@ -203,6 +204,7 @@ static ssize_t cnss_dev_boot_debug_write(struct file *fp,
|
|||
0, NULL);
|
||||
clear_bit(CNSS_DRIVER_DEBUG, &plat_priv->driver_state);
|
||||
} else if (sysfs_streq(cmd, "assert")) {
|
||||
cnss_pr_info("FW Assert triggered for debug\n");
|
||||
ret = cnss_force_fw_assert(&pci_priv->pci_dev->dev);
|
||||
} else if (sysfs_streq(cmd, "set_cbc_done")) {
|
||||
cnss_pr_dbg("Force set cold boot cal done status\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue