mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Simplifications on Kconfigs
@ 2011-12-20  1:15 Felipe Contreras
  2011-12-20  1:15 ` [PATCH v4 1/4] mfd: simplify twl4030_power config Felipe Contreras
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Felipe Contreras @ 2011-12-20  1:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Uwe Kleine-König, Felipe Balbi, Vladimir Zapolskiy,
	Felipe Contreras

Hi,

These have been discussed quite extensively before, but I never took the time
to split them:

http://article.gmane.org/gmane.linux.kernel/1050608
http://article.gmane.org/gmane.linux.usb.general/38230

Some are simple, and people OK'ed them, some others are a bit controversial.
However, something needs to be done.

At some point in time Linus complained about the huge amount of changes in the
ARM configs, which were huge at the time, and he even threated to remove them
all. The switch to simplified defconfigs (using 'make savedefconfig') greatly
alleviated the situation, however, the idea was that kconfig files should
continue to be improved until the defconfigs are so small, that they are not
needed at all any more. We are pretty far from that point.

So... the following patches remove the need to manually specify some
configurations in some platforms, like TWL4030_CORE, REGULATOR_TWL4030, and
TWL4030_USB. Note however that these are only *defaults*; the user can always
disable them for whatever reason, and they are not *dependencies*; the user can
still enable them in other architectures (like x86).

The final patch although it looks like it's adding a dependency, it's not; the
dependency is already there, except in the form selects. Well, almost, because
right now you can build USB_MUSB_HDRC if TWL4030_USB=n and NOP_USB_XCEIV=n in
some architectures (like MACH_OMAP_RX51), and that's actually bad, because that
has no possibility of working. Fortunately the dependencies can be built in x86
(or any other architecture), so USB_MUSB_HDRC can be built as well. IOW; this
is just shuffling the code so that at least OMAP2+ machines have sensible
defaults when USB_MUSB_HDRC is on.

One of the results is that this simple defconfig works (or at least selects the
right USB stuff):

---
CONFIG_ARCH_OMAP=y
CONFIG_ARCH_OMAP2PLUS_TYPICAL=n

CONFIG_USB=y
CONFIG_USB_GADGET=y
CONFIG_USB_MUSB_OTG=y
CONFIG_USB_MUSB_HDRC=y
CONFIG_USB_ETH=y
CONFIG_USB_ETH_EEM=y

# Should be selected automatically
# CONFIG_TWL4030_USB=y

# TODO USB_MUSB_OTG should select this
CONFIG_USB_GADGET_MUSB_HDRC=y
---

Cheers.

Felipe Contreras (4):
  mfd: simplify twl4030_power config
  mfd: simplify twl4030_core config
  regulator: simplify twl4030 config
  usb: simplify hdrc configuration

 drivers/mfd/Kconfig       |    3 ++-
 drivers/regulator/Kconfig |    1 +
 drivers/usb/musb/Kconfig  |    4 +---
 drivers/usb/otg/Kconfig   |    3 +++
 4 files changed, 7 insertions(+), 4 deletions(-)

-- 
1.7.8.rc1.14.g248db


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

end of thread, other threads:[~2011-12-20 20:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-20  1:15 [PATCH v4 0/4] Simplifications on Kconfigs Felipe Contreras
2011-12-20  1:15 ` [PATCH v4 1/4] mfd: simplify twl4030_power config Felipe Contreras
2011-12-20  1:15 ` [PATCH v4 2/4] mfd: simplify twl4030_core config Felipe Contreras
2011-12-20  1:15 ` [PATCH v4 3/4] regulator: simplify twl4030 config Felipe Contreras
2011-12-20  1:19   ` Mark Brown
2011-12-20  1:36     ` Felipe Contreras
2011-12-20  1:53       ` Mark Brown
2011-12-20  2:04         ` Felipe Contreras
2011-12-20  2:17           ` Mark Brown
2011-12-20  1:25   ` Mark Brown
2011-12-20  1:43     ` Felipe Contreras
2011-12-20  1:15 ` [PATCH v4 4/4] usb: simplify hdrc configuration Felipe Contreras
2011-12-20 11:04   ` Felipe Balbi
2011-12-20 20:25     ` Felipe Contreras

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

all inboxes | Powered by JetHome®