mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bixuan Cui <cuibixuan@linux.alibaba.com>
To: linux-kernel@vger.kernel.org
Cc: gregkh@linuxfoundation.or, rafael@kernel.org,
	cuibixuan@linux.alibaba.com
Subject: [PATCH -next v2] platform-msi: Save the msg context to desc in platform_msi_write_msg()
Date: Tue, 26 Oct 2021 14:46:25 +0800	[thread overview]
Message-ID: <1635230785-57350-1-git-send-email-cuibixuan@linux.alibaba.com> (raw)

Save the msg context to desc when the msi interrupt is requested.
So that the requesters can use it in special scenarios, such as
resume mode.

Signed-off-by: Bixuan Cui <cuibixuan@linux.alibaba.com>
---
Changes in v2:
* Modify the commit log and update my email address;

 drivers/base/platform-msi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c
index 3d6c8f9..824a540 100644
--- a/drivers/base/platform-msi.c
+++ b/drivers/base/platform-msi.c
@@ -90,6 +90,10 @@ static void platform_msi_write_msg(struct irq_data *data, struct msi_msg *msg)
 
 	priv_data = desc->platform.msi_priv_data;
 
+	desc->msg.address_lo = msg->address_lo;
+	desc->msg.address_hi = msg->address_hi;
+	desc->msg.data = msg->data;
+
 	priv_data->write_msg(desc, msg);
 }
 
-- 
1.8.3.1


                 reply	other threads:[~2021-10-26  6:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1635230785-57350-1-git-send-email-cuibixuan@linux.alibaba.com \
    --to=cuibixuan@linux.alibaba.com \
    --cc=gregkh@linuxfoundation.or \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    /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

all inboxes | Powered by JetHome®