All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add R-Car gen3 SoC support to the CMT driver
@ 2018-09-05 20:27 ` Sergei Shtylyov
  0 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-05 20:27 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh, Mark Rutland

Hello!

Here's the set of 2 patches against the 'tip.git' repo's 'timers/core' branch
plus the driver fixup for the 64-bit machines posted recently. We're adding
support for the CMT0 and CMT1 found in the R-Car gen3 SoCs.

[1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
[2/2] clocksource: sh_cmt: add R-Car gen3 support

MBR, Sergei

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

* [PATCH 0/2] Add R-Car gen3 SoC support to the CMT driver
@ 2018-09-05 20:27 ` Sergei Shtylyov
  0 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-05 20:27 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh, Mark Rutland

Hello!

Here's the set of 2 patches against the 'tip.git' repo's 'timers/core' branch
plus the driver fixup for the 64-bit machines posted recently. We're adding
support for the CMT0 and CMT1 found in the R-Car gen3 SoCs.

[1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
[2/2] clocksource: sh_cmt: add R-Car gen3 support

MBR, Sergei

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

* [PATCH 1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
  2018-09-05 20:27 ` Sergei Shtylyov
@ 2018-09-05 20:30   ` Sergei Shtylyov
  -1 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-05 20:30 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner; +Cc: linux-renesas-soc, linux-sh

There's no good reason for the sh_cmt_of_table[] initializer to
violate the 80-column limit, especially after the commit 8d50e9476bb4
("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated")
partially fixed it -- fix the R-Car gen2 related entries as well.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 drivers/clocksource/sh_cmt.c |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Index: renesas/drivers/clocksource/sh_cmt.c
=================================--- renesas.orig/drivers/clocksource/sh_cmt.c
+++ renesas/drivers/clocksource/sh_cmt.c
@@ -937,8 +937,14 @@ static const struct of_device_id sh_cmt_
 		.compatible = "renesas,cmt-48-gen2",
 		.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
 	},
-	{ .compatible = "renesas,rcar-gen2-cmt0", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] },
-	{ .compatible = "renesas,rcar-gen2-cmt1", .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] },
+	{
+		.compatible = "renesas,rcar-gen2-cmt0",
+		.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
+	},
+	{
+		.compatible = "renesas,rcar-gen2-cmt1",
+		.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, sh_cmt_of_table);

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

* [PATCH 1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
@ 2018-09-05 20:30   ` Sergei Shtylyov
  0 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-05 20:30 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner; +Cc: linux-renesas-soc, linux-sh

There's no good reason for the sh_cmt_of_table[] initializer to
violate the 80-column limit, especially after the commit 8d50e9476bb4
("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated")
partially fixed it -- fix the R-Car gen2 related entries as well.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 drivers/clocksource/sh_cmt.c |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Index: renesas/drivers/clocksource/sh_cmt.c
===================================================================
--- renesas.orig/drivers/clocksource/sh_cmt.c
+++ renesas/drivers/clocksource/sh_cmt.c
@@ -937,8 +937,14 @@ static const struct of_device_id sh_cmt_
 		.compatible = "renesas,cmt-48-gen2",
 		.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
 	},
-	{ .compatible = "renesas,rcar-gen2-cmt0", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] },
-	{ .compatible = "renesas,rcar-gen2-cmt1", .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] },
+	{
+		.compatible = "renesas,rcar-gen2-cmt0",
+		.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
+	},
+	{
+		.compatible = "renesas,rcar-gen2-cmt1",
+		.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, sh_cmt_of_table);

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

* [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
  2018-09-05 20:27 ` Sergei Shtylyov
@ 2018-09-05 20:32   ` Sergei Shtylyov
  -1 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-05 20:32 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh

Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
bindings as these are the R-Car gen3 SoCs for which the initial support
was done.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 Documentation/devicetree/bindings/timer/renesas,cmt.txt |    7 +++++++
 drivers/clocksource/sh_cmt.c                            |    8 ++++++++
 2 files changed, 15 insertions(+)

Index: renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
=================================--- renesas.orig/Documentation/devicetree/bindings/timer/renesas,cmt.txt
+++ renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
@@ -34,6 +34,10 @@ Required Properties:
     - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793.
     - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794.
     - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794.
+    - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in r8a77970.
+    - "renesas,r8a77970-cmt1" for the 48-bit CMT1 device included in r8a77970.
+    - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in r8a77980.
+    - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in r8a77980.
 
     - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2
 		and RZ/G1.
@@ -41,6 +45,9 @@ Required Properties:
 		and RZ/G1.
 		These are fallbacks for r8a73a4, R-Car Gen2 and RZ/G1 entries
 		listed above.
+    - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car Gen3.
+    - "renesas,rcar-gen3-cmt1" for 48-bit CMT1 devices included in R-Car Gen3.
+		These are fallbacks for R-Car Gen3 entries listed above.
 
   - reg: base address and length of the registers block for the timer module.
   - interrupts: interrupt-specifier for the timer, one per channel.
Index: renesas/drivers/clocksource/sh_cmt.c
=================================--- renesas.orig/drivers/clocksource/sh_cmt.c
+++ renesas/drivers/clocksource/sh_cmt.c
@@ -945,6 +945,14 @@ static const struct of_device_id sh_cmt_
 		.compatible = "renesas,rcar-gen2-cmt1",
 		.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
 	},
+	{
+		.compatible = "renesas,rcar-gen3-cmt0",
+		.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
+	},
+	{
+		.compatible = "renesas,rcar-gen3-cmt1",
+		.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, sh_cmt_of_table);

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

* [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
@ 2018-09-05 20:32   ` Sergei Shtylyov
  0 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-05 20:32 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh

Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
bindings as these are the R-Car gen3 SoCs for which the initial support
was done.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 Documentation/devicetree/bindings/timer/renesas,cmt.txt |    7 +++++++
 drivers/clocksource/sh_cmt.c                            |    8 ++++++++
 2 files changed, 15 insertions(+)

Index: renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
===================================================================
--- renesas.orig/Documentation/devicetree/bindings/timer/renesas,cmt.txt
+++ renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
@@ -34,6 +34,10 @@ Required Properties:
     - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793.
     - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794.
     - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794.
+    - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in r8a77970.
+    - "renesas,r8a77970-cmt1" for the 48-bit CMT1 device included in r8a77970.
+    - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in r8a77980.
+    - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in r8a77980.
 
     - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2
 		and RZ/G1.
@@ -41,6 +45,9 @@ Required Properties:
 		and RZ/G1.
 		These are fallbacks for r8a73a4, R-Car Gen2 and RZ/G1 entries
 		listed above.
+    - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car Gen3.
+    - "renesas,rcar-gen3-cmt1" for 48-bit CMT1 devices included in R-Car Gen3.
+		These are fallbacks for R-Car Gen3 entries listed above.
 
   - reg: base address and length of the registers block for the timer module.
   - interrupts: interrupt-specifier for the timer, one per channel.
Index: renesas/drivers/clocksource/sh_cmt.c
===================================================================
--- renesas.orig/drivers/clocksource/sh_cmt.c
+++ renesas/drivers/clocksource/sh_cmt.c
@@ -945,6 +945,14 @@ static const struct of_device_id sh_cmt_
 		.compatible = "renesas,rcar-gen2-cmt1",
 		.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
 	},
+	{
+		.compatible = "renesas,rcar-gen3-cmt0",
+		.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
+	},
+	{
+		.compatible = "renesas,rcar-gen3-cmt1",
+		.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, sh_cmt_of_table);

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

* RE: [PATCH 1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
  2018-09-05 20:30   ` Sergei Shtylyov
@ 2018-09-06  8:06     ` Chris Paterson
  -1 siblings, 0 replies; 20+ messages in thread
From: Chris Paterson @ 2018-09-06  8:06 UTC (permalink / raw)
  To: Sergei Shtylyov, Daniel Lezcano, Thomas Gleixner
  Cc: linux-renesas-soc, linux-sh

SGVsbG8gU2VyZ2VpLA0KDQo+IEZyb206IGxpbnV4LXNoLW93bmVyQHZnZXIua2VybmVsLm9yZyA8
bGludXgtc2gtb3duZXJAdmdlci5rZXJuZWwub3JnPg0KPiBPbiBCZWhhbGYgT2YgU2VyZ2VpIFNo
dHlseW92DQo+IFNlbnQ6IDA1IFNlcHRlbWJlciAyMDE4IDIxOjMxDQo+IA0KPiBUaGVyZSdzIG5v
IGdvb2QgcmVhc29uIGZvciB0aGUgc2hfY210X29mX3RhYmxlW10gaW5pdGlhbGl6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ZpY2VfaWQgc2hfY210Xw0K
PiAgCQkuY29tcGF0aWJsZSA9ICJyZW5lc2FzLGNtdC00OC1nZW4yIiwNCj4gIAkJLmRhdGEgPSAm
c2hfY210X2luZm9bU0hfQ01UMF9SQ0FSX0dFTjJdDQo+ICAJfSwNCj4gLQl7IC5jb21wYXRpYmxl
ID0gInJlbmVzYXMscmNhci1nZW4yLWNtdDAiLCAuZGF0YSA9DQo+ICZzaF9jbXRfaW5mb1tTSF9D
TVQwX1JDQVJfR0VOMl0gfSwNCj4gLQl7IC5jb21wYXRpYmxlID0gInJlbmVzYXMscmNhci1nZW4y
LWNtdDEiLCAuZGF0YSA9DQo+ICZzaF9jbXRfaW5mb1tTSF9DTVQxX1JDQVJfR0VOMl0gfSwNCj4g
Kwl7DQo+ICsJCS5jb21wYXRpYmxlID0gInJlbmVzYXMscmNhci1nZW4yLWNtdDAiLA0KPiArCQku
ZGF0YSA9ICZzaF9jbXRfaW5mb1tTSF9DTVQwX1JDQVJfR0VOMl0NCj4gKwl9LA0KPiArCXsNCj4g
KwkJLmNvbXBhdGlibGUgPSAicmVuZXNhcyxyY2FyLWdlbjItY210MSIsDQo+ICsJCS5kYXRhID0g
JnNoX2NtdF9pbmZvW1NIX0NNVDFfUkNBUl9HRU4yXQ0KPiArCX0sDQo+ICAJeyB9DQo+ICB9Ow0K
PiAgTU9EVUxFX0RFVklDRV9UQUJMRShvZiwgc2hfY210X29mX3RhYmxlKTsNCg=

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

* RE: [PATCH 1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
@ 2018-09-06  8:06     ` Chris Paterson
  0 siblings, 0 replies; 20+ messages in thread
From: Chris Paterson @ 2018-09-06  8:06 UTC (permalink / raw)
  To: Sergei Shtylyov, Daniel Lezcano, Thomas Gleixner
  Cc: linux-renesas-soc, linux-sh

Hello Sergei,

> From: linux-sh-owner@vger.kernel.org <linux-sh-owner@vger.kernel.org>
> On Behalf Of Sergei Shtylyov
> Sent: 05 September 2018 21:31
> 
> There's no good reason for the sh_cmt_of_table[] initializer to violate the 80-
> column limit, especially after the commit 8d50e9476bb4
> ("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated")
> partially fixed it -- fix the R-Car gen2 related entries as well.

Seems sensible to me.

Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

Kind regards, Chris

> 
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> 
> ---
>  drivers/clocksource/sh_cmt.c |   10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> Index: renesas/drivers/clocksource/sh_cmt.c
> ==========================================================
> =========
> --- renesas.orig/drivers/clocksource/sh_cmt.c
> +++ renesas/drivers/clocksource/sh_cmt.c
> @@ -937,8 +937,14 @@ static const struct of_device_id sh_cmt_
>  		.compatible = "renesas,cmt-48-gen2",
>  		.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
>  	},
> -	{ .compatible = "renesas,rcar-gen2-cmt0", .data =
> &sh_cmt_info[SH_CMT0_RCAR_GEN2] },
> -	{ .compatible = "renesas,rcar-gen2-cmt1", .data =
> &sh_cmt_info[SH_CMT1_RCAR_GEN2] },
> +	{
> +		.compatible = "renesas,rcar-gen2-cmt0",
> +		.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
> +	},
> +	{
> +		.compatible = "renesas,rcar-gen2-cmt1",
> +		.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
> +	},
>  	{ }
>  };
>  MODULE_DEVICE_TABLE(of, sh_cmt_of_table);

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

* RE: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
  2018-09-05 20:32   ` Sergei Shtylyov
@ 2018-09-06  8:06     ` Chris Paterson
  -1 siblings, 0 replies; 20+ messages in thread
From: Chris Paterson @ 2018-09-06  8:06 UTC (permalink / raw)
  To: Sergei Shtylyov, Daniel Lezcano, Thomas Gleixner, Rob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 permalink raw reply	[flat|nested] 20+ messages in thread

* RE: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
@ 2018-09-06  8:06     ` Chris Paterson
  0 siblings, 0 replies; 20+ messages in thread
From: Chris Paterson @ 2018-09-06  8:06 UTC (permalink / raw)
  To: Sergei Shtylyov, Daniel Lezcano, Thomas Gleixner, Rob Herring,
	devicetree
  Cc: linux-renesas-soc, linux-sh

Hello Sergei,

> From: devicetree-owner@vger.kernel.org <devicetree-
> owner@vger.kernel.org> On Behalf Of Sergei Shtylyov
> Sent: 05 September 2018 21:32
> 
> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
> the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
> bindings as these are the R-Car gen3 SoCs for which the initial support was
> done.

Is it allowed to combine the bindings doc update with the driver change? (I usually get a checkpatch warning for this).

It it's not a problem:
Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

Kind regards, Chris

> 
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> 
> ---
>  Documentation/devicetree/bindings/timer/renesas,cmt.txt |    7 +++++++
>  drivers/clocksource/sh_cmt.c                            |    8 ++++++++
>  2 files changed, 15 insertions(+)
> 
> Index: renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
> ==========================================================
> =========
> --- renesas.orig/Documentation/devicetree/bindings/timer/renesas,cmt.txt
> +++ renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
> @@ -34,6 +34,10 @@ Required Properties:
>      - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793.
>      - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794.
>      - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794.
> +    - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in
> r8a77970.
> +    - "renesas,r8a77970-cmt1" for the 48-bit CMT1 device included in
> r8a77970.
> +    - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in
> r8a77980.
> +    - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in
> r8a77980.
> 
>      - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2
>  		and RZ/G1.
> @@ -41,6 +45,9 @@ Required Properties:
>  		and RZ/G1.
>  		These are fallbacks for r8a73a4, R-Car Gen2 and RZ/G1
> entries
>  		listed above.
> +    - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car
> Gen3.
> +    - "renesas,rcar-gen3-cmt1" for 48-bit CMT1 devices included in R-Car
> Gen3.
> +		These are fallbacks for R-Car Gen3 entries listed above.
> 
>    - reg: base address and length of the registers block for the timer module.
>    - interrupts: interrupt-specifier for the timer, one per channel.
> Index: renesas/drivers/clocksource/sh_cmt.c
> ==========================================================
> =========
> --- renesas.orig/drivers/clocksource/sh_cmt.c
> +++ renesas/drivers/clocksource/sh_cmt.c
> @@ -945,6 +945,14 @@ static const struct of_device_id sh_cmt_
>  		.compatible = "renesas,rcar-gen2-cmt1",
>  		.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
>  	},
> +	{
> +		.compatible = "renesas,rcar-gen3-cmt0",
> +		.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
> +	},
> +	{
> +		.compatible = "renesas,rcar-gen3-cmt1",
> +		.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
> +	},
>  	{ }
>  };
>  MODULE_DEVICE_TABLE(of, sh_cmt_of_table);

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

* RE: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
  2018-09-05 20:32   ` Sergei Shtylyov
@ 2018-09-06  8:27     ` Biju Das
  -1 siblings, 0 replies; 20+ messages in thread
From: Biju Das @ 2018-09-06  8:27 UTC (permalink / raw)
  To: Sergei Shtylyov, Daniel Lezcano, Thomas Gleixner, Rob Herring,
	devicetree
  Cc: linux-renesas-soc, linux-sh

SGkgU2VyZ2llLA0KDQpUaGFua3Mg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N
Cj4gKy5kYXRhID0gJnNoX2NtdF9pbmZvW1NIX0NNVDFfUkNBUl9HRU4yXQ0KPiArfSwNCj4gIHsg
fQ0KPiAgfTsNCj4gIE1PRFVMRV9ERVZJQ0VfVEFCTEUob2YsIHNoX2NtdF9vZl90YWJsZSk7DQoN
CnJlZ2FyZHMsDQpCaWp1DQoNCg0KDQpSZW5lc2FzIEVsZWN0cm9uaWNzIEV1cm9wZSBMdGQsIER1
a2VzIE1lYWRvdywgTWlsbGJvYXJkIFJvYWQsIEJvdXJuZSBFbmQsIEJ1Y2tpbmdoYW1zaGlyZSwg
U0w4IDVGSCwgVUsuIFJlZ2lzdGVyZWQgaW4gRW5nbGFuZCAmIFdhbGVzIHVuZGVyIFJlZ2lzdGVy
ZWQgTm8uIDA0NTg2NzA5Lg0K

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

* RE: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
@ 2018-09-06  8:27     ` Biju Das
  0 siblings, 0 replies; 20+ messages in thread
From: Biju Das @ 2018-09-06  8:27 UTC (permalink / raw)
  To: Sergei Shtylyov, Daniel Lezcano, Thomas Gleixner, Rob Herring,
	devicetree
  Cc: linux-renesas-soc, linux-sh

Hi Sergie,

Thanks for the patch

> -----Original Message-----
> From: devicetree-owner@vger.kernel.org <devicetree-
> owner@vger.kernel.org> On Behalf Of Sergei Shtylyov
> Sent: 05 September 2018 21:32
> To: Daniel Lezcano <daniel.lezcano@linaro.org>; Thomas Gleixner
> <tglx@linutronix.de>; Rob Herring <robh+dt@kernel.org>;
> devicetree@vger.kernel.org
> Cc: linux-renesas-soc@vger.kernel.org; linux-sh@vger.kernel.org
> Subject: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
>
> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
> the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
> bindings as these are the R-Car gen3 SoCs for which the initial support was
> done.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> ---
>  Documentation/devicetree/bindings/timer/renesas,cmt.txt |    7 +++++++
>  drivers/clocksource/sh_cmt.c                            |    8 ++++++++
>  2 files changed, 15 insertions(+)
>
> Index: renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
> ==========================================================
> =========
> --- renesas.orig/Documentation/devicetree/bindings/timer/renesas,cmt.txt
> +++ renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
> @@ -34,6 +34,10 @@ Required Properties:
>      - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793.
>      - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794.
>      - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794.
> +    - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in
> r8a77970.
> +    - "renesas,r8a77970-cmt1" for the 48-bit CMT1 device included in
> r8a77970.
> +    - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in
> r8a77980.
> +    - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in
> r8a77980.
>
>      - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2
>  and RZ/G1.
> @@ -41,6 +45,9 @@ Required Properties:
>  and RZ/G1.
>  These are fallbacks for r8a73a4, R-Car Gen2 and RZ/G1
> entries
>  listed above.
> +    - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car
> Gen3.
> +    - "renesas,rcar-gen3-cmt1" for 48-bit CMT1 devices included in R-Car

 Do we need to mention CMT1/2/3 instead of CMT1, since CMT2/3 is similar to CMT1?

> Gen3.
> +These are fallbacks for R-Car Gen3 entries listed above.
>
>    - reg: base address and length of the registers block for the timer module.
>    - interrupts: interrupt-specifier for the timer, one per channel.
> Index: renesas/drivers/clocksource/sh_cmt.c
> ==========================================================
> =========
> --- renesas.orig/drivers/clocksource/sh_cmt.c
> +++ renesas/drivers/clocksource/sh_cmt.c
> @@ -945,6 +945,14 @@ static const struct of_device_id sh_cmt_
>  .compatible = "renesas,rcar-gen2-cmt1",
>  .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
>  },
> +{
> +.compatible = "renesas,rcar-gen3-cmt0",
> +.data = &sh_cmt_info[SH_CMT0_RCAR_GEN2]
> +},
> +{
> +.compatible = "renesas,rcar-gen3-cmt1",
> +.data = &sh_cmt_info[SH_CMT1_RCAR_GEN2]
> +},
>  { }
>  };
>  MODULE_DEVICE_TABLE(of, sh_cmt_of_table);

regards,
Biju



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

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

* Re: [PATCH 1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
  2018-09-05 20:30   ` Sergei Shtylyov
@ 2018-09-06 11:05     ` Geert Uytterhoeven
  -1 siblings, 0 replies; 20+ messages in thread
From: Geert Uytterhoeven @ 2018-09-06 11:05 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Daniel Lezcano, Thomas Gleixner, Linux-Renesas, Linux-sh list

On Wed, Sep 5, 2018 at 10:31 PM Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> There's no good reason for the sh_cmt_of_table[] initializer to
> violate the 80-column limit, especially after the commit 8d50e9476bb4
> ("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated")
> partially fixed it -- fix the R-Car gen2 related entries as well.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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] 20+ messages in thread

* Re: [PATCH 1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
@ 2018-09-06 11:05     ` Geert Uytterhoeven
  0 siblings, 0 replies; 20+ messages in thread
From: Geert Uytterhoeven @ 2018-09-06 11:05 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Daniel Lezcano, Thomas Gleixner, Linux-Renesas, Linux-sh list

On Wed, Sep 5, 2018 at 10:31 PM Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> There's no good reason for the sh_cmt_of_table[] initializer to
> violate the 80-column limit, especially after the commit 8d50e9476bb4
> ("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated")
> partially fixed it -- fix the R-Car gen2 related entries as well.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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] 20+ messages in thread

* Re: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
  2018-09-06  8:27     ` Biju Das
@ 2018-09-10 19:12       ` Sergei Shtylyov
  -1 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-10 19:12 UTC (permalink / raw)
  To: Biju Das, Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh

Hello!

On 09/06/2018 11:27 AM, Biju Das wrote:

>> -----Original Message-----
>> From: devicetree-owner@vger.kernel.org <devicetree-
>> owner@vger.kernel.org> On Behalf Of Sergei Shtylyov
>> Sent: 05 September 2018 21:32
>> To: Daniel Lezcano <daniel.lezcano@linaro.org>; Thomas Gleixner
>> <tglx@linutronix.de>; Rob Herring <robh+dt@kernel.org>;
>> devicetree@vger.kernel.org
>> Cc: linux-renesas-soc@vger.kernel.org; linux-sh@vger.kernel.org
>> Subject: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
>>
>> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
>> the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
>> bindings as these are the R-Car gen3 SoCs for which the initial support was
>> done.
>>
>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>>
>> ---
>>  Documentation/devicetree/bindings/timer/renesas,cmt.txt |    7 +++++++
>>  drivers/clocksource/sh_cmt.c                            |    8 ++++++++
>>  2 files changed, 15 insertions(+)
>>
>> Index: renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
>> =============================
>> ====>> --- renesas.orig/Documentation/devicetree/bindings/timer/renesas,cmt.txt
>> +++ renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
>> @@ -34,6 +34,10 @@ Required Properties:
>>      - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793.
>>      - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794.
>>      - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794.
>> +    - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in
>> r8a77970.
>> +    - "renesas,r8a77970-cmt1" for the 48-bit CMT1 device included in
>> r8a77970.
>> +    - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in
>> r8a77980.
>> +    - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in
>> r8a77980.
>>
>>      - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2
>>  and RZ/G1.
>> @@ -41,6 +45,9 @@ Required Properties:
>>  and RZ/G1.
>>  These are fallbacks for r8a73a4, R-Car Gen2 and RZ/G1
>> entries
>>  listed above.
>> +    - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car
>> Gen3.
>> +    - "renesas,rcar-gen3-cmt1" for 48-bit CMT1 devices included in R-Car
> 
>  Do we need to mention CMT1/2/3 instead of CMT1, since CMT2/3 is similar to CMT1?

   Well, the manual only describes CMT0 and CMT1 separately. Perhaps it would have been
clearer to call them CMTT0 and CMTT1 as they stand for Compare Match Timer Type 0/1?
Note at this point we already have a history of describing CMT0/1 only in the bindings
as well...

[...]

MBR, Sergei

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

* Re: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
@ 2018-09-10 19:12       ` Sergei Shtylyov
  0 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-10 19:12 UTC (permalink / raw)
  To: Biju Das, Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh

Hello!

On 09/06/2018 11:27 AM, Biju Das wrote:

>> -----Original Message-----
>> From: devicetree-owner@vger.kernel.org <devicetree-
>> owner@vger.kernel.org> On Behalf Of Sergei Shtylyov
>> Sent: 05 September 2018 21:32
>> To: Daniel Lezcano <daniel.lezcano@linaro.org>; Thomas Gleixner
>> <tglx@linutronix.de>; Rob Herring <robh+dt@kernel.org>;
>> devicetree@vger.kernel.org
>> Cc: linux-renesas-soc@vger.kernel.org; linux-sh@vger.kernel.org
>> Subject: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
>>
>> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
>> the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
>> bindings as these are the R-Car gen3 SoCs for which the initial support was
>> done.
>>
>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>>
>> ---
>>  Documentation/devicetree/bindings/timer/renesas,cmt.txt |    7 +++++++
>>  drivers/clocksource/sh_cmt.c                            |    8 ++++++++
>>  2 files changed, 15 insertions(+)
>>
>> Index: renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
>> ==========================================================
>> =========
>> --- renesas.orig/Documentation/devicetree/bindings/timer/renesas,cmt.txt
>> +++ renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt
>> @@ -34,6 +34,10 @@ Required Properties:
>>      - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793.
>>      - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794.
>>      - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794.
>> +    - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in
>> r8a77970.
>> +    - "renesas,r8a77970-cmt1" for the 48-bit CMT1 device included in
>> r8a77970.
>> +    - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in
>> r8a77980.
>> +    - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in
>> r8a77980.
>>
>>      - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2
>>  and RZ/G1.
>> @@ -41,6 +45,9 @@ Required Properties:
>>  and RZ/G1.
>>  These are fallbacks for r8a73a4, R-Car Gen2 and RZ/G1
>> entries
>>  listed above.
>> +    - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car
>> Gen3.
>> +    - "renesas,rcar-gen3-cmt1" for 48-bit CMT1 devices included in R-Car
> 
>  Do we need to mention CMT1/2/3 instead of CMT1, since CMT2/3 is similar to CMT1?

   Well, the manual only describes CMT0 and CMT1 separately. Perhaps it would have been
clearer to call them CMTT0 and CMTT1 as they stand for Compare Match Timer Type 0/1?
Note at this point we already have a history of describing CMT0/1 only in the bindings
as well...

[...]

MBR, Sergei

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

* Re: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
  2018-09-06  8:06     ` Chris Paterson
@ 2018-09-10 19:30       ` Sergei Shtylyov
  -1 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-10 19:30 UTC (permalink / raw)
  To: Chris Paterson, Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh

Hello!

On 09/06/2018 11:06 AM, Chris Paterson wrote:

>> From: devicetree-owner@vger.kernel.org <devicetree-
>> owner@vger.kernel.org> On Behalf Of Sergei Shtylyov
>> Sent: 05 September 2018 21:32
>>
>> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
>> the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
>> bindings as these are the R-Car gen3 SoCs for which the initial support was
>> done.
> 
> Is it allowed to combine the bindings doc update with the driver change? (I usually get a checkpatch warning for this).

   I don't (and have double checked that this patch is checkpatch-clean).

> It it's not a problem:

   Let's hear what Rob says...
   However note that Documentation/devicetree/bindings/timer/ is
listed under the CLOCKSOURCE, CLOCKEVENT DRIVERS entry in MAINTAINERS. 

> Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

   Thank you!

> Kind regards, Chris

MBR, Sergei

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

* Re: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
@ 2018-09-10 19:30       ` Sergei Shtylyov
  0 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-10 19:30 UTC (permalink / raw)
  To: Chris Paterson, Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh

Hello!

On 09/06/2018 11:06 AM, Chris Paterson wrote:

>> From: devicetree-owner@vger.kernel.org <devicetree-
>> owner@vger.kernel.org> On Behalf Of Sergei Shtylyov
>> Sent: 05 September 2018 21:32
>>
>> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
>> the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
>> bindings as these are the R-Car gen3 SoCs for which the initial support was
>> done.
> 
> Is it allowed to combine the bindings doc update with the driver change? (I usually get a checkpatch warning for this).

   I don't (and have double checked that this patch is checkpatch-clean).

> It it's not a problem:

   Let's hear what Rob says...
   However note that Documentation/devicetree/bindings/timer/ is
listed under the CLOCKSOURCE, CLOCKEVENT DRIVERS entry in MAINTAINERS. 

> Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

   Thank you!

> Kind regards, Chris

MBR, Sergei

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

* Re: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
  2018-09-10 19:30       ` Sergei Shtylyov
@ 2018-09-10 19:43         ` Sergei Shtylyov
  -1 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-10 19:43 UTC (permalink / raw)
  To: Chris Paterson, Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh

On 09/10/2018 10:30 PM, Sergei Shtylyov wrote:

>>> From: devicetree-owner@vger.kernel.org <devicetree-
>>> owner@vger.kernel.org> On Behalf Of Sergei Shtylyov
>>> Sent: 05 September 2018 21:32
>>>
>>> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
>>> the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
>>> bindings as these are the R-Car gen3 SoCs for which the initial support was
>>> done.
>>
>> Is it allowed to combine the bindings doc update with the driver change? (I usually get a checkpatch warning for this).
> 
>    I don't (and have double checked that this patch is checkpatch-clean).

   Hm... triple checking has revealed something new: the patch is good only in the context
of tip.git, 4.19-rc3 based branch from renesas.git complains about the binding not being
in a separate patch. Well, I have to comply... :-)

[...]

>> Kind regards, Chris

MBR, Sergei

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

* Re: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support
@ 2018-09-10 19:43         ` Sergei Shtylyov
  0 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2018-09-10 19:43 UTC (permalink / raw)
  To: Chris Paterson, Daniel Lezcano, Thomas Gleixner, Rob Herring, devicetree
  Cc: linux-renesas-soc, linux-sh

On 09/10/2018 10:30 PM, Sergei Shtylyov wrote:

>>> From: devicetree-owner@vger.kernel.org <devicetree-
>>> owner@vger.kernel.org> On Behalf Of Sergei Shtylyov
>>> Sent: 05 September 2018 21:32
>>>
>>> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be
>>> the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8}
>>> bindings as these are the R-Car gen3 SoCs for which the initial support was
>>> done.
>>
>> Is it allowed to combine the bindings doc update with the driver change? (I usually get a checkpatch warning for this).
> 
>    I don't (and have double checked that this patch is checkpatch-clean).

   Hm... triple checking has revealed something new: the patch is good only in the context
of tip.git, 4.19-rc3 based branch from renesas.git complains about the binding not being
in a separate patch. Well, I have to comply... :-)

[...]

>> Kind regards, Chris

MBR, Sergei

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

end of thread, other threads:[~2018-09-10 19:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05 20:27 [PATCH 0/2] Add R-Car gen3 SoC support to the CMT driver Sergei Shtylyov
2018-09-05 20:27 ` Sergei Shtylyov
2018-09-05 20:30 ` [PATCH 1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer Sergei Shtylyov
2018-09-05 20:30   ` Sergei Shtylyov
2018-09-06  8:06   ` Chris Paterson
2018-09-06  8:06     ` Chris Paterson
2018-09-06 11:05   ` Geert Uytterhoeven
2018-09-06 11:05     ` Geert Uytterhoeven
2018-09-05 20:32 ` [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support Sergei Shtylyov
2018-09-05 20:32   ` Sergei Shtylyov
2018-09-06  8:06   ` Chris Paterson
2018-09-06  8:06     ` Chris Paterson
2018-09-10 19:30     ` Sergei Shtylyov
2018-09-10 19:30       ` Sergei Shtylyov
2018-09-10 19:43       ` Sergei Shtylyov
2018-09-10 19:43         ` Sergei Shtylyov
2018-09-06  8:27   ` Biju Das
2018-09-06  8:27     ` Biju Das
2018-09-10 19:12     ` Sergei Shtylyov
2018-09-10 19:12       ` Sergei Shtylyov

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.