layerscape: add ls1088ardb device support
[openwrt/staging/lynxis/omap.git] / target / linux / layerscape / patches-4.4 / 7224-fsl-mc-msi-Added-FSL-MC-specific-member-to-the-msi_d.patch
1 From 359c7977e003781024154da61e55181b92b12bdf Mon Sep 17 00:00:00 2001
2 From: "J. German Rivera" <German.Rivera@freescale.com>
3 Date: Wed, 6 Jan 2016 16:03:20 -0600
4 Subject: [PATCH 224/226] fsl-mc: msi: Added FSL-MC-specific member to the
5 msi_desc's union
6
7 FSL-MC is a bus type different from PCI and platform, so it needs
8 its own member in the msi_desc's union.
9
10 Signed-off-by: J. German Rivera <German.Rivera@freescale.com>
11 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 ---
13 include/linux/msi.h | 9 +++++++++
14 1 file changed, 9 insertions(+)
15
16 --- a/include/linux/msi.h
17 +++ b/include/linux/msi.h
18 @@ -33,6 +33,14 @@ struct platform_msi_desc {
19 };
20
21 /**
22 + * fsl_mc_msi_desc - FSL-MC device specific msi descriptor data
23 + * @msi_index: The index of the MSI descriptor
24 + */
25 +struct fsl_mc_msi_desc {
26 + u16 msi_index;
27 +};
28 +
29 +/**
30 * struct msi_desc - Descriptor structure for MSI based interrupts
31 * @list: List head for management
32 * @irq: The base interrupt number
33 @@ -87,6 +95,7 @@ struct msi_desc {
34 * tree wide cleanup.
35 */
36 struct platform_msi_desc platform;
37 + struct fsl_mc_msi_desc fsl_mc;
38 };
39 };
40