Skip to contentSkip to conversation

hte: allow building modules with COMPILE_TEST enabled

PATCH In review Bartosz Golaszewski 2 participants 7 messages Sep 11, 2023 – Oct 9, 2023 HTE

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hte: allow building modules with COMPILE_TEST enabled

From: Bartosz Golaszewski <[email protected]>

Allow building all HTE modules with COMPILE_TEST Kconfig option enabled.

---
This was part of a wider series but since this is independent, I'm sending it separately.

 drivers/hte/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hte/Kconfig +2 -2
index cf29e0218bae..083e67492bf2 100644
@@ -16,7 +16,7 @@ if HTE
 
 config HTE_TEGRA194
 	tristate "NVIDIA Tegra194 HTE Support"
-	depends on ARCH_TEGRA_194_SOC
+	depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST)
 	help
 	  Enable this option for integrated hardware timestamping engine also
 	  known as generic timestamping engine (GTE) support on NVIDIA Tegra194
@@ -25,7 +25,7 @@ config HTE_TEGRA194
 
 config HTE_TEGRA194_TEST
         tristate "NVIDIA Tegra194 HTE Test"
-        depends on HTE_TEGRA194
+        depends on (HTE_TEGRA194 || COMPILE_TEST)
         help
 	  The NVIDIA Tegra194 GTE test driver demonstrates how to use HTE
 	  framework to timestamp GPIO and LIC IRQ lines.
Signature · 1 line
2.39.2
#1 lore raw
Quoted 37 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Allow building all HTE modules with COMPILE_TEST Kconfig option enabled.

---
This was part of a wider series but since this is independent, I'm sending it separately.

 drivers/hte/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hte/Kconfig +2 -3
index cf29e0218bae..083e67492bf2 100644
@@ -16,7 +16,7 @@ if HTE
 
 config HTE_TEGRA194
        tristate "NVIDIA Tegra194 HTE Support"
-       depends on ARCH_TEGRA_194_SOC
+       depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST)
        help
          Enable this option for integrated hardware timestamping engine also
          known as generic timestamping engine (GTE) support on NVIDIA Tegra194
@@ -25,7 +25,7 @@ config HTE_TEGRA194
 
 config HTE_TEGRA194_TEST
         tristate "NVIDIA Tegra194 HTE Test"
-        depends on HTE_TEGRA194
+        depends on (HTE_TEGRA194 || COMPILE_TEST)
         help
          The NVIDIA Tegra194 GTE test driver demonstrates how to use HTE
          framework to timestamp GPIO and LIC IRQ lines.
--
Quoted 2 lines

2.39.2

Hi Dipen!

Any comments on this, the other patch with a comment update as well as the one addressing usage of gpiochip_find() in HTE drivers?

Bart

maintainer Acked-by
#2 lore raw
Quoted 43 lines · Bartosz Golaszewski
Quoted 37 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Allow building all HTE modules with COMPILE_TEST Kconfig option enabled.

---
This was part of a wider series but since this is independent, I'm sending it separately.

 drivers/hte/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hte/Kconfig +2 -3
index cf29e0218bae..083e67492bf2 100644
@@ -16,7 +16,7 @@ if HTE
 
 config HTE_TEGRA194
        tristate "NVIDIA Tegra194 HTE Support"
-       depends on ARCH_TEGRA_194_SOC
+       depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST)
        help
          Enable this option for integrated hardware timestamping engine also
          known as generic timestamping engine (GTE) support on NVIDIA Tegra194
@@ -25,7 +25,7 @@ config HTE_TEGRA194
 
 config HTE_TEGRA194_TEST
         tristate "NVIDIA Tegra194 HTE Test"
-        depends on HTE_TEGRA194
+        depends on (HTE_TEGRA194 || COMPILE_TEST)
         help
          The NVIDIA Tegra194 GTE test driver demonstrates how to use HTE
          framework to timestamp GPIO and LIC IRQ lines.
--
Quoted 2 lines

2.39.2

Hi Dipen!

Quoted 2 lines

Any comments on this, the other patch with a comment update as well as the one addressing usage of gpiochip_find() in HTE drivers?

Sorry for the late response, This looks good to me. I will review and test rest other patches.

Quoted 2 lines

Bart

#3 lore raw
Quoted 45 lines · Dipen Patel
Quoted 43 lines · Bartosz Golaszewski
Quoted 37 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Allow building all HTE modules with COMPILE_TEST Kconfig option enabled.

---
This was part of a wider series but since this is independent, I'm sending it separately.

 drivers/hte/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hte/Kconfig +2 -3
index cf29e0218bae..083e67492bf2 100644
@@ -16,7 +16,7 @@ if HTE
 
 config HTE_TEGRA194
        tristate "NVIDIA Tegra194 HTE Support"
-       depends on ARCH_TEGRA_194_SOC
+       depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST)
        help
          Enable this option for integrated hardware timestamping engine also
          known as generic timestamping engine (GTE) support on NVIDIA Tegra194
@@ -25,7 +25,7 @@ config HTE_TEGRA194
 
 config HTE_TEGRA194_TEST
         tristate "NVIDIA Tegra194 HTE Test"
-        depends on HTE_TEGRA194
+        depends on (HTE_TEGRA194 || COMPILE_TEST)
         help
          The NVIDIA Tegra194 GTE test driver demonstrates how to use HTE
          framework to timestamp GPIO and LIC IRQ lines.
--
Quoted 2 lines

2.39.2

Hi Dipen!

Quoted 8 lines
Quoted 2 lines

Any comments on this, the other patch with a comment update as well as the one addressing usage of gpiochip_find() in HTE drivers?

Sorry for the late response, This looks good to me. I will review and test rest other patches.

Quoted 2 lines

Bart

Do you want me to take it through the GPIO tree or your own? Either way no GPIO patches depend on it.

Bart

maintainer
#4 lore raw
Quoted 52 lines · Bartosz Golaszewski
Quoted 51 lines · Dipen Patel
Quoted 43 lines · Bartosz Golaszewski
Quoted 37 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Allow building all HTE modules with COMPILE_TEST Kconfig option enabled.

---
This was part of a wider series but since this is independent, I'm sending it separately.

 drivers/hte/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hte/Kconfig +2 -3
index cf29e0218bae..083e67492bf2 100644
@@ -16,7 +16,7 @@ if HTE
 
 config HTE_TEGRA194
        tristate "NVIDIA Tegra194 HTE Support"
-       depends on ARCH_TEGRA_194_SOC
+       depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST)
        help
          Enable this option for integrated hardware timestamping engine also
          known as generic timestamping engine (GTE) support on NVIDIA Tegra194
@@ -25,7 +25,7 @@ config HTE_TEGRA194
 
 config HTE_TEGRA194_TEST
         tristate "NVIDIA Tegra194 HTE Test"
-        depends on HTE_TEGRA194
+        depends on (HTE_TEGRA194 || COMPILE_TEST)
         help
          The NVIDIA Tegra194 GTE test driver demonstrates how to use HTE
          framework to timestamp GPIO and LIC IRQ lines.
--
Quoted 2 lines

2.39.2

Hi Dipen!

Quoted 2 lines

Any comments on this, the other patch with a comment update as well as the one addressing usage of gpiochip_find() in HTE drivers?

Sorry for the late response, This looks good to me. I will review and test rest other patches.

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

Bart

Do you want me to take it through the GPIO tree or your own? Either way no GPIO patches depend on it.

This patch I should be able to push, assuming it is for 6.7 timeframe. Do other HTE patches depend on any of your GPIO patches?

Quoted 2 lines

Bart

#5 lore raw
Quoted 54 lines · Dipen Patel
Quoted 52 lines · Bartosz Golaszewski
Quoted 51 lines · Dipen Patel
Quoted 43 lines · Bartosz Golaszewski
Quoted 37 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Allow building all HTE modules with COMPILE_TEST Kconfig option enabled.

---
This was part of a wider series but since this is independent, I'm sending it separately.

 drivers/hte/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hte/Kconfig +2 -3
index cf29e0218bae..083e67492bf2 100644
@@ -16,7 +16,7 @@ if HTE
 
 config HTE_TEGRA194
        tristate "NVIDIA Tegra194 HTE Support"
-       depends on ARCH_TEGRA_194_SOC
+       depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST)
        help
          Enable this option for integrated hardware timestamping engine also
          known as generic timestamping engine (GTE) support on NVIDIA Tegra194
@@ -25,7 +25,7 @@ config HTE_TEGRA194
 
 config HTE_TEGRA194_TEST
         tristate "NVIDIA Tegra194 HTE Test"
-        depends on HTE_TEGRA194
+        depends on (HTE_TEGRA194 || COMPILE_TEST)
         help
          The NVIDIA Tegra194 GTE test driver demonstrates how to use HTE
          framework to timestamp GPIO and LIC IRQ lines.
--
Quoted 2 lines

2.39.2

Hi Dipen!

Quoted 2 lines

Any comments on this, the other patch with a comment update as well as the one addressing usage of gpiochip_find() in HTE drivers?

Sorry for the late response, This looks good to me. I will review and test rest other patches.

Quoted 1 line
Quoted 11 lines
Quoted 5 lines
Quoted 2 lines
Quoted 1 line

Bart

Do you want me to take it through the GPIO tree or your own? Either way no GPIO patches depend on it.

This patch I should be able to push, assuming it is for 6.7 timeframe. Do other HTE patches depend on any of your GPIO patches?

Quoted 2 lines

Bart

Only this one needs GPIO changes:

    https://lore.kernel.org/lkml/[email protected]/

Bart

#6 lore raw
In reply to Dipen Patel
Quoted 45 lines · Dipen Patel
Quoted 43 lines · Bartosz Golaszewski
Quoted 37 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Allow building all HTE modules with COMPILE_TEST Kconfig option enabled.

---
This was part of a wider series but since this is independent, I'm sending it separately.

 drivers/hte/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hte/Kconfig +2 -3
index cf29e0218bae..083e67492bf2 100644
@@ -16,7 +16,7 @@ if HTE
 
 config HTE_TEGRA194
        tristate "NVIDIA Tegra194 HTE Support"
-       depends on ARCH_TEGRA_194_SOC
+       depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST)
        help
          Enable this option for integrated hardware timestamping engine also
          known as generic timestamping engine (GTE) support on NVIDIA Tegra194
@@ -25,7 +25,7 @@ config HTE_TEGRA194
 
 config HTE_TEGRA194_TEST
         tristate "NVIDIA Tegra194 HTE Test"
-        depends on HTE_TEGRA194
+        depends on (HTE_TEGRA194 || COMPILE_TEST)
         help
          The NVIDIA Tegra194 GTE test driver demonstrates how to use HTE
          framework to timestamp GPIO and LIC IRQ lines.
--
Quoted 2 lines

2.39.2

Hi Dipen!

Quoted 8 lines
Quoted 2 lines

Any comments on this, the other patch with a comment update as well as the one addressing usage of gpiochip_find() in HTE drivers?

Sorry for the late response, This looks good to me. I will review and test rest other patches.

Quoted 2 lines

Bart

Hey, can you pick this up into your tree as well?

Thanks,
Bartosz