lkml.org 
[lkml]   [2021]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next v2] platform-msi: Save the msg context to desc in platform_msi_write_msg()
Date
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
\
 
 \ /
  Last update: 2021-10-26 08:47    [W:0.021 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site