Skip to contentSkip to conversation

iio: adc: xilinx: support all platforms

PATCH In review Robert Hancock 4 participants 5 messages Jun 10, 2019 – Jun 16, 2019 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: xilinx: support all platforms

Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.

---

This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.

 drivers/iio/adc/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/adc/Kconfig +0 -1
index f96a770..7e32862 100644
@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADC
 
 config XILINX_XADC
 	tristate "Xilinx XADC driver"
-	depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST
 	depends on HAS_IOMEM
 	select IIO_BUFFER
 	select IIO_TRIGGERED_BUFFER
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 24 lines · Robert Hancock

[External]

Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.

---

This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.

 drivers/iio/adc/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/adc/Kconfig +0 -0
index f96a770..7e32862 100644

drivers/iio/adc/Kconfig config VIPERBOARD_ADC · line 1088

Quoted 4 lines
drivers/iio/adc/Kconfig +0 -1
@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADC
 
 config XILINX_XADC
        tristate "Xilinx XADC driver"
-       depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST

Just curios here: is depends COMPILE_TEST needed so that this gets included in a compile-test build ? I'm somewhat vague on Linux's makefile logic/structure.

Thanks
Alex

Quoted 6 lines
drivers/iio/adc/Kconfig +0 -1
        depends on HAS_IOMEM
        select IIO_BUFFER
        select IIO_TRIGGERED_BUFFER
--

1.8.3.1

#2 lore raw
Quoted 26 lines · Alexandru
Quoted 25 lines · Robert Hancock

[External]

Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.

---

This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.

 drivers/iio/adc/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/adc/Kconfig +0 -0
index f96a770..7e32862 100644
@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADC
 
Quoted 6 lines

drivers/iio/adc/Kconfig config VIPERBOARD_ADC · line 1088

Quoted 3 lines
drivers/iio/adc/Kconfig +0 -1
 config XILINX_XADC
        tristate "Xilinx XADC driver"
-       depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST

Just curios here: is depends COMPILE_TEST needed so that this gets included in a compile-test build ? I'm somewhat vague on Linux's makefile logic/structure.

COMPILE_TEST enables the driver for compile testing if it is not already enabled otherwise. Now that the driver has no dependencies at all it will always be enabled, which includes compile testing.

#3 lore raw
Quoted 37 lines · Lars-Peter Clausen

[External]

Quoted 26 lines · Alexandru
Quoted 25 lines · Robert Hancock

[External]

Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.

---

This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.

 drivers/iio/adc/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/adc/Kconfig +0 -0
index f96a770..7e32862 100644
@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADC
 
Quoted 6 lines

drivers/iio/adc/Kconfig config VIPERBOARD_ADC · line 1088

Quoted 3 lines
drivers/iio/adc/Kconfig +0 -1
 config XILINX_XADC
        tristate "Xilinx XADC driver"
-       depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST

Just curios here: is depends COMPILE_TEST needed so that this gets included in a compile-test build ? I'm somewhat vague on Linux's makefile logic/structure.

Quoted 3 lines

COMPILE_TEST enables the driver for compile testing if it is not already enabled otherwise. Now that the driver has no dependencies at all it will always be enabled, which includes compile testing.

I see.
Thanks for the info

maintainer
#4 lore raw
In reply to Robert Hancock
Quoted 7 lines · On Mon, 10 Jun 2019 10:23:44 -0600 Robert Hancock <[email protected]> wrote:

Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.

Applied to the togreg branch of iio.git and pushed out as testing to see if any of us missed anything. Hopefully the many compiles 0-day will do on this will highlight if there is anything hiding we haven't thought of to make this a bad idea (more likely needing a little fix ;)

Jonathan

Quoted 21 lines

---

This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.

 drivers/iio/adc/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/adc/Kconfig +0 -1
index f96a770..7e32862 100644
@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADC
 
 config XILINX_XADC
 	tristate "Xilinx XADC driver"
-	depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST
 	depends on HAS_IOMEM
 	select IIO_BUFFER
 	select IIO_TRIGGERED_BUFFER