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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user