* Re: [PATCH] PCI: layerscape: add ls2085a compatible [not found] <1453915925-19198-1-git-send-email-yang.shi@linaro.org> @ 2016-02-05 20:38 ` Bjorn Helgaas 2016-02-05 20:45 ` Shi, Yang 0 siblings, 1 reply; 4+ messages in thread From: Bjorn Helgaas @ 2016-02-05 20:38 UTC (permalink / raw) To: Yang Shi Cc: Mingkai.Hu, Minghuan.Lian, bhelgaas, linux-pci, linux-kernel, linux-arm-kernel, linaro-kernel, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree [+cc Rob, et al] On Wed, Jan 27, 2016 at 09:32:05AM -0800, Yang Shi wrote: > The layerscape PCI host driver needs recognize ls2085a compatible when using > firmware with ls2085a compatible property, otherwise the PCI bus won't be > detected even though ls2085a compatible is included by the dts. > > Signed-off-by: Yang Shi <yang.shi@linaro.org> > --- > drivers/pci/host/pci-layerscape.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c > index 3923bed..c40d8b2 100644 > --- a/drivers/pci/host/pci-layerscape.c > +++ b/drivers/pci/host/pci-layerscape.c > @@ -203,6 +203,7 @@ static const struct of_device_id ls_pcie_of_match[] = { > { .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata }, > { .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata }, > { .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata }, > + { .compatible = "fsl,ls2085a-pcie", .data = &ls2080_drvdata }, Hmm, "fsl,ls2085a-pcie" doesn't appear in Documentation/devicetree/bindings/pci/. Aren't we supposed to add these strings to the bindings before or at the same time we add them to drivers? checkpatch doesn't complain though, so maybe I'm wrong about this. > { }, > }; > MODULE_DEVICE_TABLE(of, ls_pcie_of_match); > -- > 2.0.2 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] PCI: layerscape: add ls2085a compatible 2016-02-05 20:38 ` [PATCH] PCI: layerscape: add ls2085a compatible Bjorn Helgaas @ 2016-02-05 20:45 ` Shi, Yang 2016-02-05 22:25 ` Bjorn Helgaas 0 siblings, 1 reply; 4+ messages in thread From: Shi, Yang @ 2016-02-05 20:45 UTC (permalink / raw) To: Bjorn Helgaas Cc: Mingkai.Hu, Minghuan.Lian, bhelgaas, linux-pci, linux-kernel, linux-arm-kernel, linaro-kernel, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree On 2/5/2016 12:38 PM, Bjorn Helgaas wrote: > [+cc Rob, et al] > > On Wed, Jan 27, 2016 at 09:32:05AM -0800, Yang Shi wrote: >> The layerscape PCI host driver needs recognize ls2085a compatible when using >> firmware with ls2085a compatible property, otherwise the PCI bus won't be >> detected even though ls2085a compatible is included by the dts. >> >> Signed-off-by: Yang Shi <yang.shi@linaro.org> >> --- >> drivers/pci/host/pci-layerscape.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c >> index 3923bed..c40d8b2 100644 >> --- a/drivers/pci/host/pci-layerscape.c >> +++ b/drivers/pci/host/pci-layerscape.c >> @@ -203,6 +203,7 @@ static const struct of_device_id ls_pcie_of_match[] = { >> { .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata }, >> { .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata }, >> { .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata }, >> + { .compatible = "fsl,ls2085a-pcie", .data = &ls2080_drvdata }, > > Hmm, "fsl,ls2085a-pcie" doesn't appear in > Documentation/devicetree/bindings/pci/. > > Aren't we supposed to add these strings to the bindings before or at > the same time we add them to drivers? The below patch will add it into dts and binding doc. I should mentioned this in the commit log. https://patchwork.kernel.org/patch/7767061/ Thanks, Yang > > checkpatch doesn't complain though, so maybe I'm wrong about this. > >> { }, >> }; >> MODULE_DEVICE_TABLE(of, ls_pcie_of_match); >> -- >> 2.0.2 >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-pci" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] PCI: layerscape: add ls2085a compatible 2016-02-05 20:45 ` Shi, Yang @ 2016-02-05 22:25 ` Bjorn Helgaas 2016-02-17 2:17 ` Mingkai Hu 0 siblings, 1 reply; 4+ messages in thread From: Bjorn Helgaas @ 2016-02-05 22:25 UTC (permalink / raw) To: Shi, Yang Cc: Mingkai.Hu, Minghuan.Lian, bhelgaas, linux-pci, linux-kernel, linux-arm-kernel, linaro-kernel, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree On Fri, Feb 05, 2016 at 12:45:25PM -0800, Shi, Yang wrote: > On 2/5/2016 12:38 PM, Bjorn Helgaas wrote: > >[+cc Rob, et al] > > > >On Wed, Jan 27, 2016 at 09:32:05AM -0800, Yang Shi wrote: > >>The layerscape PCI host driver needs recognize ls2085a compatible when using > >>firmware with ls2085a compatible property, otherwise the PCI bus won't be > >>detected even though ls2085a compatible is included by the dts. > >> > >>Signed-off-by: Yang Shi <yang.shi@linaro.org> > >>--- > >> drivers/pci/host/pci-layerscape.c | 1 + > >> 1 file changed, 1 insertion(+) > >> > >>diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c > >>index 3923bed..c40d8b2 100644 > >>--- a/drivers/pci/host/pci-layerscape.c > >>+++ b/drivers/pci/host/pci-layerscape.c > >>@@ -203,6 +203,7 @@ static const struct of_device_id ls_pcie_of_match[] = { > >> { .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata }, > >> { .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata }, > >> { .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata }, > >>+ { .compatible = "fsl,ls2085a-pcie", .data = &ls2080_drvdata }, > > > >Hmm, "fsl,ls2085a-pcie" doesn't appear in > >Documentation/devicetree/bindings/pci/. > > > >Aren't we supposed to add these strings to the bindings before or at > >the same time we add them to drivers? > > The below patch will add it into dts and binding doc. I should > mentioned this in the commit log. > > https://patchwork.kernel.org/patch/7767061/ OK. This is really annoying as a reviewer. To me, adding "fsl,ls2085a-pcie" to: - the binding in Documentation/devicetree/bindings/pci/layerscape-pci.txt - the DT in arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi - the driver in drivers/pci/host/pci-layerscape.c are all logically related, and it would make sense to have them all in a single patch. But whatever. I applied this to pci/host-layerscape for v4.6. > >checkpatch doesn't complain though, so maybe I'm wrong about this. > > > >> { }, > >> }; > >> MODULE_DEVICE_TABLE(of, ls_pcie_of_match); > >>-- > >>2.0.2 > >> > >>-- > >>To unsubscribe from this list: send the line "unsubscribe linux-pci" in > >>the body of a message to majordomo@vger.kernel.org > >>More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] PCI: layerscape: add ls2085a compatible 2016-02-05 22:25 ` Bjorn Helgaas @ 2016-02-17 2:17 ` Mingkai Hu 0 siblings, 0 replies; 4+ messages in thread From: Mingkai Hu @ 2016-02-17 2:17 UTC (permalink / raw) To: Bjorn Helgaas, Shi, Yang Cc: Mark Rutland, devicetree@vger.kernel.org, linaro-kernel@lists.linaro.org, Pawel Moll, Ian Campbell, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Minghuan.Lian@freescale.com, Rob Herring, Kumar Gala, bhelgaas@google.com, Mingkai.Hu@freescale.com, linux-arm-kernel@lists.infradead.org > -----Original Message----- > From: Bjorn Helgaas [mailto:helgaas@kernel.org] > Sent: Saturday, February 06, 2016 6:25 AM > To: Shi, Yang > Cc: Mingkai.Hu@freescale.com; Minghuan.Lian@freescale.com; > bhelgaas@google.com; linux-pci@vger.kernel.org; linux- > kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linaro- > kernel@lists.linaro.org; Rob Herring; Pawel Moll; Mark Rutland; Ian > Campbell; Kumar Gala; devicetree@vger.kernel.org > Subject: Re: [PATCH] PCI: layerscape: add ls2085a compatible > > On Fri, Feb 05, 2016 at 12:45:25PM -0800, Shi, Yang wrote: > > On 2/5/2016 12:38 PM, Bjorn Helgaas wrote: > > >[+cc Rob, et al] > > > > > >On Wed, Jan 27, 2016 at 09:32:05AM -0800, Yang Shi wrote: > > >>The layerscape PCI host driver needs recognize ls2085a compatible > > >>when using firmware with ls2085a compatible property, otherwise the > > >>PCI bus won't be detected even though ls2085a compatible is included > by the dts. > > >> > > >>Signed-off-by: Yang Shi <yang.shi@linaro.org> > > >>--- > > >> drivers/pci/host/pci-layerscape.c | 1 + > > >> 1 file changed, 1 insertion(+) > > >> > > >>diff --git a/drivers/pci/host/pci-layerscape.c > > >>b/drivers/pci/host/pci-layerscape.c > > >>index 3923bed..c40d8b2 100644 > > >>--- a/drivers/pci/host/pci-layerscape.c > > >>+++ b/drivers/pci/host/pci-layerscape.c > > >>@@ -203,6 +203,7 @@ static const struct of_device_id > ls_pcie_of_match[] = { > > >> { .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata }, > > >> { .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata }, > > >> { .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata }, > > >>+ { .compatible = "fsl,ls2085a-pcie", .data = &ls2080_drvdata }, > > > > > >Hmm, "fsl,ls2085a-pcie" doesn't appear in > > >Documentation/devicetree/bindings/pci/. > > > > > >Aren't we supposed to add these strings to the bindings before or at > > >the same time we add them to drivers? > > > > The below patch will add it into dts and binding doc. I should > > mentioned this in the commit log. > > > > https://patchwork.kernel.org/patch/7767061/ > > OK. This is really annoying as a reviewer. To me, adding "fsl,ls2085a- > pcie" to: > > - the binding in Documentation/devicetree/bindings/pci/layerscape- > pci.txt > - the DT in arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi > - the driver in drivers/pci/host/pci-layerscape.c > > are all logically related, and it would make sense to have them all in a > single patch. > > But whatever. I applied this to pci/host-layerscape for v4.6. > Bojon, I have sent version3 of the patch to add strings to the bindings and dts file. https://patchwork.kernel.org/patch/8333761/ Sorry for the delayed response due to Chinese New Year holiday. Thanks, Mingkai ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-17 2:17 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1453915925-19198-1-git-send-email-yang.shi@linaro.org> 2016-02-05 20:38 ` [PATCH] PCI: layerscape: add ls2085a compatible Bjorn Helgaas 2016-02-05 20:45 ` Shi, Yang 2016-02-05 22:25 ` Bjorn Helgaas 2016-02-17 2:17 ` Mingkai Hu
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).