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

Commit 51c81b2d authored by Sandeep Singh's avatar Sandeep Singh
Browse files

icnss: Add debug fs entry to call PSF callback



This change adds an entry to call a callback from power
supply framework for debugging and testing purpose.

Change-Id: Ia76abb8039e39da86dcd0841f97ee44349ee101d
Signed-off-by: default avatarSandeep Singh <sandsing@codeaurora.org>
parent daae2461
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2652,6 +2652,9 @@ static int icnss_fw_debug_show(struct seq_file *s, void *data)
	seq_puts(s, "  VAL: 1 (WLAN FW test)\n");
	seq_puts(s, "  VAL: 2 (CCPM test)\n");
	seq_puts(s, "  VAL: 3 (Trigger Recovery)\n");
	seq_puts(s, "  VAL: 4 (Allow Recursive Recovery)\n");
	seq_puts(s, "  VAL: 5 (Disallow Recursive Recovery)\n");
	seq_puts(s, "  VAL: 6 (Trigger power supply callback)\n");

	seq_puts(s, "\nCMD: dynamic_feature_mask\n");
	seq_puts(s, "  VAL: (64 bit feature mask)\n");
@@ -2828,6 +2831,9 @@ static ssize_t icnss_fw_debug_write(struct file *fp,
		case 5:
			icnss_disallow_recursive_recovery(&priv->pdev->dev);
			break;
		case 6:
			power_supply_changed(priv->batt_psy);
			break;
		default:
			return -EINVAL;
		}