diff options
Diffstat (limited to 'cnss2/debug.c')
-rw-r--r-- | cnss2/debug.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/cnss2/debug.c b/cnss2/debug.c index 957d501..cb84c4d 100644 --- a/cnss2/debug.c +++ b/cnss2/debug.c @@ -146,11 +146,21 @@ static int cnss_stats_show_state(struct seq_file *s, return 0; } +static int cnss_stats_show_gpio_state(struct seq_file *s, + struct cnss_plat_data *plat_priv) +{ + seq_printf(s, "\nHost SOL: %d", cnss_get_host_sol_value(plat_priv)); + seq_printf(s, "\nDev SOL: %d", cnss_get_dev_sol_value(plat_priv)); + + return 0; +} + static int cnss_stats_show(struct seq_file *s, void *data) { struct cnss_plat_data *plat_priv = s->private; cnss_stats_show_state(s, plat_priv); + cnss_stats_show_gpio_state(s, plat_priv); return 0; } @@ -207,6 +217,10 @@ static ssize_t cnss_dev_boot_debug_write(struct file *fp, CNSS_DRIVER_EVENT_POWER_DOWN, 0, NULL); clear_bit(CNSS_DRIVER_DEBUG, &plat_priv->driver_state); + } else if (sysfs_streq(cmd, "assert_host_sol")) { + ret = cnss_set_host_sol_value(plat_priv, 1); + } else if (sysfs_streq(cmd, "deassert_host_sol")) { + ret = cnss_set_host_sol_value(plat_priv, 0); } else { pci_priv = plat_priv->bus_priv; if (!pci_priv) @@ -717,9 +731,6 @@ static int cnss_show_quirks_state(struct seq_file *s, case FBC_BYPASS: seq_puts(s, "FBC_BYPASS"); continue; - case ENABLE_DAEMON_SUPPORT: - seq_puts(s, "DAEMON_SUPPORT"); - continue; case DISABLE_DRV: seq_puts(s, "DISABLE_DRV"); continue; |