qcacmn: Add Link stats check before ring access directly
Throughput based RTPM logic of ring access may fail and lead to NOC error in some corner cases. Change is aimed to add additional link states check to prevent invalid SRNG access. Change-Id: I7e7edbadfd21b4857efa4faff0ada6d94d682f2c CRs-Fixed: 3256702
This commit is contained in:

committed by
Madan Koyyalamudi

parent
899d504312
commit
11df417c3b
@@ -1025,6 +1025,11 @@ void hif_rtpm_set_state(enum hif_rtpm_state state)
|
||||
qdf_atomic_set(&gp_hif_rtpm_ctx->pm_state, state);
|
||||
}
|
||||
|
||||
int hif_rtpm_get_state(void)
|
||||
{
|
||||
return qdf_atomic_read(&gp_hif_rtpm_ctx->pm_state);
|
||||
}
|
||||
|
||||
int hif_pre_runtime_suspend(struct hif_opaque_softc *hif_ctx)
|
||||
{
|
||||
if (!hif_can_suspend_link(hif_ctx)) {
|
||||
|
Reference in New Issue
Block a user