Loading drivers/net/wireless/cnss2/debug.c +4 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,9 @@ static ssize_t cnss_dev_boot_debug_write(struct file *fp, clear_bit(CNSS_DRIVER_DEBUG, &plat_priv->driver_state); } else if (sysfs_streq(cmd, "assert")) { 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"); set_bit(CNSS_COLD_BOOT_CAL_DONE, &plat_priv->driver_state); } else { cnss_pr_err("Device boot debugfs command is invalid\n"); ret = -EINVAL; Loading @@ -225,6 +228,7 @@ static int cnss_dev_boot_debug_show(struct seq_file *s, void *data) seq_puts(s, "powerup: full power on sequence to boot device, download FW and do QMI handshake with FW\n"); seq_puts(s, "shutdown: full power off sequence to shutdown device\n"); seq_puts(s, "assert: trigger firmware assert\n"); seq_puts(s, "set_cbc_done: Set cold boot calibration done status\n"); return 0; } Loading Loading
drivers/net/wireless/cnss2/debug.c +4 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,9 @@ static ssize_t cnss_dev_boot_debug_write(struct file *fp, clear_bit(CNSS_DRIVER_DEBUG, &plat_priv->driver_state); } else if (sysfs_streq(cmd, "assert")) { 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"); set_bit(CNSS_COLD_BOOT_CAL_DONE, &plat_priv->driver_state); } else { cnss_pr_err("Device boot debugfs command is invalid\n"); ret = -EINVAL; Loading @@ -225,6 +228,7 @@ static int cnss_dev_boot_debug_show(struct seq_file *s, void *data) seq_puts(s, "powerup: full power on sequence to boot device, download FW and do QMI handshake with FW\n"); seq_puts(s, "shutdown: full power off sequence to shutdown device\n"); seq_puts(s, "assert: trigger firmware assert\n"); seq_puts(s, "set_cbc_done: Set cold boot calibration done status\n"); return 0; } Loading