On Tue, Feb 02, 2021 at 09:06:31AM +0000, Daire.McNamara@xxxxxxxxxxxxx wrote: > > > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ > From: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx> > Sent: Monday 1 February 2021 19:05 > To: Daire McNamara - X61553 <Daire.McNamara@xxxxxxxxxxxxx> > Cc: bhelgaas@xxxxxxxxxx <bhelgaas@xxxxxxxxxx>; robh@xxxxxxxxxx > <robh@xxxxxxxxxx>; linux-pci@xxxxxxxxxxxxxxx <linux-pci@xxxxxxxxxxxxxxx>; > robh+dt@xxxxxxxxxx <robh+dt@xxxxxxxxxx>; devicetree@xxxxxxxxxxxxxxx > <devicetree@xxxxxxxxxxxxxxx>; david.abdurachmanov@xxxxxxxxx > <david.abdurachmanov@xxxxxxxxx>; Cyril Jean - M31571 <Cyril.Jean@xxxxxxxxxxxxx> > Subject: Re: [PATCH v21 3/4] PCI: microchip: Add host driver for Microchip PCIe > controller > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, Jan 25, 2021 at 04:29:33PM +0000, daire.mcnamara@xxxxxxxxxxxxx wrote: > > From: Daire McNamara <daire.mcnamara@xxxxxxxxxxxxx> > > > > Add support for the Microchip PolarFire PCIe controller when > > configured in host (Root Complex) mode. > > > > Signed-off-by: Daire McNamara <daire.mcnamara@xxxxxxxxxxxxx> > > Reviewed-by: Rob Herring <robh@xxxxxxxxxx> > > --- > > drivers/pci/controller/Kconfig | 10 + > > drivers/pci/controller/Makefile | 1 + > > drivers/pci/controller/pcie-microchip-host.c | 1114 ++++++++++++++++++ > > 3 files changed, 1125 insertions(+) > > create mode 100644 drivers/pci/controller/pcie-microchip-host.c > > > > diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig > > index 64e2f5e379aa..bca2f8949510 100644 > > --- a/drivers/pci/controller/Kconfig > > +++ b/drivers/pci/controller/Kconfig > > @@ -298,6 +298,16 @@ config PCI_LOONGSON > > Say Y here if you want to enable PCI controller support on > > Loongson systems. > > > > +config PCIE_MICROCHIP_HOST > > + bool "Microchip AXI PCIe host bridge support" > > + depends on PCI_MSI && OF > > + select PCI_MSI_IRQ_DOMAIN > > + select GENERIC_MSI_IRQ_DOMAIN > > + select PCI_HOST_COMMON > > + help > > + Say Y here if you want kernel to support the Microchip AXI PCIe > > + Host Bridge driver. > > + > > config PCIE_HISI_ERR > > depends on ACPI_APEI_GHES && (ARM64 || COMPILE_TEST) > > bool "HiSilicon HIP PCIe controller error handling driver" > > diff --git a/drivers/pci/controller/Makefile b/drivers/pci/controller/ > Makefile > > index 04c6edc285c5..b85fcd574ff6 100644 > > --- a/drivers/pci/controller/Makefile > > +++ b/drivers/pci/controller/Makefile > > @@ -28,6 +28,7 @@ obj-$(CONFIG_PCIE_ROCKCHIP_EP) += pcie-rockchip-ep.o > > obj-$(CONFIG_PCIE_ROCKCHIP_HOST) += pcie-rockchip-host.o > > obj-$(CONFIG_PCIE_MEDIATEK) += pcie-mediatek.o > > obj-$(CONFIG_PCIE_TANGO_SMP8759) += pcie-tango.o > > +obj-$(CONFIG_PCIE_MICROCHIP_HOST) += pcie-microchip-host.o > > obj-$(CONFIG_VMD) += vmd.o > > obj-$(CONFIG_PCIE_BRCMSTB) += pcie-brcmstb.o > > obj-$(CONFIG_PCI_LOONGSON) += pci-loongson.o > > diff --git a/drivers/pci/controller/pcie-microchip-host.c b/drivers/pci/ > controller/pcie-microchip-host.c > > new file mode 100644 > > index 000000000000..0ef2beab185b > > --- /dev/null > > +++ b/drivers/pci/controller/pcie-microchip-host.c > > @@ -0,0 +1,1114 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Microchip AXI PCIe Bridge host controller driver > > + * > > + * Copyright (c) 2018 - 2020 Microchip Corporation. All rights reserved. > 2021 - I will update it for you if that's OK. > > Yes, please, that would be great. > > > + * Author: Daire McNamara <daire.mcnamara@xxxxxxxxxxxxx> > > + * > > + * Based on: > > + * pcie-rcar.c > > + * pcie-xilinx.c > > + * pcie-altera.c > > Can I remove these references please ? I said that before, let me know > please, do not respost another version. > > Yes, please. Sorry I must have missed the question before. Replies must be quoted and you must not send HTML format on ML, (this was rejected by the ML and all the related tools) and that's not the first time I mentioned that. You must NOT do it and that's the last time I am saying that. Please read: https://kernelnewbies.org/PatchCulture It is your maintainer responsibility to follow the ML and act responsibly following the email etiquette, I don't have this HW and you are the one that from now onwards is in charge of maintaining this code which implies reviewing patches and actively following mailing lists. Having said that, let's proceed with upstreaming the code, keep this in mind please. Thanks, Lorenzo