Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ada82db authored by Arun Prakash's avatar Arun Prakash
Browse files

mailbox: msm_qmp: Fix message send to AOP



QMP state resetting in freeze callback is causing
clock vote failures for Jtag-etm driver from thaw
callback which is running after freeze call back.
Move state reset code to restore callback to allow
clients to use AOP communication after freeze call back.

Change-Id: I1719af6179342d01596d7bd4a771a041cf6e7b53
Signed-off-by: default avatarArun Prakash <app@codeaurora.org>
parent 1ca4c673
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -984,6 +984,11 @@ static int qmp_mbox_probe(struct platform_device *pdev)
}

static int qmp_mbox_suspend(struct device *dev)
{
	return 0;
}

static int qmp_mbox_resume(struct device *dev)
{
	struct qmp_device *mdev = dev_get_drvdata(dev);
	struct qmp_mbox *mbox;
@@ -1004,13 +1009,6 @@ static int qmp_mbox_suspend(struct device *dev)
			mbox->rx_pkt.data = NULL;
		}
	}
	return 0;
}

static int qmp_mbox_resume(struct device *dev)
{
	struct qmp_device *mdev = dev_get_drvdata(dev);

	if (mdev->early_boot)
		qmp_irq_handler(0, mdev);