7224-fsl-mc-msi-Added-FSL-MC-specific-member-to-the-msi_d.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. FSL-MC is a bus type different from PCI and platform, so it needs
  7. its own member in the msi_desc's union.
  8. Signed-off-by: J. German Rivera <German.Rivera@freescale.com>
  9. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  10. ---
  11. include/linux/msi.h | 9 +++++++++
  12. 1 file changed, 9 insertions(+)
  13. --- a/include/linux/msi.h
  14. +++ b/include/linux/msi.h
  15. @@ -39,6 +39,14 @@ struct platform_msi_desc {
  16. };
  17. /**
  18. + * fsl_mc_msi_desc - FSL-MC device specific msi descriptor data
  19. + * @msi_index: The index of the MSI descriptor
  20. + */
  21. +struct fsl_mc_msi_desc {
  22. + u16 msi_index;
  23. +};
  24. +
  25. +/**
  26. * struct msi_desc - Descriptor structure for MSI based interrupts
  27. * @list: List head for management
  28. * @irq: The base interrupt number
  29. @@ -93,6 +101,7 @@ struct msi_desc {
  30. * tree wide cleanup.
  31. */
  32. struct platform_msi_desc platform;
  33. + struct fsl_mc_msi_desc fsl_mc;
  34. };
  35. };