Commit 2fdda02a authored by Thomas Gleixner's avatar Thomas Gleixner

genirq/msi: Move msi_device_data to core

Now that the platform MSI hack is gone, nothing needs to know about struct
msi_device_data outside of the core code.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarAnna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: default avatarShivamurthy Shastri <shivamurthy.shastri@linutronix.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240623142236.003295177@linutronix.de

parent e9894248
...@@ -21,11 +21,7 @@ ...@@ -21,11 +21,7 @@
#include <linux/irqdomain_defs.h> #include <linux/irqdomain_defs.h>
#include <linux/cpumask.h> #include <linux/cpumask.h>
#include <linux/msi_api.h> #include <linux/msi_api.h>
#include <linux/xarray.h>
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/bits.h>
#include <asm/msi.h> #include <asm/msi.h>
...@@ -227,20 +223,6 @@ struct msi_dev_domain { ...@@ -227,20 +223,6 @@ struct msi_dev_domain {
struct irq_domain *domain; struct irq_domain *domain;
}; };
/**
* msi_device_data - MSI per device data
* @properties: MSI properties which are interesting to drivers
* @mutex: Mutex protecting the MSI descriptor store
* @__domains: Internal data for per device MSI domains
* @__iter_idx: Index to search the next entry for iterators
*/
struct msi_device_data {
unsigned long properties;
struct mutex mutex;
struct msi_dev_domain __domains[MSI_MAX_DEVICE_IRQDOMAINS];
unsigned long __iter_idx;
};
int msi_setup_device_data(struct device *dev); int msi_setup_device_data(struct device *dev);
void msi_lock_descs(struct device *dev); void msi_lock_descs(struct device *dev);
......
...@@ -8,17 +8,33 @@ ...@@ -8,17 +8,33 @@
* This file contains common code to support Message Signaled Interrupts for * This file contains common code to support Message Signaled Interrupts for
* PCI compatible and non PCI compatible devices. * PCI compatible and non PCI compatible devices.
*/ */
#include <linux/types.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/irqdomain.h> #include <linux/irqdomain.h>
#include <linux/msi.h> #include <linux/msi.h>
#include <linux/mutex.h>
#include <linux/pci.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/sysfs.h> #include <linux/sysfs.h>
#include <linux/pci.h> #include <linux/types.h>
#include <linux/xarray.h>
#include "internals.h" #include "internals.h"
/**
* struct msi_device_data - MSI per device data
* @properties: MSI properties which are interesting to drivers
* @mutex: Mutex protecting the MSI descriptor store
* @__domains: Internal data for per device MSI domains
* @__iter_idx: Index to search the next entry for iterators
*/
struct msi_device_data {
unsigned long properties;
struct mutex mutex;
struct msi_dev_domain __domains[MSI_MAX_DEVICE_IRQDOMAINS];
unsigned long __iter_idx;
};
/** /**
* struct msi_ctrl - MSI internal management control structure * struct msi_ctrl - MSI internal management control structure
* @domid: ID of the domain on which management operations should be done * @domid: ID of the domain on which management operations should be done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment