All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH pci/next] PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar
@ 2016-12-01 16:28 Simon Horman
  2016-12-02  9:19 ` Geert Uytterhoeven
       [not found] ` <1480609693-25746-1-git-send-email-horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Simon Horman @ 2016-12-01 16:28 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Phil Edworthy, Magnus Damm, linux-pci, linux-renesas-soc,
	Rob Herring, devicetree, Simon Horman

Add fallback compatibility string for the  R-Car Gen 3 family.  This is in
keeping with the both the existing fallback compatibility string for the
R-Car Gen 2 family and the fallback scheme being adopted wherever
appropriate for drivers for Renesas SoCs.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 Documentation/devicetree/bindings/pci/rcar-pci.txt | 1 +
 drivers/pci/host/pcie-rcar.c                       | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/pci/rcar-pci.txt b/Documentation/devicetree/bindings/pci/rcar-pci.txt
index 6cf99690eef9..eee518db90b9 100644
--- a/Documentation/devicetree/bindings/pci/rcar-pci.txt
+++ b/Documentation/devicetree/bindings/pci/rcar-pci.txt
@@ -7,6 +7,7 @@ compatible: "renesas,pcie-r8a7779" for the R8A7779 SoC;
 	    "renesas,pcie-r8a7793" for the R8A7793 SoC;
 	    "renesas,pcie-r8a7795" for the R8A7795 SoC;
 	    "renesas,pcie-rcar-gen2" for a generic R-Car Gen2 compatible device.
+	    "renesas,pcie-rcar-gen3" for a generic R-Car Gen3 compatible device.
 
 	    When compatible with the generic version, nodes must list the
 	    SoC-specific version corresponding to the platform first
diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
index 62700d1896f4..962aa3942107 100644
--- a/drivers/pci/host/pcie-rcar.c
+++ b/drivers/pci/host/pcie-rcar.c
@@ -1077,6 +1077,8 @@ static const struct of_device_id rcar_pcie_of_match[] = {
 	  .data = rcar_pcie_hw_init_gen2 },
 	{ .compatible = "renesas,pcie-r8a7791",
 	  .data = rcar_pcie_hw_init_gen2 },
+	{ .compatible = "renesas,pcie-rcar-gen3",
+	  .data = rcar_pcie_hw_init_hw_init },
 	{ .compatible = "renesas,pcie-r8a7795", .data = rcar_pcie_hw_init },
 	{},
 };
-- 
2.7.0.rc3.207.g0ac5344

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH pci/next] PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar
  2016-12-01 16:28 [PATCH pci/next] PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar Simon Horman
@ 2016-12-02  9:19 ` Geert Uytterhoeven
  2016-12-02  9:33   ` Simon Horman
       [not found] ` <1480609693-25746-1-git-send-email-horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2016-12-02  9:19 UTC (permalink / raw)
  To: Simon Horman
  Cc: Bjorn Helgaas, Phil Edworthy, Magnus Damm, linux-pci,
	Linux-Renesas, Rob Herring, devicetree

Hi Simon,

On Thu, Dec 1, 2016 at 5:28 PM, Simon Horman <horms+renesas@verge.net.au> wrote:
> Add fallback compatibility string for the  R-Car Gen 3 family.  This is in
> keeping with the both the existing fallback compatibility string for the
> R-Car Gen 2 family and the fallback scheme being adopted wherever
> appropriate for drivers for Renesas SoCs.
>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> ---
>  Documentation/devicetree/bindings/pci/rcar-pci.txt | 1 +
>  drivers/pci/host/pcie-rcar.c                       | 2 ++
>  2 files changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/pci/rcar-pci.txt b/Documentation/devicetree/bindings/pci/rcar-pci.txt
> index 6cf99690eef9..eee518db90b9 100644
> --- a/Documentation/devicetree/bindings/pci/rcar-pci.txt
> +++ b/Documentation/devicetree/bindings/pci/rcar-pci.txt
> @@ -7,6 +7,7 @@ compatible: "renesas,pcie-r8a7779" for the R8A7779 SoC;
>             "renesas,pcie-r8a7793" for the R8A7793 SoC;
>             "renesas,pcie-r8a7795" for the R8A7795 SoC;
>             "renesas,pcie-rcar-gen2" for a generic R-Car Gen2 compatible device.
> +           "renesas,pcie-rcar-gen3" for a generic R-Car Gen3 compatible device.
>
>             When compatible with the generic version, nodes must list the
>             SoC-specific version corresponding to the platform first
> diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
> index 62700d1896f4..962aa3942107 100644
> --- a/drivers/pci/host/pcie-rcar.c
> +++ b/drivers/pci/host/pcie-rcar.c
> @@ -1077,6 +1077,8 @@ static const struct of_device_id rcar_pcie_of_match[] = {
>           .data = rcar_pcie_hw_init_gen2 },
>         { .compatible = "renesas,pcie-r8a7791",
>           .data = rcar_pcie_hw_init_gen2 },
> +       { .compatible = "renesas,pcie-rcar-gen3",
> +         .data = rcar_pcie_hw_init_hw_init },

The family-specific handling should be inserted after the SoC-specific
handling.
Currently it doesn't matter, as both are handled exactly the same, but
it may avoid future mistakes.

BTW, can you please fix that for the existing entry for Gen2, too?

Thanks!

>         { .compatible = "renesas,pcie-r8a7795", .data = rcar_pcie_hw_init },
>         {},
>  };

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH pci/next] PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar
  2016-12-02  9:19 ` Geert Uytterhoeven
@ 2016-12-02  9:33   ` Simon Horman
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2016-12-02  9:33 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Bjorn Helgaas, Phil Edworthy, Magnus Damm, linux-pci,
	Linux-Renesas, Rob Herring, devicetree

On Fri, Dec 02, 2016 at 10:19:21AM +0100, Geert Uytterhoeven wrote:
> Hi Simon,
> 
> On Thu, Dec 1, 2016 at 5:28 PM, Simon Horman <horms+renesas@verge.net.au> wrote:
> > Add fallback compatibility string for the  R-Car Gen 3 family.  This is in
> > keeping with the both the existing fallback compatibility string for the
> > R-Car Gen 2 family and the fallback scheme being adopted wherever
> > appropriate for drivers for Renesas SoCs.
> >
> > Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> > ---
> >  Documentation/devicetree/bindings/pci/rcar-pci.txt | 1 +
> >  drivers/pci/host/pcie-rcar.c                       | 2 ++
> >  2 files changed, 3 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/pci/rcar-pci.txt b/Documentation/devicetree/bindings/pci/rcar-pci.txt
> > index 6cf99690eef9..eee518db90b9 100644
> > --- a/Documentation/devicetree/bindings/pci/rcar-pci.txt
> > +++ b/Documentation/devicetree/bindings/pci/rcar-pci.txt
> > @@ -7,6 +7,7 @@ compatible: "renesas,pcie-r8a7779" for the R8A7779 SoC;
> >             "renesas,pcie-r8a7793" for the R8A7793 SoC;
> >             "renesas,pcie-r8a7795" for the R8A7795 SoC;
> >             "renesas,pcie-rcar-gen2" for a generic R-Car Gen2 compatible device.
> > +           "renesas,pcie-rcar-gen3" for a generic R-Car Gen3 compatible device.
> >
> >             When compatible with the generic version, nodes must list the
> >             SoC-specific version corresponding to the platform first
> > diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
> > index 62700d1896f4..962aa3942107 100644
> > --- a/drivers/pci/host/pcie-rcar.c
> > +++ b/drivers/pci/host/pcie-rcar.c
> > @@ -1077,6 +1077,8 @@ static const struct of_device_id rcar_pcie_of_match[] = {
> >           .data = rcar_pcie_hw_init_gen2 },
> >         { .compatible = "renesas,pcie-r8a7791",
> >           .data = rcar_pcie_hw_init_gen2 },
> > +       { .compatible = "renesas,pcie-rcar-gen3",
> > +         .data = rcar_pcie_hw_init_hw_init },
> 
> The family-specific handling should be inserted after the SoC-specific
> handling.
> Currently it doesn't matter, as both are handled exactly the same, but
> it may avoid future mistakes.
> 
> BTW, can you please fix that for the existing entry for Gen2, too?

Sure, will do.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH pci/next] PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar
  2016-12-01 16:28 [PATCH pci/next] PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar Simon Horman
@ 2016-12-02 20:58     ` kbuild test robot
       [not found] ` <1480609693-25746-1-git-send-email-horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
  1 sibling, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2016-12-02 20:58 UTC (permalink / raw)
  Cc: kbuild-all-JC7UmRfGjtg, Bjorn Helgaas, Phil Edworthy,
	Magnus Damm, linux-pci-u79uwXL29TY76Z2rM5mHXA,
	linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Rob Herring,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Simon Horman

[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]

Hi Simon,

[auto build test ERROR on pci/next]

url:    https://github.com/0day-ci/linux/commits/Simon-Horman/PCI-rcar-Add-gen3-fallback-compatibility-string-for-pcie-rcar/20161203-030440
base:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> drivers/pci/host/pcie-rcar.c:1081:12: error: 'rcar_pcie_hw_init_hw_init' undeclared here (not in a function)
       .data = rcar_pcie_hw_init_hw_init },
               ^~~~~~~~~~~~~~~~~~~~~~~~~

vim +/rcar_pcie_hw_init_hw_init +1081 drivers/pci/host/pcie-rcar.c

  1075		  .data = rcar_pcie_hw_init_gen2 },
  1076		{ .compatible = "renesas,pcie-r8a7790",
  1077		  .data = rcar_pcie_hw_init_gen2 },
  1078		{ .compatible = "renesas,pcie-r8a7791",
  1079		  .data = rcar_pcie_hw_init_gen2 },
  1080		{ .compatible = "renesas,pcie-rcar-gen3",
> 1081		  .data = rcar_pcie_hw_init_hw_init },
  1082		{ .compatible = "renesas,pcie-r8a7795", .data = rcar_pcie_hw_init },
  1083		{},
  1084	};

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 52465 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH pci/next] PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar
@ 2016-12-02 20:58     ` kbuild test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2016-12-02 20:58 UTC (permalink / raw)
  To: Simon Horman
  Cc: kbuild-all, Bjorn Helgaas, Phil Edworthy, Magnus Damm, linux-pci,
	linux-renesas-soc, Rob Herring, devicetree, Simon Horman

[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]

Hi Simon,

[auto build test ERROR on pci/next]

url:    https://github.com/0day-ci/linux/commits/Simon-Horman/PCI-rcar-Add-gen3-fallback-compatibility-string-for-pcie-rcar/20161203-030440
base:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> drivers/pci/host/pcie-rcar.c:1081:12: error: 'rcar_pcie_hw_init_hw_init' undeclared here (not in a function)
       .data = rcar_pcie_hw_init_hw_init },
               ^~~~~~~~~~~~~~~~~~~~~~~~~

vim +/rcar_pcie_hw_init_hw_init +1081 drivers/pci/host/pcie-rcar.c

  1075		  .data = rcar_pcie_hw_init_gen2 },
  1076		{ .compatible = "renesas,pcie-r8a7790",
  1077		  .data = rcar_pcie_hw_init_gen2 },
  1078		{ .compatible = "renesas,pcie-r8a7791",
  1079		  .data = rcar_pcie_hw_init_gen2 },
  1080		{ .compatible = "renesas,pcie-rcar-gen3",
> 1081		  .data = rcar_pcie_hw_init_hw_init },
  1082		{ .compatible = "renesas,pcie-r8a7795", .data = rcar_pcie_hw_init },
  1083		{},
  1084	};

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 52465 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-12-02 20:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-01 16:28 [PATCH pci/next] PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar Simon Horman
2016-12-02  9:19 ` Geert Uytterhoeven
2016-12-02  9:33   ` Simon Horman
     [not found] ` <1480609693-25746-1-git-send-email-horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2016-12-02 20:58   ` kbuild test robot
2016-12-02 20:58     ` kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.