From: Chris Lew <quic_clew@quicinc.com>
To: <agross@kernel.org>, <bjorn.andersson@linaro.org>,
<konrad.dybcio@somainline.org>
Cc: <linux-arm-msm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<quic_clew@quicinc.com>, Tao Zhang <quic_taozhan@quicinc.com>
Subject: [PATCH 4/4] soc: qcom: smp2p: Add remote_id into irq name
Date: Tue, 5 Jul 2022 23:02:11 -0700 [thread overview]
Message-ID: <1657087331-32455-5-git-send-email-quic_clew@quicinc.com> (raw)
In-Reply-To: <1657087331-32455-1-git-send-email-quic_clew@quicinc.com>
From: Tao Zhang <quic_taozhan@quicinc.com>
Changed smp2p irq devname from "smp2p" to "smp2p_<remote_id>", which
makes the wakeup source distinguishable in irq wakeup prints.
Signed-off-by: Tao Zhang <quic_taozhan@quicinc.com>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
---
drivers/soc/qcom/smp2p.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c
index a1ea5f55c228..21a0e84b16f4 100644
--- a/drivers/soc/qcom/smp2p.c
+++ b/drivers/soc/qcom/smp2p.c
@@ -541,6 +541,7 @@ static int qcom_smp2p_probe(struct platform_device *pdev)
struct device_node *node;
struct qcom_smp2p *smp2p;
const char *key;
+ char *name;
int irq;
int ret;
@@ -632,10 +633,16 @@ static int qcom_smp2p_probe(struct platform_device *pdev)
qcom_smp2p_kick(smp2p);
smp2p->irq = irq;
+ name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "smp2p_%d",
+ smp2p->remote_pid);
+ if (!name) {
+ ret = -ENOMEM;
+ goto unwind_interfaces;
+ }
ret = devm_request_threaded_irq(&pdev->dev, irq,
NULL, qcom_smp2p_intr,
IRQF_ONESHOT,
- "smp2p", (void *)smp2p);
+ name, (void *)smp2p);
if (ret) {
dev_err(&pdev->dev, "failed to request interrupt\n");
goto unwind_interfaces;
--
2.7.4
prev parent reply other threads:[~2022-07-06 6:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 6:02 [PATCH 0/4] Add smp2p retrigger support Chris Lew
2022-07-06 6:02 ` [PATCH 1/4] soc: qcom: smp2p: Introduce pending state for virtual irq Chris Lew
2022-07-13 15:32 ` Doug Anderson
2022-07-06 6:02 ` [PATCH 2/4] soc: qcom: smp2p: Add proper retrigger detection Chris Lew
2022-07-06 6:02 ` [PATCH 3/4] soc: qcom: smp2p: Add memory barrier for irq_pending Chris Lew
2022-07-06 12:52 ` Manivannan Sadhasivam
2022-07-13 15:32 ` Doug Anderson
2022-07-06 6:02 ` Chris Lew [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1657087331-32455-5-git-send-email-quic_clew@quicinc.com \
--to=quic_clew@quicinc.com \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=konrad.dybcio@somainline.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_taozhan@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox