From: Ley Foon Tan <lftan.linux@gmail.com>
To: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>,
Bjorn Helgaas <bhelgaas@google.com>,
linux-kernel@vger.kernel.org,
linux-pci <linux-pci@vger.kernel.org>,
devicetree@vger.kernel.org
Subject: Re: [PATCH] PCI: altera-msi: Allow building as module
Date: Thu, 16 May 2019 10:12:52 +0800 [thread overview]
Message-ID: <CAFiDJ5-1YncDFFES+vj2bnaRwq74RT=s0KB9FBpYFt-r9T+a2g@mail.gmail.com> (raw)
In-Reply-To: <20190515135933.GB30985@e121166-lin.cambridge.arm.com>
On Wed, May 15, 2019 at 9:59 PM Lorenzo Pieralisi
<lorenzo.pieralisi@arm.com> wrote:
>
> On Tue, May 14, 2019 at 01:35:20PM +0800, Ley Foon Tan wrote:
> > On Wed, Apr 24, 2019 at 12:57 PM Ley Foon Tan <ley.foon.tan@intel.com> wrote:
> > >
> > > Altera MSI IP is a soft IP and is only available after
> > > FPGA image is programmed.
> > >
> > > Make driver modulable to support use case FPGA image is programmed
> > > after kernel is booted. User proram FPGA image in kernel then only load
> > > MSI driver module.
> > >
> > > Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> > > ---
> > > drivers/pci/controller/Kconfig | 2 +-
> > > drivers/pci/controller/pcie-altera-msi.c | 10 ++++++++++
> > > 2 files changed, 11 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig
> > > index 4b550f9cdd56..920546cb84e2 100644
> > > --- a/drivers/pci/controller/Kconfig
> > > +++ b/drivers/pci/controller/Kconfig
> > > @@ -181,7 +181,7 @@ config PCIE_ALTERA
> > > FPGA.
> > >
> > > config PCIE_ALTERA_MSI
> > > - bool "Altera PCIe MSI feature"
> > > + tristate "Altera PCIe MSI feature"
> > > depends on PCIE_ALTERA
> > > depends on PCI_MSI_IRQ_DOMAIN
> > > help
> > > diff --git a/drivers/pci/controller/pcie-altera-msi.c b/drivers/pci/controller/pcie-altera-msi.c
> > > index 025ef7d9a046..16d938920ca5 100644
> > > --- a/drivers/pci/controller/pcie-altera-msi.c
> > > +++ b/drivers/pci/controller/pcie-altera-msi.c
> > > @@ -10,6 +10,7 @@
> > > #include <linux/interrupt.h>
> > > #include <linux/irqchip/chained_irq.h>
> > > #include <linux/init.h>
> > > +#include <linux/module.h>
> > > #include <linux/msi.h>
> > > #include <linux/of_address.h>
> > > #include <linux/of_irq.h>
> > > @@ -288,4 +289,13 @@ static int __init altera_msi_init(void)
> > > {
> > > return platform_driver_register(&altera_msi_driver);
> > > }
> > > +
> > > +static void __exit altera_msi_exit(void)
> > > +{
> > > + platform_driver_unregister(&altera_msi_driver);
> > > +}
> > > +
> > > subsys_initcall(altera_msi_init);
> > > +MODULE_DEVICE_TABLE(of, altera_msi_of_match);
> > > +module_exit(altera_msi_exit);
> > > +MODULE_LICENSE("GPL v2");
> > > --
> > > 2.19.0
> > >
> > Hi
> >
> > Any comment for this patch?
>
> I will get to these patches for the next merge window, thanks.
Thanks.
Regards
Ley Foon
next prev parent reply other threads:[~2019-05-16 2:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-24 4:57 [PATCH] PCI: altera: Allow building as module Ley Foon Tan
2019-04-24 4:57 ` [PATCH] PCI: altera-msi: " Ley Foon Tan
2019-05-14 5:35 ` Ley Foon Tan
2019-05-15 13:59 ` Lorenzo Pieralisi
2019-05-16 2:12 ` Ley Foon Tan [this message]
2019-05-30 15:08 ` Lorenzo Pieralisi
2019-05-14 5:35 ` [PATCH] PCI: altera: " Ley Foon Tan
2019-05-30 15:07 ` Lorenzo Pieralisi
2019-06-04 13:18 ` Bjorn Helgaas
2019-06-11 7:22 ` Ley Foon Tan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFiDJ5-1YncDFFES+vj2bnaRwq74RT=s0KB9FBpYFt-r9T+a2g@mail.gmail.com' \
--to=lftan.linux@gmail.com \
--cc=bhelgaas@google.com \
--cc=devicetree@vger.kernel.org \
--cc=ley.foon.tan@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).