icnss2: Add Low power mode to icnss driver state

Deep Sleep is a system wide low power mode during which
Modem would be brought down and DDR would be in self
refresh mode (suspend-to-RAM) thus platform driver on
receiving deep sleep indication goes to a state similar
to SSR apart from the fact that FW is not crashed but
deliberately brought down.

In msm-5.15, there are no seperate notifications used
for deep sleep, notifications used for hibernate like
BEFORE_SHUTDOWN, AFTER_SHUTDOWN, BEFORE_POWERUP and
AFTER_POWERUP are used for deep sleep also.

In this commit add only low power mode state to
icnss driver state.

Change-Id: I4b12c5a8841e3cfc3e5e44ab6d9dff141e472876
CRs-Fixed: 3394501
This commit is contained in:
Surabhi Vishnoi
2022-11-08 15:52:05 +05:30
committed by Gerrit - the friendly Code Review server
parent 2ac2197477
commit 6c9f906a94
4 changed files with 21 additions and 4 deletions

View File

@@ -422,6 +422,9 @@ static int icnss_stats_show_state(struct seq_file *s, struct icnss_priv *priv)
continue;
case ICNSS_SLATE_UP:
seq_puts(s, "ICNSS SLATE UP");
continue;
case ICNSS_LOW_POWER:
seq_puts(s, "ICNSS LOW POWER");
}
seq_printf(s, "UNKNOWN-%d", i);