icnss2: Register for co-processor subsystem notifier

WLAN RFA is present on another co-processor subsystem.
Any error fatal in co-processor subsystem will result in
WLAN reset.

In order to make sure that rf clock/rails are up before
accessing WLAN hardware, ICNSS platform driver needs to
register with co-processor SSR notification and wait for
POWER_UP event before starting QMI handshake.

Change-Id: Idf65e508a09d93e481349afc73de4804c7841111
This commit is contained in:
Dundi Raviteja
2022-11-08 12:18:55 +05:30
committed by Madan Koyyalamudi
parent 4d71059d9b
commit d2bd912107
3 changed files with 61 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <linux/err.h>
#include <linux/seq_file.h>
@@ -415,6 +416,9 @@ static int icnss_stats_show_state(struct seq_file *s, struct icnss_priv *priv)
continue;
case ICNSS_QMI_DMS_CONNECTED:
seq_puts(s, "DMS_CONNECTED");
continue;
case ICNSS_SLATE_SSR_REGISTERED:
seq_puts(s, "SLATE SSR REGISTERED");
}
seq_printf(s, "UNKNOWN-%d", i);