platform-msi: Save the msg context to desc in platform_msi_write_msg()
PATCH v2 1/1 platform-msi: Save the msg context to desc in platform_msi_write_msg()
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 <[email protected]>
---
Changes in v2:
* Modify the commit log and update my email address;
drivers/base/platform-msi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/base/platform-msi.c +4 -0
@@ -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); }
Signature · 1 line
1.8.3.1