Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1280428

Re: [PATCH 03/10] gpio: samsung: move gpio-samsung driver back to platform code

From Krzysztof Kozlowski <k.kozlowski@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCH 03/10] gpio: samsung: move gpio-samsung driver back to platform code
Date 2015-12-01 01:40 +0100
Message-ID <qAH97-2nP-3@gated-at.bofh.it> (permalink)
References <qyKNQ-9k-13@gated-at.bofh.it> <qyKNS-9k-55@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 26.11.2015 01:06, Arnd Bergmann wrote:
> The gpio-samsung driver is special in the sense that it
> interacts directly in multiple ways with the legacy platform
> code for the s3c24xx and s3c64xx platforms. In contrast,
> all devicetree based machines for Samsung, including the
> ones on those two SoC families use a different driver.
> 
> The header files that define the interface between the platform
> code and the gpio driver are not visible when building a
> kernel for ARCH_MULTIPLATFORM, which prevents us from
> turning on this option for s3c64xx.
> 
> To work around this, we now move the driver back into platform
> code, from where it was originally moved to as part of commit
> 1b39d5f2cc5c28 ("gpio/samsung: gpio-samsung.c to support
> Samsung GPIOs").
> 
> The long-term plan for this driver would be to remove it
> entirely, after all Samsung machines have been converted
> over to boot from DT, but there is currently no timeline
> for when that might happen.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  arch/arm/plat-samsung/Kconfig                          | 3 +++
>  arch/arm/plat-samsung/Makefile                         | 2 ++
>  {drivers/gpio => arch/arm/plat-samsung}/gpio-samsung.c | 0
>  drivers/gpio/Kconfig                                   | 7 -------
>  drivers/gpio/Makefile                                  | 1 -
>  5 files changed, 5 insertions(+), 8 deletions(-)
>  rename {drivers/gpio => arch/arm/plat-samsung}/gpio-samsung.c (100%)
> 
> diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
> index 57729b915003..83697414bfa0 100644
> --- a/arch/arm/plat-samsung/Kconfig
> +++ b/arch/arm/plat-samsung/Kconfig
> @@ -294,6 +294,9 @@ config SAMSUNG_WDT_RESET
>  	  Compile support for system restart by triggering watchdog reset.
>  	  Used on SoCs that do not provide dedicated reset control.
>  
> +config GPIO_SAMSUNG
> +	def_bool SAMSUNG_ATAGS
> +

I think this should be put inside "if SAMSUNG_ATAGS" section, just
before SAMSUNG_PM_GPIO (with default=y?). It makes more consistent with
rest of the options depending on ATAGS.

Rest seems fine:
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Best regards,
Krzysztof

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/10] ARM: s3c64xx multiplatform Arnd Bergmann <arnd@arndb.de> - 2015-11-25 17:10 +0100
  [PATCH 03/10] gpio: samsung: move gpio-samsung driver back to platform code Arnd Bergmann <arnd@arndb.de> - 2015-11-25 17:10 +0100
    Re: [PATCH 03/10] gpio: samsung: move gpio-samsung driver back to  platform code Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-12-01 01:40 +0100
      Re: [PATCH 03/10] gpio: samsung: move gpio-samsung driver back to platform code Arnd Bergmann <arnd@arndb.de> - 2015-12-01 16:40 +0100
  [PATCH 02/10] ASoC: samsung/smartq: use dynamic registration Arnd Bergmann <arnd@arndb.de> - 2015-11-25 17:10 +0100
    Re: [PATCH 02/10] ASoC: samsung/smartq: use dynamic registration Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-12-01 01:30 +0100
      Re: [PATCH 02/10] ASoC: samsung/smartq: use dynamic registration Arnd Bergmann <arnd@arndb.de> - 2015-12-01 16:20 +0100
  [PATCH 08/10] ARM: s3c64xx: use common debug-ll implementation Arnd Bergmann <arnd@arndb.de> - 2015-11-25 17:10 +0100
  [PATCH 10/10] ARM: s3c64xx: allow building without board support Arnd Bergmann <arnd@arndb.de> - 2015-11-25 17:20 +0100
  [PATCH 07/10] ARM: s3c64xx: use new adc/touchscreen driver Arnd Bergmann <arnd@arndb.de> - 2015-11-25 17:20 +0100
  [PATCH 01/10] Input: s3c2410_ts: fix S3C_ADC dependency Arnd Bergmann <arnd@arndb.de> - 2015-11-25 17:20 +0100
    Re: [PATCH 01/10] Input: s3c2410_ts: fix S3C_ADC dependency Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-12-01 00:50 +0100
  Re: [PATCH 00/10] ARM: s3c64xx multiplatform Mark Brown <broonie@kernel.org> - 2015-11-25 17:40 +0100
    Re: [PATCH 00/10] ARM: s3c64xx multiplatform Arnd Bergmann <arnd@arndb.de> - 2015-11-25 17:40 +0100

csiph-web