Skip to contentSkip to conversation

Add Tegra234 HTE support

PATCH Superseded Dipen Patel 2 participants 19 messages Feb 14, 2023 – Mar 10, 2023

Subsystems (5)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Dipen Patel

author maintainer
#0 lore raw

v2 cover Add Tegra234 HTE support

The V1 patch series:
- Adds tegra Tegra234 HTE(timestamp) provider supports.
- Updates MAINTAINERS file for git tree, mail list fields.
- Updates devicetree and API documentations.
- Enables HTE subsystem, Tegra194 and Tegra234 HTE providers by default in arm64 defconfig and dts files.

The V2 patch series:
- Changes in dt bindings to remove slices property
- Adds nvidia,gpio-controller dt property
- Add GTE node for the Tegra234

Dipen Patel (6):
MAINTAINERS: Add HTE/timestamp subsystem details
hte: Add Tegra234 provider
gpio: tegra186: Add Tegra234 hte support
dt-bindings: timestamp: Add Tegra234 support
hte: Re-phrase tegra API document
arm64: tegra: Add GTE nodes

 .../timestamp/nvidia,tegra194-hte.yaml        |  30 ++--
 Documentation/driver-api/hte/tegra194-hte.rst |  33 ++--
 MAINTAINERS                                   |   3 +
 arch/arm64/boot/dts/nvidia/tegra194.dtsi      |   3 +-
 arch/arm64/boot/dts/nvidia/tegra234.dtsi      |  19 +++
 drivers/gpio/gpio-tegra186.c                  |   1 +
 drivers/hte/hte-tegra194-test.c               |   2 +-
 drivers/hte/hte-tegra194.c                    | 153 ++++++++++++++++--
 8 files changed, 198 insertions(+), 46 deletions(-)

base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2

Signature · 1 line
2.17.1
author maintainer
#1 lore raw

PATCH v2 1/6 MAINTAINERS: Add HTE/timestamp subsystem details

Add tree, mailing list and patchwork details.

---
 MAINTAINERS | 3 +++
 1 file changed, 3 insertions(+)
MAINTAINERS +3 -0
index f61eb221415b..734c988a7f7c 100644
@@ -9533,6 +9533,9 @@ F:	drivers/input/touchscreen/htcpen.c
 
 HTE SUBSYSTEM
 M:	Dipen Patel <[email protected]>
+L:	[email protected]
+T:	git git://git.kernel.org/pub/scm/linux/kernel/git/pateldipen1984/linux.git
+Q:	https://patchwork.kernel.org/project/timestamp/list/
 S:	Maintained
 F:	Documentation/devicetree/bindings/timestamp/
 F:	Documentation/driver-api/hte/
Signature · 1 line
2.17.1
author maintainer
#2 lore raw

PATCH v2 2/6 hte: Add Tegra234 provider

In reply to Dipen Patel

The Tegra234 AON GPIO instance and LIC IRQ support HTE. For the GPIO HTE support, it requires to add mapping between GPIO and HTE framework.

---
v2: Changed how gpio_chip could be aquired for the mapping

 drivers/hte/hte-tegra194-test.c |   2 +-
 drivers/hte/hte-tegra194.c      | 153 ++++++++++++++++++++++++++++----
 2 files changed, 139 insertions(+), 16 deletions(-)
drivers/hte/hte-tegra194-test.c +1 -1
index 5d776a185bd6..d79c28a80517 100644
@@ -16,7 +16,7 @@
 #include <linux/hte.h>
 
 /*
- * This sample HTE GPIO test driver demonstrates HTE API usage by enabling
+ * This sample HTE test driver demonstrates HTE API usage by enabling
  * hardware timestamp on gpio_in and specified LIC IRQ lines.
  *
  * Note: gpio_out and gpio_in need to be shorted externally in order for this
drivers/hte/hte-tegra194.c +138 -15

215 lines not on this page · raw message

Signature · 1 line
2.17.1
author maintainer
#3 lore raw

PATCH v2 3/6 gpio: tegra186: Add Tegra234 hte support

In reply to Dipen Patel

To enable timestamp support for the Tegra234, has_gte variable needs to be set true.

---
 drivers/gpio/gpio-tegra186.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-tegra186.c +1 -0
index fdc5bdcd5638..58346c3ff18d 100644
@@ -1137,6 +1137,7 @@ static const struct tegra_gpio_soc tegra234_aon_soc = {
 	.name = "tegra234-gpio-aon",
 	.instance = 1,
 	.num_irqs_per_bank = 8,
+	.has_gte = true,
 };
 
 #define TEGRA241_MAIN_GPIO_PORT(_name, _bank, _port, _pins)	\
Signature · 1 line
2.17.1
author maintainer
#4 lore raw

PATCH v2 4/6 dt-bindings: timestamp: Add Tegra234 support

In reply to Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

---
v2:
- Removed nvidia,slices property
- Added nvidia,gpio-controller based on review comments from Thierry, this will help simplify the hte provider driver.

 .../timestamp/nvidia,tegra194-hte.yaml        | 30 ++++++++++++-------
 1 file changed, 19 insertions(+), 11 deletions(-)
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +19 -11
index c31e207d1652..d0f4ed75baee 100644
@@ -4,7 +4,7 @@
 $id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Tegra194 on chip generic hardware timestamping engine (HTE)
+title: Tegra on chip generic hardware timestamping engine (HTE) provider
 
 maintainers:
   - Dipen Patel <[email protected]>
@@ -23,6 +23,8 @@ properties:
     enum:
       - nvidia,tegra194-gte-aon
       - nvidia,tegra194-gte-lic
+      - nvidia,tegra234-gte-aon
+      - nvidia,tegra234-gte-lic
 
   reg:
     maxItems: 1
@@ -38,14 +40,11 @@ properties:
     minimum: 1
     maximum: 256
 
-  nvidia,slices:
-    $ref: /schemas/types.yaml#/definitions/uint32
+  nvidia,gpio-controller:
+    $ref: /schemas/types.yaml#/definitions/phandle
     description:
-      HTE lines are arranged in 32 bit slice where each bit represents different
-      line/signal that it can enable/configure for the timestamp. It is u32
-      property and depends on the HTE instance in the chip. The value 3 is for
-      GPIO GTE and 11 for IRQ GTE.
-    enum: [3, 11]
+      The phandle to AON gpio controller instance. This is required to handle
+      namespace conversion between GPIO and GTE.
 
   '#timestamp-cells':
     description:
@@ -55,11 +54,21 @@ properties:
       mentioned in the nvidia GPIO device tree binding document.
     const: 1
 
+if:
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon
+          - nvidia,tegra234-gte-aon
+then:
+  required:
+    - nvidia,gpio-controller
+
 required:
   - compatible
   - reg
   - interrupts
-  - nvidia,slices
   - "#timestamp-cells"
 
 additionalProperties: false
@@ -71,7 +80,7 @@ examples:
               reg = <0xc1e0000 0x10000>;
               interrupts = <0 13 0x4>;
               nvidia,int-threshold = <1>;
-              nvidia,slices = <3>;
+              nvidia,gpio-controller = <&gpio_aon>;
               #timestamp-cells = <1>;
     };
 
@@ -81,7 +90,6 @@ examples:
               reg = <0x3aa0000 0x10000>;
               interrupts = <0 11 0x4>;
               nvidia,int-threshold = <1>;
-              nvidia,slices = <11>;
               #timestamp-cells = <1>;
     };
 
Signature · 1 line
2.17.1
author maintainer
#14 lore raw

PATCH v2 5/6 hte: Re-phrase tegra API document

In reply to Dipen Patel

Make Tegra194 API document generic to make it applicable for current and future tegra hte providers.

---
 Documentation/driver-api/hte/tegra194-hte.rst | 33 +++++++++----------
 1 file changed, 16 insertions(+), 17 deletions(-)
Documentation/driver-api/hte/tegra194-hte.rst +16 -17
index f2d617265546..85e654772782 100644
@@ -5,25 +5,25 @@ HTE Kernel provider driver
 
 Description
 -----------
-The Nvidia tegra194 HTE provider driver implements two GTE
-(Generic Timestamping Engine) instances: 1) GPIO GTE and 2) LIC
-(Legacy Interrupt Controller) IRQ GTE. Both GTE instances get the
-timestamp from the system counter TSC which has 31.25MHz clock rate, and the
-driver converts clock tick rate to nanoseconds before storing it as timestamp
-value.
+The Nvidia tegra HTE provider also known as GTE (Generic Timestamping Engine)
+driver implements two GTE instances: 1) GPIO GTE and 2) LIC
+(Legacy Interrupt Controller) IRQ GTE. Both GTE instances get the timestamp
+from the system counter TSC which has 31.25MHz clock rate, and the driver
+converts clock tick rate to nanoseconds before storing it as timestamp value.
 
 GPIO GTE
 --------
 
 This GTE instance timestamps GPIO in real time. For that to happen GPIO
-needs to be configured as input. The always on (AON) GPIO controller instance
-supports timestamping GPIOs in real time and it has 39 GPIO lines. The GPIO GTE
-and AON GPIO controller are tightly coupled as it requires very specific bits
-to be set in GPIO config register before GPIO GTE can be used, for that GPIOLIB
-adds two optional APIs as below. The GPIO GTE code supports both kernel
-and userspace consumers. The kernel space consumers can directly talk to HTE
-subsystem while userspace consumers timestamp requests go through GPIOLIB CDEV
-framework to HTE subsystem.
+needs to be configured as input. Only the always on (AON) GPIO controller
+instance supports timestamping GPIOs in real time as it is tightly coupled with
+the GPIO GTE. To support this, GPIOLIB adds two optional APIs as mentioned
+below. The GPIO GTE code supports both kernel and userspace consumers. The
+kernel space consumers can directly talk to HTE subsystem while userspace
+consumers timestamp requests go through GPIOLIB CDEV framework to HTE
+subsystem. The hte devicetree binding described at
+``Documentation/devicetree/bindings/timestamp`` provides an example of how a
+consumer can request an GPIO line.
 
 See gpiod_enable_hw_timestamp_ns() and gpiod_disable_hw_timestamp_ns().
 
@@ -34,9 +34,8 @@ returns the timestamp in nanoseconds.
 LIC (Legacy Interrupt Controller) IRQ GTE
 -----------------------------------------
 
-This GTE instance timestamps LIC IRQ lines in real time. There are 352 IRQ
-lines which this instance can add timestamps to in real time. The hte
-devicetree binding described at ``Documentation/devicetree/bindings/timestamp``
+This GTE instance timestamps LIC IRQ lines in real time. The hte devicetree
+binding described at ``Documentation/devicetree/bindings/timestamp``
 provides an example of how a consumer can request an IRQ line. Since it is a
 one-to-one mapping with IRQ GTE provider, consumers can simply specify the IRQ
 number that they are interested in. There is no userspace consumer support for
Signature · 1 line
2.17.1
author maintainer
#15 lore raw

PATCH v2 6/6 arm64: tegra: Add GTE nodes

In reply to Dipen Patel

Add GTE nodes for the tegra234. Also modify AON GTE nodes for the tegra194 to remove nvidia,slice property and add nvidia,gpio-controller propertyto specify AON GPIO controller node so that GTE driver can do namespace conversion between GPIO lines provided by the gpiolib framework and hardware timestamping engine subsystem.

---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi |  3 +--
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra194.dtsi +1 -2
index 4afcbd60e144..4c92850b1ec4 100644
@@ -1363,7 +1363,6 @@
 			reg = <0x3aa0000 0x10000>;
 			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
 			nvidia,int-threshold = <1>;
-			nvidia,slices = <11>;
 			#timestamp-cells = <1>;
 			status = "okay";
 		};
@@ -1586,7 +1585,7 @@
 			reg = <0xc1e0000 0x10000>;
 			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
 			nvidia,int-threshold = <1>;
-			nvidia,slices = <3>;
+			nvidia,gpio-controller = <&gpio_aon>;
 			#timestamp-cells = <1>;
 			status = "okay";
 		};
arch/arm64/boot/dts/nvidia/tegra234.dtsi +19 -0
index eaf05ee9acd1..4a87490c5fd4 100644
@@ -1086,6 +1086,15 @@
 			clock-names = "fuse";
 		};
 
+		hte_lic: hardware-timestamp@3aa0000 {
+			compatible = "nvidia,tegra234-gte-lic";
+			reg = <0x3aa0000 0x10000>;
+			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+			nvidia,int-threshold = <1>;
+			#timestamp-cells = <1>;
+			status = "okay";
+		};
+
 		hsp_top0: hsp@3c00000 {
 			compatible = "nvidia,tegra234-hsp", "nvidia,tegra194-hsp";
 			reg = <0x03c00000 0xa0000>;
@@ -1603,6 +1612,16 @@
 			#mbox-cells = <2>;
 		};
 
+		hte_aon: hardware-timestamp@c1e0000 {
+			compatible = "nvidia,tegra234-gte-aon";
+			reg = <0xc1e0000 0x10000>;
+			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
+			nvidia,int-threshold = <1>;
+			nvidia,gpio-controller = <&gpio_aon>;
+			#timestamp-cells = <1>;
+			status = "okay";
+		};
+
 		gen2_i2c: i2c@c240000 {
 			compatible = "nvidia,tegra194-i2c";
 			reg = <0xc240000 0x100>;
Signature · 1 line
2.17.1
#5 lore raw

Re: [PATCH V2 4/6] dt-bindings: timestamp: Add Tegra234 support

In reply to Dipen Patel
Quoted 2 lines · Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

1. Your commit does much more. You need to explain it why you drop some property.

2. Bindings go before its usage (in the patchset).

3. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Quoted 53 lines

---
v2:
- Removed nvidia,slices property
- Added nvidia,gpio-controller based on review comments from Thierry, this will help simplify the hte provider driver.

 .../timestamp/nvidia,tegra194-hte.yaml        | 30 ++++++++++++-------
 1 file changed, 19 insertions(+), 11 deletions(-)
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +7 -8
index c31e207d1652..d0f4ed75baee 100644
@@ -4,7 +4,7 @@
 $id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Tegra194 on chip generic hardware timestamping engine (HTE)
+title: Tegra on chip generic hardware timestamping engine (HTE) provider
 
 maintainers:
   - Dipen Patel <[email protected]>
@@ -23,6 +23,8 @@ properties:
     enum:
       - nvidia,tegra194-gte-aon
       - nvidia,tegra194-gte-lic
+      - nvidia,tegra234-gte-aon
+      - nvidia,tegra234-gte-lic
 
   reg:
     maxItems: 1
@@ -38,14 +40,11 @@ properties:
     minimum: 1
     maximum: 256
 
-  nvidia,slices:
-    $ref: /schemas/types.yaml#/definitions/uint32
+  nvidia,gpio-controller:
+    $ref: /schemas/types.yaml#/definitions/phandle
     description:
-      HTE lines are arranged in 32 bit slice where each bit represents different
-      line/signal that it can enable/configure for the timestamp. It is u32
-      property and depends on the HTE instance in the chip. The value 3 is for
-      GPIO GTE and 11 for IRQ GTE.
-    enum: [3, 11]
+      The phandle to AON gpio controller instance. This is required to handle
+      namespace conversion between GPIO and GTE.
 
   '#timestamp-cells':
     description:

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml properties: · line 57

Quoted 4 lines
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +1 -0
@@ -55,11 +54,21 @@ properties:
       mentioned in the nvidia GPIO device tree binding document.
     const: 1
 
+if:

Keep it under allOf (so you no need to re-indent it on next if statement in the future) and put entire allOf after "required:".

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml properties: · line 62

Quoted 5 lines
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +5 -0
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon

This is an ABI break. Does your driver handle it?

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml properties: · line 72

Quoted 11 lines
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +5 -1
+          - nvidia,tegra234-gte-aon
+then:
+  required:
+    - nvidia,gpio-controller
+
 required:
   - compatible
   - reg
   - interrupts
-  - nvidia,slices
   - "#timestamp-cells"

Best regards,
Krzysztof

#16 lore raw

Re: [PATCH V2 6/6] arm64: tegra: Add GTE nodes

In reply to Dipen Patel
Quoted 38 lines · Dipen Patel

Add GTE nodes for the tegra234. Also modify AON GTE nodes for the tegra194 to remove nvidia,slice property and add nvidia,gpio-controller propertyto specify AON GPIO controller node so that GTE driver can do namespace conversion between GPIO lines provided by the gpiolib framework and hardware timestamping engine subsystem.

---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi |  3 +--
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra194.dtsi +1 -2
index 4afcbd60e144..4c92850b1ec4 100644
@@ -1363,7 +1363,6 @@
 			reg = <0x3aa0000 0x10000>;
 			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
 			nvidia,int-threshold = <1>;
-			nvidia,slices = <11>;
 			#timestamp-cells = <1>;
 			status = "okay";
 		};
@@ -1586,7 +1585,7 @@
 			reg = <0xc1e0000 0x10000>;
 			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
 			nvidia,int-threshold = <1>;
-			nvidia,slices = <3>;
+			nvidia,gpio-controller = <&gpio_aon>;
 			#timestamp-cells = <1>;
 			status = "okay";
 		};
arch/arm64/boot/dts/nvidia/tegra234.dtsi +0 -0
index eaf05ee9acd1..4a87490c5fd4 100644

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 1095

Quoted 10 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +7 -0
@@ -1086,6 +1086,15 @@
 			clock-names = "fuse";
 		};
 
+		hte_lic: hardware-timestamp@3aa0000 {
+			compatible = "nvidia,tegra234-gte-lic";
+			reg = <0x3aa0000 0x10000>;
+			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+			nvidia,int-threshold = <1>;
+			#timestamp-cells = <1>;
+			status = "okay";

Why do you need status? It's okay by default.

Quoted 7 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +2 -0
+		};
+
 		hsp_top0: hsp@3c00000 {
 			compatible = "nvidia,tegra234-hsp", "nvidia,tegra194-hsp";
 			reg = <0x03c00000 0xa0000>;
@@ -1603,6 +1612,16 @@
 			#mbox-cells = <2>;

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 1622

Quoted 10 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +8 -0
 		};
 
+		hte_aon: hardware-timestamp@c1e0000 {
+			compatible = "nvidia,tegra234-gte-aon";
+			reg = <0xc1e0000 0x10000>;
+			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
+			nvidia,int-threshold = <1>;
+			nvidia,gpio-controller = <&gpio_aon>;
+			#timestamp-cells = <1>;
+			status = "okay";

Also here

Best regards,
Krzysztof

author maintainer
#6 lore raw

Re: [PATCH V2 4/6] dt-bindings: timestamp: Add Tegra234 support

In reply to Krzysztof Kozlowski
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

1. Your commit does much more. You need to explain it why you drop some property.

ACK, will address it next patch

Quoted 2 lines

2. Bindings go before its usage (in the patchset).

Ack...

Quoted 5 lines

3. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

It is based on recent linux at the time patch series was sent...

Quoted 58 lines
Quoted 58 lines

---
v2:
- Removed nvidia,slices property
- Added nvidia,gpio-controller based on review comments from Thierry, this will help simplify the hte provider driver.

 .../timestamp/nvidia,tegra194-hte.yaml        | 30 ++++++++++++-------
 1 file changed, 19 insertions(+), 11 deletions(-)
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +7 -8
index c31e207d1652..d0f4ed75baee 100644
@@ -4,7 +4,7 @@
 $id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Tegra194 on chip generic hardware timestamping engine (HTE)
+title: Tegra on chip generic hardware timestamping engine (HTE) provider
 
 maintainers:
   - Dipen Patel <[email protected]>
@@ -23,6 +23,8 @@ properties:
     enum:
       - nvidia,tegra194-gte-aon
       - nvidia,tegra194-gte-lic
+      - nvidia,tegra234-gte-aon
+      - nvidia,tegra234-gte-lic
 
   reg:
     maxItems: 1
@@ -38,14 +40,11 @@ properties:
     minimum: 1
     maximum: 256
 
-  nvidia,slices:
-    $ref: /schemas/types.yaml#/definitions/uint32
+  nvidia,gpio-controller:
+    $ref: /schemas/types.yaml#/definitions/phandle
     description:
-      HTE lines are arranged in 32 bit slice where each bit represents different
-      line/signal that it can enable/configure for the timestamp. It is u32
-      property and depends on the HTE instance in the chip. The value 3 is for
-      GPIO GTE and 11 for IRQ GTE.
-    enum: [3, 11]
+      The phandle to AON gpio controller instance. This is required to handle
+      namespace conversion between GPIO and GTE.
 
   '#timestamp-cells':
     description:
@@ -55,11 +54,21 @@ properties:
       mentioned in the nvidia GPIO device tree binding document.
     const: 1
 
Quoted 5 lines

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml properties: · line 57

Quoted 1 line
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +1 -0
+if:

Keep it under allOf (so you no need to re-indent it on next if statement in the future) and put entire allOf after "required:".

Ack...

Quoted 7 lines

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml properties: · line 62

Quoted 5 lines
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +5 -0
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon

This is an ABI break. Does your driver handle it?

yes, handling patch is part of this patch series.

Quoted 17 lines

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml properties: · line 72

Quoted 12 lines
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +5 -1
+          - nvidia,tegra234-gte-aon
+then:
+  required:
+    - nvidia,gpio-controller
+
 required:
   - compatible
   - reg
   - interrupts
-  - nvidia,slices
   - "#timestamp-cells"

Best regards,
Krzysztof

#7 lore raw

Re: [PATCH V2 4/6] dt-bindings: timestamp: Add Tegra234 support

Quoted 9 lines · Dipen Patel
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

1. Your commit does much more. You need to explain it why you drop some property.

ACK, will address it next patch

Quoted 1 line
Quoted 8 lines
Quoted 1 line

2. Bindings go before its usage (in the patchset).

Ack...

Quoted 5 lines

3. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

It is based on recent linux at the time patch series was sent...

That's good but then why you do not use scripts/get_maintainers.pl? The hint about recent kernel was just a hint... Just do not invent addresses by yourself and use the tool to get them right.

(...)

Quoted 8 lines
Quoted 7 lines

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml properties: · line 62

Quoted 5 lines
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +5 -0
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon

This is an ABI break. Does your driver handle it?

yes, handling patch is part of this patch series.

Can you point me to the code which does it? I see "return -ENODEV;", so I think you do not handle ABI break. I could miss something but since you disagree with me, please at least bring some arguments...

Best regards,
Krzysztof

author maintainer
#8 lore raw

Re: [PATCH V2 4/6] dt-bindings: timestamp: Add Tegra234 support

Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Dipen Patel
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

1. Your commit does much more. You need to explain it why you drop some property.

ACK, will address it next patch

Quoted 2 lines

2. Bindings go before its usage (in the patchset).

Ack...

Quoted 5 lines

3. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Quoted 6 lines
Quoted 1 line

It is based on recent linux at the time patch series was sent...

That's good but then why you do not use scripts/get_maintainers.pl? The hint about recent kernel was just a hint... Just do not invent addresses by yourself and use the tool to get them right.

I will take a note for the next patch series to add any missing people. The current list of people/group is what historically helped review this new timestamp/hte subsystem.

Quoted 8 lines

(...)

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +5 -0
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon
Quoted 6 lines
Quoted 2 lines
Quoted 1 line

This is an ABI break. Does your driver handle it?

yes, handling patch is part of this patch series.

Can you point me to the code which does it? I see "return -ENODEV;", so I think you do not handle ABI break. I could miss something but since you disagree with me, please at least bring some arguments...

Refer to patch https://patchwork.kernel.org/project/timestamp/patch/[email protected]/
which has compatible properties added and also code changes to reflect addition/deletion of some properties.

I am not sure I have understood about ABI break comment. How else one should handle if there is no related gpio controller property found? I am assuming you are referring to the below code from the patch 2 (link above) when you said "return -ENODEV".

- hte_dev->c = gpiochip_find("tegra194-gpio-aon",
- tegra_get_gpiochip_from_name);
+ gpio_ctrl = of_parse_phandle(dev->of_node,
+ "nvidia,gpio-controller", 0);
+ if (!gpio_ctrl) {
+ dev_err(dev, "gpio controller node not found\n");
+ return -ENODEV;
+ }
+
+ hte_dev->c = gpiochip_find(gpio_ctrl,
+ tegra_get_gpiochip_from_of_node)

Quoted 5 lines

Best regards,
Krzysztof

author maintainer
#17 lore raw

Re: [PATCH V2 6/6] arm64: tegra: Add GTE nodes

In reply to Krzysztof Kozlowski
Quoted 42 lines · Krzysztof Kozlowski
Quoted 41 lines · Dipen Patel

Add GTE nodes for the tegra234. Also modify AON GTE nodes for the tegra194 to remove nvidia,slice property and add nvidia,gpio-controller propertyto specify AON GPIO controller node so that GTE driver can do namespace conversion between GPIO lines provided by the gpiolib framework and hardware timestamping engine subsystem.

---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi |  3 +--
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra194.dtsi +1 -2
index 4afcbd60e144..4c92850b1ec4 100644
@@ -1363,7 +1363,6 @@
 			reg = <0x3aa0000 0x10000>;
 			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
 			nvidia,int-threshold = <1>;
-			nvidia,slices = <11>;
 			#timestamp-cells = <1>;
 			status = "okay";
 		};
@@ -1586,7 +1585,7 @@
 			reg = <0xc1e0000 0x10000>;
 			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
 			nvidia,int-threshold = <1>;
-			nvidia,slices = <3>;
+			nvidia,gpio-controller = <&gpio_aon>;
 			#timestamp-cells = <1>;
 			status = "okay";
 		};
arch/arm64/boot/dts/nvidia/tegra234.dtsi +0 -0
index eaf05ee9acd1..4a87490c5fd4 100644
@@ -1086,6 +1086,15 @@
 			clock-names = "fuse";
 		};
 
Quoted 9 lines

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 1095

Quoted 7 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +7 -0
+		hte_lic: hardware-timestamp@3aa0000 {
+			compatible = "nvidia,tegra234-gte-lic";
+			reg = <0x3aa0000 0x10000>;
+			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+			nvidia,int-threshold = <1>;
+			#timestamp-cells = <1>;
+			status = "okay";

Why do you need status? It's okay by default.

what's harm of having to explicitly mentioned? I can see status = okay in this dtsi file for other nodes as well and was just following that.

Quoted 25 lines
Quoted 8 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +2 -0
+		};
+
 		hsp_top0: hsp@3c00000 {
 			compatible = "nvidia,tegra234-hsp", "nvidia,tegra194-hsp";
 			reg = <0x03c00000 0xa0000>;
@@ -1603,6 +1612,16 @@
 			#mbox-cells = <2>;

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 1622

Quoted 10 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +8 -0
 		};
 
+		hte_aon: hardware-timestamp@c1e0000 {
+			compatible = "nvidia,tegra234-gte-aon";
+			reg = <0xc1e0000 0x10000>;
+			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
+			nvidia,int-threshold = <1>;
+			nvidia,gpio-controller = <&gpio_aon>;
+			#timestamp-cells = <1>;
+			status = "okay";

Also here

Best regards,
Krzysztof

#18 lore raw

Re: [PATCH V2 6/6] arm64: tegra: Add GTE nodes

Quoted 52 lines · Dipen Patel
Quoted 42 lines · Krzysztof Kozlowski
Quoted 41 lines · Dipen Patel

Add GTE nodes for the tegra234. Also modify AON GTE nodes for the tegra194 to remove nvidia,slice property and add nvidia,gpio-controller propertyto specify AON GPIO controller node so that GTE driver can do namespace conversion between GPIO lines provided by the gpiolib framework and hardware timestamping engine subsystem.

---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi |  3 +--
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra194.dtsi +1 -2
index 4afcbd60e144..4c92850b1ec4 100644
@@ -1363,7 +1363,6 @@
 			reg = <0x3aa0000 0x10000>;
 			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
 			nvidia,int-threshold = <1>;
-			nvidia,slices = <11>;
 			#timestamp-cells = <1>;
 			status = "okay";
 		};
@@ -1586,7 +1585,7 @@
 			reg = <0xc1e0000 0x10000>;
 			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
 			nvidia,int-threshold = <1>;
-			nvidia,slices = <3>;
+			nvidia,gpio-controller = <&gpio_aon>;
 			#timestamp-cells = <1>;
 			status = "okay";
 		};
arch/arm64/boot/dts/nvidia/tegra234.dtsi +0 -0
index eaf05ee9acd1..4a87490c5fd4 100644
@@ -1086,6 +1086,15 @@
 			clock-names = "fuse";
 		};
 
Quoted 9 lines

arch/arm64/boot/dts/nvidia/tegra234.dtsi line 1095

Quoted 7 lines
arch/arm64/boot/dts/nvidia/tegra234.dtsi +7 -0
+		hte_lic: hardware-timestamp@3aa0000 {
+			compatible = "nvidia,tegra234-gte-lic";
+			reg = <0x3aa0000 0x10000>;
+			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+			nvidia,int-threshold = <1>;
+			#timestamp-cells = <1>;
+			status = "okay";

Why do you need status? It's okay by default.

Quoted 1 line

what's harm of having to explicitly mentioned?

Because useless code is not helping any review. We do not add other useless properties, or shall we add them?

Quoted 2 lines

I can see status = okay in this dtsi file for other nodes as well and was just following that.

So if you see a bug somewhere, you also duplicate it in your code?

Best regards,
Krzysztof

#9 lore raw

Re: [PATCH V2 4/6] dt-bindings: timestamp: Add Tegra234 support

In reply to Dipen Patel
Quoted 36 lines · Dipen Patel
Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Dipen Patel
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

1. Your commit does much more. You need to explain it why you drop some property.

ACK, will address it next patch

Quoted 2 lines

2. Bindings go before its usage (in the patchset).

Ack...

Quoted 5 lines

3. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Quoted 6 lines
Quoted 1 line

It is based on recent linux at the time patch series was sent...

That's good but then why you do not use scripts/get_maintainers.pl? The hint about recent kernel was just a hint... Just do not invent addresses by yourself and use the tool to get them right.

I will take a note for the next patch series to add any missing people. The current list of people/group is what historically helped review this new timestamp/hte subsystem.

Quoted 9 lines

(...)

Quoted 7 lines
Quoted 7 lines

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml properties: · line 62

Quoted 5 lines
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +5 -0
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon

This is an ABI break. Does your driver handle it?

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

yes, handling patch is part of this patch series.

Can you point me to the code which does it? I see "return -ENODEV;", so I think you do not handle ABI break. I could miss something but since you disagree with me, please at least bring some arguments...

Refer to patch https://patchwork.kernel.org/project/timestamp/patch/[email protected]/
which has compatible properties added and also code changes to reflect addition/deletion of some properties.

I referred to the code which breaks the ABI.

Quoted 3 lines

I am not sure I have understood about ABI break comment. How else one should handle if there is no related gpio controller property found?

In a way it does not break existing users? There are many ways to handle it, but I don't know your code to point you.

Quoted 2 lines

I am assuming you are referring to the
below code from the patch 2 (link above) when you said "return -ENODEV".

Your bindings patch points to ABI break without any explanation/justification. Then your code #2 patch actually breaks it, also without any justification.

Best regards,
Krzysztof

author maintainer
#10 lore raw

Re: [PATCH V2 4/6] dt-bindings: timestamp: Add Tegra234 support

Quoted 46 lines · Krzysztof Kozlowski
Quoted 36 lines · Dipen Patel
Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Dipen Patel
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

1. Your commit does much more. You need to explain it why you drop some property.

ACK, will address it next patch

Quoted 2 lines

2. Bindings go before its usage (in the patchset).

Ack...

Quoted 5 lines

3. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Quoted 6 lines
Quoted 1 line

It is based on recent linux at the time patch series was sent...

That's good but then why you do not use scripts/get_maintainers.pl? The hint about recent kernel was just a hint... Just do not invent addresses by yourself and use the tool to get them right.

I will take a note for the next patch series to add any missing people. The current list of people/group is what historically helped review this new timestamp/hte subsystem.

Quoted 9 lines

(...)

Quoted 7 lines
Quoted 7 lines

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml properties: · line 62

Quoted 5 lines
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +5 -0
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon

This is an ABI break. Does your driver handle it?

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

yes, handling patch is part of this patch series.

Can you point me to the code which does it? I see "return -ENODEV;", so I think you do not handle ABI break. I could miss something but since you disagree with me, please at least bring some arguments...

Refer to patch https://patchwork.kernel.org/project/timestamp/patch/[email protected]/
which has compatible properties added and also code changes to reflect addition/deletion of some properties.

Quoted 8 lines

I referred to the code which breaks the ABI.

Quoted 3 lines

I am not sure I have understood about ABI break comment. How else one should handle if there is no related gpio controller property found?

In a way it does not break existing users? There are many ways to handle it, but I don't know your code to point you.

It is new subsystem and has only one driver which uses it so far. This was a decision taken after review comments (By Thierry, also in the mailing list) to add this property (nvidia,gpio-controller) and necessary changes have been made to existing user. From now on, it has to follow this change.

Quoted 8 lines
Quoted 3 lines

I am assuming you are referring to the
below code from the patch 2 (link above) when you said "return -ENODEV".

Your bindings patch points to ABI break without any explanation/justification. Then your code #2 patch actually breaks it, also without any justification.

I am going to add explanation/justification in the commit message in the next patch series. But to give
you context, discussion happened here https://patchwork.ozlabs.org/project/linux-gpio/patch/[email protected]/

Quoted 4 lines

Best regards,
Krzysztof

#11 lore raw

Re: [PATCH V2 4/6] dt-bindings: timestamp: Add Tegra234 support

Quoted 50 lines · Dipen Patel
Quoted 49 lines · Krzysztof Kozlowski
Quoted 36 lines · Dipen Patel
Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Dipen Patel
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

1. Your commit does much more. You need to explain it why you drop some property.

ACK, will address it next patch

Quoted 2 lines

2. Bindings go before its usage (in the patchset).

Ack...

Quoted 5 lines

3. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Quoted 6 lines
Quoted 1 line

It is based on recent linux at the time patch series was sent...

That's good but then why you do not use scripts/get_maintainers.pl? The hint about recent kernel was just a hint... Just do not invent addresses by yourself and use the tool to get them right.

I will take a note for the next patch series to add any missing people. The current list of people/group is what historically helped review this new timestamp/hte subsystem.

Quoted 9 lines

(...)

Quoted 7 lines
Quoted 7 lines

Review

Quoted 5 lines
(quoted diff) +5 -0
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon

This is an ABI break. Does your driver handle it?

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

yes, handling patch is part of this patch series.

Can you point me to the code which does it? I see "return -ENODEV;", so I think you do not handle ABI break. I could miss something but since you disagree with me, please at least bring some arguments...

Refer to patch https://patchwork.kernel.org/project/timestamp/patch/[email protected]/
which has compatible properties added and also code changes to reflect addition/deletion of some properties.

I referred to the code which breaks the ABI.

Quoted 1 line
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

I am not sure I have understood about ABI break comment. How else one should handle if there is no related gpio controller property found?

In a way it does not break existing users? There are many ways to handle it, but I don't know your code to point you.

It is new subsystem and has only one driver which uses it so far.

We do not talk about subsystem, but Tegra SoC, which is not new. Unless you meant this is new SoC/DTS?

Quoted 3 lines

This was a decision taken
after review comments (By Thierry, also in the mailing list) to add this property (nvidia,gpio-controller) and necessary changes have been made to existing user. From now on, it has to follow this change.

What is "it" which has to follow? There are rules for stable ABI and commit msg does not explain why they should not be followed.

Quoted 11 lines
Quoted 9 lines
Quoted 4 lines

I am assuming you are referring to the
below code from the patch 2 (link above) when you said "return -ENODEV".

Your bindings patch points to ABI break without any explanation/justification. Then your code #2 patch actually breaks it, also without any justification.

I am going to add explanation/justification in the commit message in the next patch series. But to give
you context, discussion happened here https://patchwork.ozlabs.org/project/linux-gpio/patch/[email protected]/

Either too many messages (and I missed something) or I could not find why ABI break is accepted and justified.

Best regards,
Krzysztof

author maintainer
#12 lore raw

Re: [PATCH V2 4/6] dt-bindings: timestamp: Add Tegra234 support

Quoted 62 lines · Krzysztof Kozlowski
Quoted 50 lines · Dipen Patel
Quoted 49 lines · Krzysztof Kozlowski
Quoted 36 lines · Dipen Patel
Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Dipen Patel
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

1. Your commit does much more. You need to explain it why you drop some property.

ACK, will address it next patch

Quoted 2 lines

2. Bindings go before its usage (in the patchset).

Ack...

Quoted 5 lines

3. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Quoted 6 lines
Quoted 1 line

It is based on recent linux at the time patch series was sent...

That's good but then why you do not use scripts/get_maintainers.pl? The hint about recent kernel was just a hint... Just do not invent addresses by yourself and use the tool to get them right.

I will take a note for the next patch series to add any missing people. The current list of people/group is what historically helped review this new timestamp/hte subsystem.

Quoted 9 lines

(...)

Quoted 7 lines
Quoted 7 lines

Review

Quoted 5 lines
(quoted diff) +5 -0
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon

This is an ABI break. Does your driver handle it?

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

yes, handling patch is part of this patch series.

Can you point me to the code which does it? I see "return -ENODEV;", so I think you do not handle ABI break. I could miss something but since you disagree with me, please at least bring some arguments...

Refer to patch https://patchwork.kernel.org/project/timestamp/patch/[email protected]/
which has compatible properties added and also code changes to reflect addition/deletion of some properties.

I referred to the code which breaks the ABI.

Quoted 1 line
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

I am not sure I have understood about ABI break comment. How else one should handle if there is no related gpio controller property found?

In a way it does not break existing users? There are many ways to handle it, but I don't know your code to point you.

It is new subsystem and has only one driver which uses it so far.

We do not talk about subsystem, but Tegra SoC, which is not new. Unless you meant this is new SoC/DTS?

Quoted 6 lines
Quoted 3 lines

This was a decision taken
after review comments (By Thierry, also in the mailing list) to add this property (nvidia,gpio-controller) and necessary changes have been made to existing user. From now on, it has to follow this change.

What is "it" which has to follow? There are rules for stable ABI and commit msg does not explain why they should not be followed.

"It" here means hte-tegra194.c HTE provider which is the only one and not being used by any entity yet.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

I am assuming you are referring to the
below code from the patch 2 (link above) when you said "return -ENODEV".

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Your bindings patch points to ABI break without any explanation/justification. Then your code #2 patch actually breaks it, also without any justification.

I am going to add explanation/justification in the commit message in the next patch series. But to give
you context, discussion happened here https://patchwork.ozlabs.org/project/linux-gpio/patch/[email protected]/

Either too many messages (and I missed something) or I could not find why ABI break is accepted and justified.

https://patchwork.ozlabs.org/project/linux-gpio/patch/[email protected]/#3000908 and affected code/comment at https://patchwork.ozlabs.org/project/linux-gpio/patch/[email protected]/#3000908.

Will it help if I send new patch series with detailed commit message?

Quoted 5 lines

Best regards,
Krzysztof

#13 lore raw

Re: [PATCH V2 4/6] dt-bindings: timestamp: Add Tegra234 support

Quoted 86 lines · Dipen Patel
Quoted 62 lines · Krzysztof Kozlowski
Quoted 50 lines · Dipen Patel
Quoted 49 lines · Krzysztof Kozlowski
Quoted 36 lines · Dipen Patel
Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Dipen Patel
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Dipen Patel

Added timestamp provider support for the Tegra234 in devicetree bindings.

1. Your commit does much more. You need to explain it why you drop some property.

ACK, will address it next patch

Quoted 2 lines

2. Bindings go before its usage (in the patchset).

Ack...

Quoted 5 lines

3. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Quoted 6 lines
Quoted 1 line

It is based on recent linux at the time patch series was sent...

That's good but then why you do not use scripts/get_maintainers.pl? The hint about recent kernel was just a hint... Just do not invent addresses by yourself and use the tool to get them right.

I will take a note for the next patch series to add any missing people. The current list of people/group is what historically helped review this new timestamp/hte subsystem.

Quoted 9 lines

(...)

Quoted 7 lines
Quoted 7 lines

Review

Quoted 5 lines
(quoted diff) +5 -0
+  properties:
+    compatible:
+      contains:
+        enum:
+          - nvidia,tegra194-gte-aon

This is an ABI break. Does your driver handle it?

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

yes, handling patch is part of this patch series.

Can you point me to the code which does it? I see "return -ENODEV;", so I think you do not handle ABI break. I could miss something but since you disagree with me, please at least bring some arguments...

Refer to patch https://patchwork.kernel.org/project/timestamp/patch/[email protected]/
which has compatible properties added and also code changes to reflect addition/deletion of some properties.

I referred to the code which breaks the ABI.

Quoted 1 line
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

I am not sure I have understood about ABI break comment. How else one should handle if there is no related gpio controller property found?

In a way it does not break existing users? There are many ways to handle it, but I don't know your code to point you.

It is new subsystem and has only one driver which uses it so far.

We do not talk about subsystem, but Tegra SoC, which is not new. Unless you meant this is new SoC/DTS?

Quoted 6 lines
Quoted 3 lines

This was a decision taken
after review comments (By Thierry, also in the mailing list) to add this property (nvidia,gpio-controller) and necessary changes have been made to existing user. From now on, it has to follow this change.

What is "it" which has to follow? There are rules for stable ABI and commit msg does not explain why they should not be followed.

"It" here means hte-tegra194.c HTE provider which is the only one and not being used by any entity yet.

Quoted 13 lines
Quoted 12 lines
Quoted 10 lines
Quoted 5 lines

I am assuming you are referring to the
below code from the patch 2 (link above) when you said "return -ENODEV".

Your bindings patch points to ABI break without any explanation/justification. Then your code #2 patch actually breaks it, also without any justification.

I am going to add explanation/justification in the commit message in the next patch series. But to give
you context, discussion happened here https://patchwork.ozlabs.org/project/linux-gpio/patch/[email protected]/

Quoted 7 lines
Quoted 2 lines

Either too many messages (and I missed something) or I could not find why ABI break is accepted and justified.

https://patchwork.ozlabs.org/project/linux-gpio/patch/[email protected]/#3000908 and affected code/comment at https://patchwork.ozlabs.org/project/linux-gpio/patch/[email protected]/#3000908.

Will it help if I send new patch series with detailed commit message?

Yes. If the binding is not used, it's a perfectly valid reason and should be mentioned in commit msg.

Best regards,
Krzysztof