rpmsg: glink: Append glink irq name with remote edge name

Glink irq for all the remote edges are registered with same name
glink-native. It is difficult to distinguish each irq in logs.

Appending remote edge name to generic irq name.

Change-Id: I6ead87e0e4adae204535b599d07d9471387c861b
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
Signed-off-by: Arun Prakash <app@codeaurora.org>
This commit is contained in:
Arun Prakash 2020-05-13 10:30:22 +05:30 committed by Chris Lew
parent 0174e84b16
commit 83a9210562

View File

@ -107,6 +107,7 @@ struct qcom_glink {
struct qcom_glink_pipe *tx_pipe;
int irq;
char irqname[GLINK_NAME_SIZE];
struct work_struct rx_work;
spinlock_t rx_lock;
@ -1806,11 +1807,12 @@ struct qcom_glink *qcom_glink_native_probe(struct device *dev,
return ERR_CAST(glink->mbox_chan);
}
scnprintf(glink->irqname, 32, "glink-native-%s", glink->name);
irq = of_irq_get(dev->of_node, 0);
ret = devm_request_irq(dev, irq,
qcom_glink_native_intr,
IRQF_NO_SUSPEND | IRQF_SHARED,
"glink-native", glink);
glink->irqname, glink);
if (ret) {
dev_err(dev, "failed to request IRQ\n");
return ERR_PTR(ret);