[lkml]   [2011]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject[PATCH v4 0/4] Simplifications on Kconfigs

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

    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):



    # Should be selected automatically
    # CONFIG_TWL4030_USB=y

    # TODO USB_MUSB_OTG should select this


    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(-)


     \ /
      Last update: 2011-12-20 02:17    [W:0.023 / U:142.748 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site