* [PATCH 1/3] watchdog: ts4800: add hardware dependency
2016-02-09 10:15 [PATCH 0/3] Add hardware dependency to TS-4800 board drivers Jean Delvare
@ 2016-02-09 10:17 ` Jean Delvare
2016-02-09 14:28 ` Guenter Roeck
2016-03-04 19:36 ` Wim Van Sebroeck
2016-02-09 10:18 ` [PATCH 2/3] Input: " Jean Delvare
` (3 subsequent siblings)
4 siblings, 2 replies; 13+ messages in thread
From: Jean Delvare @ 2016-02-09 10:17 UTC (permalink / raw)
To: linux-kernel
Cc: Dmitry Torokhov, Thomas Gleixner, Jason Cooper, Marc Zyngier,
Wim Van Sebroeck, Guenter Roeck, Damien Riegel, linux-watchdog
The Technologic Systems TS-4800 is an i.MX515 board, so its drivers
are useless unless building a SOC_IMX51 kernel, except for build
testing purposes.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Damien Riegel <damien.riegel@savoirfairelinux.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Wim Van Sebroeck <wim@iguana.be>
---
drivers/watchdog/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- linux-4.5-rc3.orig/drivers/watchdog/Kconfig 2016-02-09 08:53:37.465170476 +0100
+++ linux-4.5-rc3/drivers/watchdog/Kconfig 2016-02-09 08:53:45.001221261 +0100
@@ -468,6 +468,7 @@ config NUC900_WATCHDOG
config TS4800_WATCHDOG
tristate "TS-4800 Watchdog"
depends on HAS_IOMEM && OF
+ depends on SOC_IMX51 || COMPILE_TEST
select WATCHDOG_CORE
select MFD_SYSCON
help
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [PATCH 1/3] watchdog: ts4800: add hardware dependency
2016-02-09 10:17 ` [PATCH 1/3] watchdog: ts4800: add hardware dependency Jean Delvare
@ 2016-02-09 14:28 ` Guenter Roeck
2016-03-04 19:36 ` Wim Van Sebroeck
1 sibling, 0 replies; 13+ messages in thread
From: Guenter Roeck @ 2016-02-09 14:28 UTC (permalink / raw)
To: Jean Delvare, linux-kernel
Cc: Dmitry Torokhov, Thomas Gleixner, Jason Cooper, Marc Zyngier,
Wim Van Sebroeck, Damien Riegel, linux-watchdog
On 02/09/2016 02:17 AM, Jean Delvare wrote:
> The Technologic Systems TS-4800 is an i.MX515 board, so its drivers
> are useless unless building a SOC_IMX51 kernel, except for build
> testing purposes.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> Cc: Damien Riegel <damien.riegel@savoirfairelinux.com>
> Cc: Rob Herring <robh@kernel.org>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: Wim Van Sebroeck <wim@iguana.be>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/3] watchdog: ts4800: add hardware dependency
2016-02-09 10:17 ` [PATCH 1/3] watchdog: ts4800: add hardware dependency Jean Delvare
2016-02-09 14:28 ` Guenter Roeck
@ 2016-03-04 19:36 ` Wim Van Sebroeck
1 sibling, 0 replies; 13+ messages in thread
From: Wim Van Sebroeck @ 2016-03-04 19:36 UTC (permalink / raw)
To: Jean Delvare
Cc: linux-kernel, Dmitry Torokhov, Thomas Gleixner, Jason Cooper,
Marc Zyngier, Guenter Roeck, Damien Riegel, linux-watchdog
Hi Jean,
> The Technologic Systems TS-4800 is an i.MX515 board, so its drivers
> are useless unless building a SOC_IMX51 kernel, except for build
> testing purposes.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> Cc: Damien Riegel <damien.riegel@savoirfairelinux.com>
> Cc: Rob Herring <robh@kernel.org>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> ---
> drivers/watchdog/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> --- linux-4.5-rc3.orig/drivers/watchdog/Kconfig 2016-02-09 08:53:37.465170476 +0100
> +++ linux-4.5-rc3/drivers/watchdog/Kconfig 2016-02-09 08:53:45.001221261 +0100
> @@ -468,6 +468,7 @@ config NUC900_WATCHDOG
> config TS4800_WATCHDOG
> tristate "TS-4800 Watchdog"
> depends on HAS_IOMEM && OF
> + depends on SOC_IMX51 || COMPILE_TEST
> select WATCHDOG_CORE
> select MFD_SYSCON
> help
>
> --
> Jean Delvare
> SUSE L3 Support
Patch has been added to linux-watchdog-next.
Kind regards,
Wim.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 2/3] Input: ts4800: add hardware dependency
2016-02-09 10:15 [PATCH 0/3] Add hardware dependency to TS-4800 board drivers Jean Delvare
2016-02-09 10:17 ` [PATCH 1/3] watchdog: ts4800: add hardware dependency Jean Delvare
@ 2016-02-09 10:18 ` Jean Delvare
2016-03-04 19:42 ` Dmitry Torokhov
2016-02-09 10:19 ` [PATCH 3/3] irqchip/ts4800: Add " Jean Delvare
` (2 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: Jean Delvare @ 2016-02-09 10:18 UTC (permalink / raw)
To: linux-kernel
Cc: Dmitry Torokhov, Thomas Gleixner, Jason Cooper, Marc Zyngier,
Wim Van Sebroeck, Guenter Roeck, Damien Riegel, linux-input
The Technologic Systems TS-4800 is an i.MX515 board, so its drivers
are useless unless building a SOC_IMX51 kernel, except for build
testing purposes.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Damien Riegel <damien.riegel@savoirfairelinux.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
drivers/input/touchscreen/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- linux-4.5-rc3.orig/drivers/input/touchscreen/Kconfig 2016-02-02 09:02:08.180924572 +0100
+++ linux-4.5-rc3/drivers/input/touchscreen/Kconfig 2016-02-09 08:58:50.693442294 +0100
@@ -941,6 +941,7 @@ config TOUCHSCREEN_TOUCHIT213
config TOUCHSCREEN_TS4800
tristate "TS-4800 touchscreen"
depends on HAS_IOMEM && OF
+ depends on SOC_IMX51 || COMPILE_TEST
select MFD_SYSCON
select INPUT_POLLDEV
help
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [PATCH 2/3] Input: ts4800: add hardware dependency
2016-02-09 10:18 ` [PATCH 2/3] Input: " Jean Delvare
@ 2016-03-04 19:42 ` Dmitry Torokhov
0 siblings, 0 replies; 13+ messages in thread
From: Dmitry Torokhov @ 2016-03-04 19:42 UTC (permalink / raw)
To: Jean Delvare
Cc: linux-kernel, Thomas Gleixner, Jason Cooper, Marc Zyngier,
Wim Van Sebroeck, Guenter Roeck, Damien Riegel, linux-input
On Tue, Feb 09, 2016 at 11:18:47AM +0100, Jean Delvare wrote:
> The Technologic Systems TS-4800 is an i.MX515 board, so its drivers
> are useless unless building a SOC_IMX51 kernel, except for build
> testing purposes.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
Applied, thank you.
> Cc: Damien Riegel <damien.riegel@savoirfairelinux.com>
> Cc: Rob Herring <robh@kernel.org>
> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> ---
> drivers/input/touchscreen/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> --- linux-4.5-rc3.orig/drivers/input/touchscreen/Kconfig 2016-02-02 09:02:08.180924572 +0100
> +++ linux-4.5-rc3/drivers/input/touchscreen/Kconfig 2016-02-09 08:58:50.693442294 +0100
> @@ -941,6 +941,7 @@ config TOUCHSCREEN_TOUCHIT213
> config TOUCHSCREEN_TS4800
> tristate "TS-4800 touchscreen"
> depends on HAS_IOMEM && OF
> + depends on SOC_IMX51 || COMPILE_TEST
> select MFD_SYSCON
> select INPUT_POLLDEV
> help
>
> --
> Jean Delvare
> SUSE L3 Support
--
Dmitry
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 3/3] irqchip/ts4800: Add hardware dependency
2016-02-09 10:15 [PATCH 0/3] Add hardware dependency to TS-4800 board drivers Jean Delvare
2016-02-09 10:17 ` [PATCH 1/3] watchdog: ts4800: add hardware dependency Jean Delvare
2016-02-09 10:18 ` [PATCH 2/3] Input: " Jean Delvare
@ 2016-02-09 10:19 ` Jean Delvare
2016-02-18 1:44 ` Jason Cooper
2016-02-09 14:28 ` [PATCH 0/3] Add hardware dependency to TS-4800 board drivers Guenter Roeck
2016-02-09 15:08 ` Damien Riegel
4 siblings, 1 reply; 13+ messages in thread
From: Jean Delvare @ 2016-02-09 10:19 UTC (permalink / raw)
To: linux-kernel
Cc: Dmitry Torokhov, Thomas Gleixner, Jason Cooper, Marc Zyngier,
Wim Van Sebroeck, Guenter Roeck, Damien Riegel
The Technologic Systems TS-4800 is an i.MX515 board, so its drivers
are useless unless building a SOC_IMX51 kernel, except for build
testing purposes.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Damien Riegel <damien.riegel@savoirfairelinux.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
---
drivers/irqchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- linux-4.5-rc3.orig/drivers/irqchip/Kconfig 2016-02-02 09:02:08.186924622 +0100
+++ linux-4.5-rc3/drivers/irqchip/Kconfig 2016-02-09 09:05:49.524721321 +0100
@@ -160,6 +160,7 @@ config TS4800_IRQ
tristate "TS-4800 IRQ controller"
select IRQ_DOMAIN
depends on HAS_IOMEM
+ depends on SOC_IMX51 || COMPILE_TEST
help
Support for the TS-4800 FPGA IRQ controller
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/3] irqchip/ts4800: Add hardware dependency
2016-02-09 10:19 ` [PATCH 3/3] irqchip/ts4800: Add " Jean Delvare
@ 2016-02-18 1:44 ` Jason Cooper
0 siblings, 0 replies; 13+ messages in thread
From: Jason Cooper @ 2016-02-18 1:44 UTC (permalink / raw)
To: Jean Delvare
Cc: linux-kernel, Dmitry Torokhov, Thomas Gleixner, Marc Zyngier,
Wim Van Sebroeck, Guenter Roeck, Damien Riegel
On Tue, Feb 09, 2016 at 11:19:20AM +0100, Jean Delvare wrote:
> The Technologic Systems TS-4800 is an i.MX515 board, so its drivers
> are useless unless building a SOC_IMX51 kernel, except for build
> testing purposes.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> Cc: Damien Riegel <damien.riegel@savoirfairelinux.com>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Marc Zyngier <marc.zyngier@arm.com>
> ---
> drivers/irqchip/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
Applied to irqchip/core. Once we see this IP appear outside of IMX51,
we can redo the Kconfig symbols based on what we see.
thx,
Jason.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 0/3] Add hardware dependency to TS-4800 board drivers
2016-02-09 10:15 [PATCH 0/3] Add hardware dependency to TS-4800 board drivers Jean Delvare
` (2 preceding siblings ...)
2016-02-09 10:19 ` [PATCH 3/3] irqchip/ts4800: Add " Jean Delvare
@ 2016-02-09 14:28 ` Guenter Roeck
2016-02-09 15:14 ` Jean Delvare
2016-02-09 15:08 ` Damien Riegel
4 siblings, 1 reply; 13+ messages in thread
From: Guenter Roeck @ 2016-02-09 14:28 UTC (permalink / raw)
To: Jean Delvare, linux-kernel
Cc: Dmitry Torokhov, Thomas Gleixner, Jason Cooper, Marc Zyngier,
Wim Van Sebroeck, Damien Riegel
On 02/09/2016 02:15 AM, Jean Delvare wrote:
> Hi all,
>
> This adds hardware dependency to 3 drivers for the Technologic Systems
> TS-4800 board. Thanks to these dependencies, users of other systems
> will not accidentally enable these drivers.
>
> Once again I must urge subsystem maintainers to add such dependencies
> to all new drivers which needs them. The lack of such dependencies
> makes distribution kernel maintainers' lives a nightmare.
>
> [PATCH 1/3] watchdog: ts4800: add hardware dependency
> [PATCH 2/3] Input: ts4800: add hardware dependency
> [PATCH 3/3] irqchip/ts4800: Add hardware dependency
>
How about TOUCHSCREEN_TS4800 ?
Guenter
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [PATCH 0/3] Add hardware dependency to TS-4800 board drivers
2016-02-09 14:28 ` [PATCH 0/3] Add hardware dependency to TS-4800 board drivers Guenter Roeck
@ 2016-02-09 15:14 ` Jean Delvare
0 siblings, 0 replies; 13+ messages in thread
From: Jean Delvare @ 2016-02-09 15:14 UTC (permalink / raw)
To: Guenter Roeck
Cc: linux-kernel, Dmitry Torokhov, Thomas Gleixner, Jason Cooper,
Marc Zyngier, Wim Van Sebroeck, Damien Riegel
Hi Guenter,
Le Tuesday 09 February 2016 à 06:28 -0800, Guenter Roeck a écrit :
> On 02/09/2016 02:15 AM, Jean Delvare wrote:
> > Hi all,
> >
> > This adds hardware dependency to 3 drivers for the Technologic Systems
> > TS-4800 board. Thanks to these dependencies, users of other systems
> > will not accidentally enable these drivers.
> >
> > Once again I must urge subsystem maintainers to add such dependencies
> > to all new drivers which needs them. The lack of such dependencies
> > makes distribution kernel maintainers' lives a nightmare.
> >
> > [PATCH 1/3] watchdog: ts4800: add hardware dependency
> > [PATCH 2/3] Input: ts4800: add hardware dependency
> > [PATCH 3/3] irqchip/ts4800: Add hardware dependency
> >
> How about TOUCHSCREEN_TS4800 ?
This is patch 2/3 above. Maybe I could make the subject line clearer
indeed.
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 0/3] Add hardware dependency to TS-4800 board drivers
2016-02-09 10:15 [PATCH 0/3] Add hardware dependency to TS-4800 board drivers Jean Delvare
` (3 preceding siblings ...)
2016-02-09 14:28 ` [PATCH 0/3] Add hardware dependency to TS-4800 board drivers Guenter Roeck
@ 2016-02-09 15:08 ` Damien Riegel
2016-02-09 15:16 ` Guenter Roeck
2016-02-09 15:24 ` Jean Delvare
4 siblings, 2 replies; 13+ messages in thread
From: Damien Riegel @ 2016-02-09 15:08 UTC (permalink / raw)
To: Jean Delvare
Cc: linux-kernel, Dmitry Torokhov, Thomas Gleixner, Jason Cooper,
Marc Zyngier, Wim Van Sebroeck, Guenter Roeck
Hi Jean,
On Tue, Feb 09, 2016 at 11:15:49AM +0100, Jean Delvare wrote:
> Hi all,
>
> This adds hardware dependency to 3 drivers for the Technologic Systems
> TS-4800 board. Thanks to these dependencies, users of other systems
> will not accidentally enable these drivers.
These drivers are for IPs implemented in an FPGA. For now it is true
that they are used only on one board with an iMX.51 but this is not a
strong dependency and it might change in the future if Technologic
Systems decide to reuse these IPs on boards based on different SoCs.
As the FPGA and the SoC are two separate chips, I don't know how such
dependency should be expressed in kconfig.
Thanks,
Damien
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [PATCH 0/3] Add hardware dependency to TS-4800 board drivers
2016-02-09 15:08 ` Damien Riegel
@ 2016-02-09 15:16 ` Guenter Roeck
2016-02-09 15:24 ` Jean Delvare
1 sibling, 0 replies; 13+ messages in thread
From: Guenter Roeck @ 2016-02-09 15:16 UTC (permalink / raw)
To: Damien Riegel, Jean Delvare
Cc: linux-kernel, Dmitry Torokhov, Thomas Gleixner, Jason Cooper,
Marc Zyngier, Wim Van Sebroeck
On 02/09/2016 07:08 AM, Damien Riegel wrote:
> Hi Jean,
>
> On Tue, Feb 09, 2016 at 11:15:49AM +0100, Jean Delvare wrote:
>> Hi all,
>>
>> This adds hardware dependency to 3 drivers for the Technologic Systems
>> TS-4800 board. Thanks to these dependencies, users of other systems
>> will not accidentally enable these drivers.
>
> These drivers are for IPs implemented in an FPGA. For now it is true
> that they are used only on one board with an iMX.51 but this is not a
> strong dependency and it might change in the future if Technologic
> Systems decide to reuse these IPs on boards based on different SoCs.
>
> As the FPGA and the SoC are two separate chips, I don't know how such
> dependency should be expressed in kconfig.
>
You could add a Kconfig option for the FPGA, which currently depends
on the SoC.
Guenter
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 0/3] Add hardware dependency to TS-4800 board drivers
2016-02-09 15:08 ` Damien Riegel
2016-02-09 15:16 ` Guenter Roeck
@ 2016-02-09 15:24 ` Jean Delvare
1 sibling, 0 replies; 13+ messages in thread
From: Jean Delvare @ 2016-02-09 15:24 UTC (permalink / raw)
To: Damien Riegel
Cc: linux-kernel, Dmitry Torokhov, Thomas Gleixner, Jason Cooper,
Marc Zyngier, Wim Van Sebroeck, Guenter Roeck
Hi Damien,
Le Tuesday 09 February 2016 à 10:08 -0500, Damien Riegel a écrit :
> On Tue, Feb 09, 2016 at 11:15:49AM +0100, Jean Delvare wrote:
> > This adds hardware dependency to 3 drivers for the Technologic Systems
> > TS-4800 board. Thanks to these dependencies, users of other systems
> > will not accidentally enable these drivers.
>
> These drivers are for IPs implemented in an FPGA. For now it is true
> that they are used only on one board with an iMX.51 but this is not a
> strong dependency and it might change in the future if Technologic
> Systems decide to reuse these IPs on boards based on different SoCs.
When this happens, we can update the dependency accordingly, this is not
a problem.
> As the FPGA and the SoC are two separate chips, I don't know how such
> dependency should be expressed in kconfig.
The way I did ;-)
These dependencies just tell where the hardware is being used at the
moment. They do not imply that the same hardware can't be reused later
on another board. In which case we can extend the dependency (e.g.
adding another SOC family), or broaden it (e.g. "depends on ARM") or
drop it altogether if the piece of hardware in question has taken over
the world meanwhile.
But my experience is that a piece of hardware developed for i.MX has
little chances to be found on a PowerPC system, even 5 years later.
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 13+ messages in thread