summaryrefslogtreecommitdiff
path: root/core/pld
diff options
context:
space:
mode:
authorGovind Singh <govinds@codeaurora.org>2017-06-13 11:45:07 +0530
committersnandini <snandini@codeaurora.org>2017-10-24 00:49:41 -0700
commita1f6dacf0ce13eed3b32f397b23dd53cbe2cbd04 (patch)
tree7551c7d76799dba166e58f1469adda03c245ee84 /core/pld
parent69696fb954a1a43e70ceaa2351df606d8a10c4d3 (diff)
downloadqcacld-a1f6dacf0ce13eed3b32f397b23dd53cbe2cbd04.tar.gz
qcacld-3.0: Add fw ready uevent to update driver state
FW ready state guarantees the completion of 2nd stage power on reset sequence of wcn3990 target. Add fw ready uevent to update driver state, which is required to check if target registers are accessible or not, while recovery is in progress. Change-Id: I78d56644d4d4ac3a0371be625a2debed8ac7cebf CRs-Fixed: 2058451
Diffstat (limited to 'core/pld')
-rw-r--r--core/pld/inc/pld_common.h1
-rw-r--r--core/pld/src/pld_snoc.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/core/pld/inc/pld_common.h b/core/pld/inc/pld_common.h
index d632904274..cf4f1d8357 100644
--- a/core/pld/inc/pld_common.h
+++ b/core/pld/inc/pld_common.h
@@ -147,6 +147,7 @@ enum pld_driver_status {
enum pld_uevent {
PLD_RECOVERY,
PLD_FW_DOWN,
+ PLD_FW_READY,
};
/**
diff --git a/core/pld/src/pld_snoc.c b/core/pld/src/pld_snoc.c
index daabfb0b0d..1c0b14cddf 100644
--- a/core/pld/src/pld_snoc.c
+++ b/core/pld/src/pld_snoc.c
@@ -263,6 +263,10 @@ static int pld_snoc_uevent(struct device *dev,
data.uevent = PLD_FW_DOWN;
data.fw_down.crashed = uevent_data->crashed;
break;
+ case ICNSS_UEVENT_FW_READY:
+ data.uevent = PLD_FW_READY;
+ break;
+
default:
goto out;
}