slim: msm: ngd: Add priority to DSP SSR notifier

Currently SSR framework seems to make callbacks in the order
they were registered, or based on pririties.
Due to this, APR's callback (done in its probe) may be executed
before slimbus driver's callback (only registered after children
are probed). This still works, but may take longer since codec
may try sending some disconnection commands over slimbus if APR
is notified about SSR before codec was notified by slimbus.
This failure may result in some delay in SSR handling which is
more than the KPI numbers expected for this recovery mechanism.
Priority is added to slimbus SSR notifier registration to make
sure its callback is called before APR's.

CRs-Fixed: 996871
Change-Id: Ib7f002d52310dc13b60a18972a6899ebae21ba24
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
This commit is contained in:
Sagar Dharia 2016-04-01 11:38:23 -06:00 committed by Jeevan Shriram
parent 5c8fe61c60
commit a632de294e

View file

@ -1679,6 +1679,7 @@ static int ngd_slim_probe(struct platform_device *pdev)
pm_runtime_set_suspended(dev->dev); pm_runtime_set_suspended(dev->dev);
pm_runtime_enable(dev->dev); pm_runtime_enable(dev->dev);
dev->dsp.nb.priority = 4;
ret = of_property_read_string(pdev->dev.of_node, ret = of_property_read_string(pdev->dev.of_node,
"qcom,subsys-name", &subsys_name); "qcom,subsys-name", &subsys_name);
if (ret) { if (ret) {