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

Commit adfd17d9 authored by Manikandan Mohan's avatar Manikandan Mohan
Browse files

cnss2: Allow cold boot calibration skip for debug



Add debug support to allow wlan driver insmod operation without
cold boot calibration completion.

Change-Id: Ie8a10074d309250bfd8f50d8a6631ec3c021b63e
Signed-off-by: default avatarManikandan Mohan <manikand@codeaurora.org>
parent d855fd06
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;
}