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

Commit f842981d authored by Arun Prakash's avatar Arun Prakash
Browse files

rpmsg: glink: Changing interrupt trigger option



Adding IRQF_TRIGGER_RISING option for glink IN interrupt.
This option is required to receive interrupt from primary
host through virtual irq line.

Change-Id: Ib854e9fe9409690461b7a74b709c294f89cb3888
Signed-off-by: default avatarArun Prakash <app@codeaurora.org>
parent 3aa681b6
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -1974,6 +1974,8 @@ struct qcom_glink *qcom_glink_native_probe(struct device *dev,
					   bool intentless)
{
	struct qcom_glink *glink;
	unsigned long irqflags;
	bool vm_support;
	u32 *arr;
	int size;
	int irq;
@@ -2032,9 +2034,17 @@ struct qcom_glink *qcom_glink_native_probe(struct device *dev,
		dev_err(dev, "failed to register early notif %d\n", ret);

	irq = of_irq_get(dev->of_node, 0);

	/* Use different irq flag option in case of gvm */
	vm_support = of_property_read_bool(dev->of_node, "vm-support");
	if (vm_support)
		irqflags = IRQF_TRIGGER_RISING;
	else
		irqflags = IRQF_NO_SUSPEND | IRQF_SHARED;

	ret = devm_request_irq(dev, irq,
			       qcom_glink_native_intr,
			       IRQF_NO_SUSPEND | IRQF_SHARED,
			       irqflags,
			       "glink-native", glink);
	if (ret) {
		dev_err(dev, "failed to request IRQ\n");