Merge "cnss2: Allow cold boot calibration skip for debug"

This commit is contained in:
qctecmdr 2020-09-14 20:12:26 -07:00 • committed by Gerrit - the friendly Code Review server
commit c8c83a1c2b

View file

@ -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;
@ -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;
}