public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/7] reset: make RESET_CONTROLLER a select'ed option
@ 2015-11-05 11:15 Masahiro Yamada
  2015-11-05 11:15 ` [RFC PATCH 1/7] reset: drop ARCH_HAS_RESET_CONTROLLER Masahiro Yamada
                   ` (7 more replies)
  0 siblings, 8 replies; 25+ messages in thread
From: Masahiro Yamada @ 2015-11-05 11:15 UTC (permalink / raw)
  To: linux-kernel, Philipp Zabel
  Cc: Masahiro Yamada, linux-mips, Patrice Chotard, Sascha Hauer,
	kernel, Haojian Zhuang, Eric Miao, Linus Walleij,
	Michael Turquette, Vishnu Patekar, Arnd Bergmann, David Airlie,
	Barry Song, Catalin Marinas, Terje Bergström, Heiko Stuebner,
	Tuomas Tynkkynen, Hans de Goede, linux-rockchip, linux-arm-kernel,
	Will Deacon, Ralf Baechle, Alexandre Courbot, Daniel Lezcano,
	Benjamin Gaignard, Thierry Reding, Mark Yao, Vincent Abriou,
	Sebastian Hesselbarth, Jens Kuske, Russell King, linux-gpio,
	dri-devel, linux-tegra, Maxime Coquelin, Srinivas Kandagatla,
	Shawn Guo, Mark Brown, Stephen Warren, linux-spi, Chen-Yu Tsai,
	Maxime Ripard

When I was implementing a new reset controller for my SoCs,
I struggled to make my sub-menu shown under the reset
controller menu.
I noticed the Kconfig in reset sub-system are screwed up due to two
config options (ARCH_HAS_RESET_CONTROLLER and RESET_CONTROLLER).

I think only the former should be select'ed by relevant SoCs,
but in fact the latter is also select'ed here and there.
Mixing "select" to a user-configurable option is a mess.

Finally, I started to wonder whether it could be more simpler?

The first patch drops ARCH_HAS_RESET_CONTROLLER.
RESET_CONTROLLER should be directly selected by SoCs.

The rest of this series are minor clean ups in other
sub-systems.
I can postpone them if changes over cross sub-systems
are not preferred.



Masahiro Yamada (7):
  reset: drop ARCH_HAS_RESET_CONTROLLER
  spi: sunxi: remove redundant "depends on RESET_CONTROLLER"
  spi: tegra: remove redundant "depends on RESET_CONTROLLER"
  pinctrl: sunxi: remove redundant "depends on RESET_CONTROLLER"
  drm/sti: replace "select RESET_CONTROLLER" with "depends on ..."
  drm/rockchip: remove redundant "depends on RESET_CONTROLLER"
  drm/tegra: tegra: remove redundant "depends on RESET_CONTROLLER"

 arch/arm/Kconfig                 |  3 +--
 arch/arm/mach-berlin/Kconfig     |  2 +-
 arch/arm/mach-imx/Kconfig        |  2 +-
 arch/arm/mach-mmp/Kconfig        |  4 ++--
 arch/arm/mach-prima2/Kconfig     |  2 +-
 arch/arm/mach-rockchip/Kconfig   |  2 +-
 arch/arm/mach-sti/Kconfig        |  1 -
 arch/arm/mach-sunxi/Kconfig      |  1 -
 arch/arm/mach-tegra/Kconfig      |  1 -
 arch/arm64/Kconfig.platforms     |  3 +--
 arch/mips/Kconfig                |  4 +---
 drivers/gpu/drm/rockchip/Kconfig |  1 -
 drivers/gpu/drm/sti/Kconfig      |  4 ++--
 drivers/gpu/drm/tegra/Kconfig    |  1 -
 drivers/pinctrl/sunxi/Kconfig    |  2 --
 drivers/reset/Kconfig            | 12 +++++++-----
 drivers/reset/sti/Kconfig        |  1 -
 drivers/spi/Kconfig              |  6 ++----
 18 files changed, 20 insertions(+), 32 deletions(-)

-- 
1.9.1


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

end of thread, other threads:[~2015-11-17 14:04 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05 11:15 [RFC PATCH 0/7] reset: make RESET_CONTROLLER a select'ed option Masahiro Yamada
2015-11-05 11:15 ` [RFC PATCH 1/7] reset: drop ARCH_HAS_RESET_CONTROLLER Masahiro Yamada
2015-11-05 11:15 ` [RFC PATCH 2/7] spi: sunxi: remove redundant "depends on RESET_CONTROLLER" Masahiro Yamada
2015-11-05 11:28   ` Mark Brown
2015-11-05 12:11     ` Masahiro Yamada
2015-11-05 12:20       ` Mark Brown
2015-11-05 12:32         ` Masahiro Yamada
2015-11-05 15:05           ` Mark Brown
2015-11-06  6:00             ` Masahiro Yamada
2015-11-06 10:21               ` Mark Brown
2015-11-05 11:15 ` [RFC PATCH 3/7] spi: tegra: " Masahiro Yamada
2015-11-05 11:50   ` Mark Brown
2015-11-06  6:02     ` Masahiro Yamada
2015-11-06 10:22       ` Mark Brown
2015-11-05 11:15 ` [RFC PATCH 4/7] pinctrl: sunxi: " Masahiro Yamada
2015-11-05 13:40   ` Linus Walleij
2015-11-05 14:06     ` Linus Walleij
2015-11-16  3:40     ` Masahiro Yamada
2015-11-17 14:03       ` Linus Walleij
2015-11-05 11:15 ` [RFC PATCH 5/7] drm/sti: replace "select RESET_CONTROLLER" with "depends on ..." Masahiro Yamada
2015-11-05 11:15 ` [RFC PATCH 6/7] drm/rockchip: remove redundant "depends on RESET_CONTROLLER" Masahiro Yamada
2015-11-05 11:15 ` [RFC PATCH 7/7] drm/tegra: tegra: " Masahiro Yamada
2015-11-05 14:49 ` [RFC PATCH 0/7] reset: make RESET_CONTROLLER a select'ed option Arnd Bergmann
2015-11-06  5:58   ` Masahiro Yamada
2015-11-06  9:29     ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox