From: Lee Jones <lee.jones@linaro.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [GIT PULL] MFD for v4.13
Date: Fri, 7 Jul 2017 23:50:14 +0100 [thread overview]
Message-ID: <20170707225014.422x5ptpvnqpu674@dell> (raw)
In-Reply-To: <CA+55aFwsbTF-o759xJ4Bi++PDSOobq-kGAaw1LArw0yB1M+Tuw@mail.gmail.com>
On Fri, 07 Jul 2017, Linus Torvalds wrote:
> On Fri, Jul 7, 2017 at 2:50 AM, Lee Jones <lee.jones@linaro.org> wrote:
> >
> > include/linux/mfd/madera/registers.h | 8832 ++++++++++++++++++++
>
> So I've pulled everything but this, because honestly, that file looks
> like utter garbage.
>
> Why are there all those _hundreds_ of odd defines for
>
> MADERA_WSEQ_SEQUENCE_xx
>
> when it looks like you could just do one single one:
>
> // The sequence is one-based because somebody doesn't
> // know that indices start at 0. Thus the "-2".
> #define MADERA_WSEQ_SEQUENCE(x) (0x3000 + (x)*2 - 2)
>
> and similar things go for for pretty much EVERY SINGLE LINE in that
> 8-thousand line piece of nasty horrible crud.
>
> Being auto-generated doesn't really make this kind of thing any
> better. In fact, it makes it worse, because those stupid hardcoded
> names are often *harder* to use, because you cannot use a variable to
> index into things (which you may often want).
>
> So we have eight thousand lines of garbage that is
>
> (a) probably closer to 200x too many lines
> (b) less flexible than doing it right
>
> Honestly, tell me why would I want to merge something monstrous like that?
I'm inclined to agree and had my reservations. However based on
a previous conversation [0], I was convinced that it's actually the
right thing to do.
https://lkml.org/lkml/2017/4/7/229
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2017-07-07 22:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-07 9:50 Lee Jones
2017-07-07 20:36 ` Linus Torvalds
2017-07-07 22:50 ` Lee Jones [this message]
2017-07-17 8:56 ` Charles Keepax
2017-07-24 19:20 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170707225014.422x5ptpvnqpu674@dell \
--to=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®