All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] gpio: mockup: drop unneeded dependencies from Kconfig
@ 2019-03-14 15:07 Bartosz Golaszewski
  2019-03-14 15:07 ` [PATCH 2/2] gpio: mockup: move the driver out of the IOMEM drivers section Bartosz Golaszewski
  2019-03-22 15:55 ` [PATCH 1/2] gpio: mockup: drop unneeded dependencies from Kconfig Bartosz Golaszewski
  0 siblings, 2 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2019-03-14 15:07 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-gpio, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

The testing module doesn't need GPIO irqchip nor does it depend on
sysfs. Remove unnecessary dependencies from Kconfig.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 drivers/gpio/Kconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 3f50526a771f..e9473e968d9a 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -332,9 +332,7 @@ config GPIO_MM_LANTIQ
 
 config GPIO_MOCKUP
 	tristate "GPIO Testing Driver"
-	depends on GPIOLIB && SYSFS
-	select GPIO_SYSFS
-	select GPIOLIB_IRQCHIP
+	depends on GPIOLIB
 	select IRQ_SIM
 	help
 	  This enables GPIO Testing driver, which provides a way to test GPIO
-- 
2.20.1

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

* [PATCH 2/2] gpio: mockup: move the driver out of the IOMEM drivers section
  2019-03-14 15:07 [PATCH 1/2] gpio: mockup: drop unneeded dependencies from Kconfig Bartosz Golaszewski
@ 2019-03-14 15:07 ` Bartosz Golaszewski
  2019-03-22 15:55 ` [PATCH 1/2] gpio: mockup: drop unneeded dependencies from Kconfig Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2019-03-14 15:07 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-gpio, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

The testing driver doesn't really depend on HAS_IOMEM. We may want to
build it for testing purposes on architectures not supporting IOMEM,
for example: on user-mode linux. Move it out of the "Memory Mapped GPIO
drivers" section.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 drivers/gpio/Kconfig | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index e9473e968d9a..474ab3f7f9ce 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -330,18 +330,6 @@ config GPIO_MM_LANTIQ
 	  (EBU) found on Lantiq SoCs. The gpios are output only as they are
 	  created by attaching a 16bit latch to the bus.
 
-config GPIO_MOCKUP
-	tristate "GPIO Testing Driver"
-	depends on GPIOLIB
-	select IRQ_SIM
-	help
-	  This enables GPIO Testing driver, which provides a way to test GPIO
-	  subsystem through sysfs(or char device) and debugfs. GPIO_SYSFS
-	  must be selected for this test.
-	  User could use it through the script in
-	  tools/testing/selftests/gpio/gpio-mockup.sh. Reference the usage in
-	  it.
-
 config GPIO_MPC5200
 	def_bool y
 	depends on PPC_MPC52xx
@@ -1440,4 +1428,16 @@ config GPIO_VIPERBOARD
 
 endmenu
 
+config GPIO_MOCKUP
+	tristate "GPIO Testing Driver"
+	depends on GPIOLIB
+	select IRQ_SIM
+	help
+	  This enables GPIO Testing driver, which provides a way to test GPIO
+	  subsystem through sysfs(or char device) and debugfs. GPIO_SYSFS
+	  must be selected for this test.
+	  User could use it through the script in
+	  tools/testing/selftests/gpio/gpio-mockup.sh. Reference the usage in
+	  it.
+
 endif
-- 
2.20.1

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

* Re: [PATCH 1/2] gpio: mockup: drop unneeded dependencies from Kconfig
  2019-03-14 15:07 [PATCH 1/2] gpio: mockup: drop unneeded dependencies from Kconfig Bartosz Golaszewski
  2019-03-14 15:07 ` [PATCH 2/2] gpio: mockup: move the driver out of the IOMEM drivers section Bartosz Golaszewski
@ 2019-03-22 15:55 ` Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2019-03-22 15:55 UTC (permalink / raw)
  To: Linus Walleij
  Cc: open list:GPIO SUBSYSTEM, Linux Kernel Mailing List, Bartosz Golaszewski

czw., 14 mar 2019 o 16:08 Bartosz Golaszewski <brgl@bgdev.pl> napisał(a):
>
> From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
>
> The testing module doesn't need GPIO irqchip nor does it depend on
> sysfs. Remove unnecessary dependencies from Kconfig.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> ---
>  drivers/gpio/Kconfig | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index 3f50526a771f..e9473e968d9a 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -332,9 +332,7 @@ config GPIO_MM_LANTIQ
>
>  config GPIO_MOCKUP
>         tristate "GPIO Testing Driver"
> -       depends on GPIOLIB && SYSFS
> -       select GPIO_SYSFS
> -       select GPIOLIB_IRQCHIP
> +       depends on GPIOLIB
>         select IRQ_SIM
>         help
>           This enables GPIO Testing driver, which provides a way to test GPIO
> --
> 2.20.1
>

Both applied to for-next.

Bart

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

end of thread, other threads:[~2019-03-22 15:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14 15:07 [PATCH 1/2] gpio: mockup: drop unneeded dependencies from Kconfig Bartosz Golaszewski
2019-03-14 15:07 ` [PATCH 2/2] gpio: mockup: move the driver out of the IOMEM drivers section Bartosz Golaszewski
2019-03-22 15:55 ` [PATCH 1/2] gpio: mockup: drop unneeded dependencies from Kconfig Bartosz Golaszewski

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.