From a632de294e5e8cada82444097e7708f6a0ece9eb Mon Sep 17 00:00:00 2001 From: Sagar Dharia Date: Fri, 1 Apr 2016 11:38:23 -0600 Subject: [PATCH] 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 --- drivers/slimbus/slim-msm-ngd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/slimbus/slim-msm-ngd.c b/drivers/slimbus/slim-msm-ngd.c index 2fbfd4c258df..53c137ac723f 100644 --- a/drivers/slimbus/slim-msm-ngd.c +++ b/drivers/slimbus/slim-msm-ngd.c @@ -1679,6 +1679,7 @@ static int ngd_slim_probe(struct platform_device *pdev) pm_runtime_set_suspended(dev->dev); pm_runtime_enable(dev->dev); + dev->dsp.nb.priority = 4; ret = of_property_read_string(pdev->dev.of_node, "qcom,subsys-name", &subsys_name); if (ret) {