Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8c83a1c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 19866d43 adfd17d9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
}