History

of/irq: make of_msi_map_get_device_domain() bus agnostic

of_msi_map_get_device_domain() is PCI specific but it need not be and can be easily changed to be bus agnostic in order to be used by other busses by adding an IRQ domain bus token as an input parameter.

Diana Craciun committed 6 years ago

Commit 6f881ab1 parent 5bda70c3 files · +9 −6Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/of_irq.h+3−2
@@ -52,7 +52,8 @@ extern struct irq_domain *of_msi_get_domain(struct device *dev, · 51 unmodified lines
5252 struct device_node *np,
5353 enum irq_domain_bus_token token);
5454 extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
55− u32 rid);
55+ u32 id,
56+ u32 bus_token);
5657 extern void of_msi_configure(struct device *dev, struct device_node *np);
5758 u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in);
5859 #else
@@ -85,7 +86,7 @@ static inline struct irq_domain *of_msi_get_domain(struct device *dev, · 26 unmodified lines
8586 return NULL;
8687 }
8788 static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
88− u32 rid)
89+ u32 id, u32 bus_token)
8990 {
9091 return NULL;
9192 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t