qcacld-3.0: Modify DSC trans assert to check ancestors

Currently, APIs in the dsc_*_trans_assert() family assert a transition
is in flight on the given node itself. Instead, replace this API family
with another, dsc_*_assert_trans_protected(), which assert a
transition is in flight on the given node or any of its ancestors.

Change-Id: I5fb07000f955a49a4e5529806f4e49d9dbc8acb7
CRs-Fixed: 2347789
This commit is contained in:
Dustin Brown
2018-11-09 14:50:45 -08:00
committed by nshrivas
parent 8c282e4087
commit c35ea2d785
6 changed files with 28 additions and 20 deletions

View File

@@ -271,7 +271,7 @@ void dsc_driver_trans_stop(struct dsc_driver *driver)
dsc_exit();
}
static void __dsc_driver_trans_assert(struct dsc_driver *driver)
static void __dsc_driver_assert_trans_protected(struct dsc_driver *driver)
{
if (!dsc_assert(driver))
return;
@@ -281,10 +281,10 @@ static void __dsc_driver_trans_assert(struct dsc_driver *driver)
__dsc_unlock(driver);
}
void dsc_driver_trans_assert(struct dsc_driver *driver)
void dsc_driver_assert_trans_protected(struct dsc_driver *driver)
{
dsc_enter();
__dsc_driver_trans_assert(driver);
__dsc_driver_assert_trans_protected(driver);
dsc_exit();
}