linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next v3 1/2] platform-msi: Save the msg context to desc in platform_msi_write_msg()
@ 2021-08-28  6:39 Bixuan Cui
  2021-08-28  6:39 ` [PATCH -next v3 2/2] iommu/arm-smmu-v3: Add suspend and resume support Bixuan Cui
  2021-09-14  9:08 ` [PATCH -next v3 1/2] platform-msi: Save the msg context to desc in platform_msi_write_msg() Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Bixuan Cui @ 2021-08-28  6:39 UTC (permalink / raw)
  To: iommu, linux-kernel
  Cc: will, gregkh, rafael, robin.murphy, joro, jean-philippe,
	Jonathan.Cameron, thunder.leizhen, maz, linux-arm-kernel

Save the msg context to desc when the msi interrupt is requested.
The drivers can use it in special scenarios(such as resume).

Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
---
 drivers/base/platform-msi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c
index 3d6c8f9caf43..60962a224fcc 100644
--- a/drivers/base/platform-msi.c
+++ b/drivers/base/platform-msi.c
@@ -90,6 +90,9 @@ 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);
 }
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-14  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  6:39 [PATCH -next v3 1/2] platform-msi: Save the msg context to desc in platform_msi_write_msg() Bixuan Cui
2021-08-28  6:39 ` [PATCH -next v3 2/2] iommu/arm-smmu-v3: Add suspend and resume support Bixuan Cui
2021-09-14  9:08 ` [PATCH -next v3 1/2] platform-msi: Save the msg context to desc in platform_msi_write_msg() Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).