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


Groups > linux.kernel > #1647906

Re: [GIT PULL] ARM: SoC fixes (and a cross-arch dt-include fix)

From Geert Uytterhoeven <geert@linux-m68k.org>
Newsgroups linux.kernel
Subject Re: [GIT PULL] ARM: SoC fixes (and a cross-arch dt-include fix)
Date 2017-05-23 12:00 +0200
Message-ID <tKeLE-1oL-11@gated-at.bofh.it> (permalink)
References <tIVUJ-6R6-11@gated-at.bofh.it> <tJU0y-5aj-13@gated-at.bofh.it> <tJXhM-7lx-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Olof,

On Mon, May 22, 2017 at 5:11 PM, Olof Johansson <olof@lixom.net> wrote:
> On Mon, May 22, 2017 at 4:44 AM, Linus Walleij <linus.walleij@linaro.org> wrote:
>> On Fri, May 19, 2017 at 9:34 PM, Olof Johansson <olof@lixom.net> wrote:
>>>  - We've started telling people to avoid cross-tree shared branches if all
>>>    they're doing is picking up one or two DT-used constants from a
>>>    shared include file, and instead to use the numeric values on first
>>>    submission. Follow-up moving over to symbolic names are sent in right
>>>    after -rc1, i.e. here. It's only a few minor patches of this type.
>>
>> OK it seems like a reasonable process.
>>
>> It's not like I can think about anything better.
>>
>> I was more opting for doing things this way:
>>
>> - Create bindings and <dt-bindings/foo/bar.h> merge it into the
>>   foo subsystem.
>>
>> - Merge driver into drivers/foo/bar.c that use <dt-bindings/foo/bar.h>
>>
>> - Submit DTS patch to ARM SoC (or whetever) using only numerical
>>   values.
>>
>> - After the merge window, follow up with a patch replacing the
>>   numerical constants with #defines from <dt-bindings/foo/bar.h>
>
> You're describing exactly what we've been pushing people towards.
>
> If it's just a few simple references it's not significantly more
> awkward, and decouples merges and removes need for stable branches.
> Essentially we've become slightly more lax in what we're willing to
> consider _right after_ -rc1 to include these tweaks (and often patches
> to turn on new drivers in defconfigs).
>
> If the amount of contents grows too large we might need to tweak
> things further, maybe with something pre-rc1 but that's more awkward.
>
>> An alternative would obviously be to wait for the next merge window
>> after merging the driver patch but I guess people are too impatient
>> to do that (including me).
>
> Yeah, asking people to spread out across releases would remove
> dependencies a lot, but it would also slow down progress and frustrate
> a lot of contributors so we don't do that.

The above works fine for new support, or for new platforms.

There's still support being migrated from platform code to DT, which
requires three steps:
  1. New DT-aware driver support,
  2. DT update to use the new driver support,
  3. Clean up platform code after optional DTB backwards compatibility
     grace period,
To make matters worse, 1 may conflict with the existing platform code,
and 2 must sometimes not be done before 1. Hence you may need three kernel
releases.
So we're already planning now what to clean up for v4.15 ;-)

Would it be acceptable to do step 2 in the same release, after the driver
support has entered in -rc1? I know this is more than just replacing
numbers by symbolic values.

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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


Thread

[GIT PULL] ARM: SoC fixes (and a cross-arch dt-include fix) Olof Johansson <olof@lixom.net> - 2017-05-19 21:40 +0200
  Re: [GIT PULL] ARM: SoC fixes (and a cross-arch dt-include fix) Linus Walleij <linus.walleij@linaro.org> - 2017-05-22 13:50 +0200
    Re: [GIT PULL] ARM: SoC fixes (and a cross-arch dt-include fix) Olof Johansson <olof@lixom.net> - 2017-05-22 17:20 +0200
      Re: [Ksummit-discuss] [GIT PULL] ARM: SoC fixes (and a cross-arch  dt-include fix) Daniel Vetter <daniel.vetter@ffwll.ch> - 2017-05-23 10:30 +0200
      Re: [GIT PULL] ARM: SoC fixes (and a cross-arch dt-include fix) Geert Uytterhoeven <geert@linux-m68k.org> - 2017-05-23 12:00 +0200
        Re: [GIT PULL] ARM: SoC fixes (and a cross-arch dt-include fix) Arnd Bergmann <arnd@arndb.de> - 2017-05-23 16:20 +0200
        Re: [GIT PULL] ARM: SoC fixes (and a cross-arch dt-include fix) Olof Johansson <olof@lixom.net> - 2017-05-23 18:50 +0200

csiph-web