All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH0/6] patchset to support TPL and P1021MDS board
Date: Mon, 31 Jan 2011 14:39:27 -0600	[thread overview]
Message-ID: <C6334D93-A826-4C68-9477-2BAEEE681EF1@kernel.crashing.org> (raw)
In-Reply-To: <20110131143141.2959da63@udp111988uds.am.freescale.net>


On Jan 31, 2011, at 2:31 PM, Scott Wood wrote:

> On Mon, 31 Jan 2011 21:22:04 +0100
> Wolfgang Denk <wd@denx.de> wrote:
> 
>> Dear Scott Wood,
>> 
>> In message <20110131141332.5a4a297d@udp111988uds.am.freescale.net> you wrote:
>>> 
>>>> I think these patches are incorrectly split.
>>> 
>>> I think the intent was to split the arch-neutral stuff from the 85xx
>>> stuff from the board stuff -- you'd rather they be all bunched together?
>> 
>> No, of course not all together.
>> 
>>>> 	This patch adds stuff to the Makefile, which would result in
>>>> 	errors if used, as the referenced directories don't exist yet.
>>> 
>>> Lots of patches add features, disabled by default, that require CPU or
>>> board code to provide things, that would cause errors if the feature
>>> were enabled on a board otherwise.
>> 
>> But here nothing is disabled. It's added to the top level Makefile.
>> It's dead code if unused, and causes errors if used.  WHy not add the
>> tpl target when you actually add the tpl code?
>> 
>>> I don't think it's even possible to add an empty directory with git.
>> 
>> True.  Butt that would not fix anythign, it would still not work.
>> 
>>>> [PATCH 2/6] powerpc/85xx: add TPL support
>>>> 
>>>> 	This patch creates unused files, like
>>>> 	arch/powerpc/cpu/mpc85xx/u-boot-tpl.lds
>>> 
>>> It gets used in later in the patchset, when a board with tpl is added.
>> 
>> Then this is where that file belongs to.
> 
> I'm confused.  You say "of course not all together", but the first one
> you say to include with the second, and the second you say to include
> with the third.
> 
> If you're suggesting keeping them mostly separate, but just moving some
> bits into the subsequent patch, that makes no sense to me.  They
> logically belong where they are -- e.g.
> arch/powerpc/cpu/mpc85xx/u-boot-tpl.lds is part of 85xx TPL support, it
> is not p1021mds-specific.  And every bit of the first two patches is
> technically dead until a board is added that uses it.
> 
> Has your aversion to "dead" code grown so strong it can't exist even in
> a transitory state between members of a patchset, even when necessary
> to avoid mixing users of a facility with the facility itself in the
> same patch?  I think that would do significant harm to reviewability.
> 
> -Scott

I'm in agreement with Scott on this.  I believe we've taken this a bit too far about "dead code".  It should be reasonable in a patch series to have code that will be used in a subsequent patch.

- k

  reply	other threads:[~2011-01-31 20:39 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31 18:41 [U-Boot] [PATCH0/6] patchset to support TPL and P1021MDS board Haiying.Wang at freescale.com
2011-01-31 18:41 ` [U-Boot] [PATCH 1/6] Introduce the Tertiary Program loader Haiying.Wang at freescale.com
2011-01-31 18:41 ` [U-Boot] [PATCH 2/6] powerpc/85xx: add TPL support Haiying.Wang at freescale.com
2011-01-31 18:41 ` [U-Boot] [PATCH 3/6] P1021: add P1021MDS board support Haiying.Wang at freescale.com
2011-01-31 20:03   ` Wolfgang Denk
2011-01-31 20:08     ` Scott Wood
2011-01-31 20:18       ` Wolfgang Denk
2011-01-31 20:23         ` Scott Wood
2011-01-31 21:39     ` Haiying Wang
2011-01-31 22:05       ` Kumar Gala
2011-01-31 22:16         ` Wolfgang Denk
2011-01-31 22:14       ` Wolfgang Denk
2011-01-31 21:40     ` Kumar Gala
2011-01-31 18:41 ` [U-Boot] [PATCH 4/6] powerpc/p1021: add more P1021 defines Haiying.Wang at freescale.com
2011-01-31 20:07   ` Wolfgang Denk
2011-01-31 21:08   ` Kumar Gala
2011-01-31 23:36     ` Timur Tabi
2011-02-01  4:04       ` Kumar Gala
2011-01-31 18:41 ` [U-Boot] [PATCH 5/6] powerpc/85xx: do not initialize QE if QE's firmware is in nand flash Haiying.Wang at freescale.com
2011-01-31 20:08   ` Wolfgang Denk
2011-01-31 21:02     ` Haiying Wang
2011-01-31 21:37       ` Wolfgang Denk
2011-02-02  4:29         ` Kumar Gala
2011-01-31 18:41 ` [U-Boot] [PATCH 6/6] p1021mds: add QE and UEC support Haiying.Wang at freescale.com
2011-01-31 20:11   ` Wolfgang Denk
2011-01-31 20:50     ` Haiying Wang
2011-01-31 21:28       ` Kumar Gala
2011-02-01  3:14         ` Haiying Wang
2011-02-01 16:50           ` Scott Wood
2011-02-01 17:01             ` Haiying Wang
2011-02-01 19:15               ` Kumar Gala
2011-02-01 19:46                 ` Haiying Wang
2011-02-02  4:25                   ` Kumar Gala
2011-01-31 19:39 ` [U-Boot] [PATCH0/6] patchset to support TPL and P1021MDS board Wolfgang Denk
2011-01-31 20:13   ` Scott Wood
2011-01-31 20:22     ` Wolfgang Denk
2011-01-31 20:31       ` Scott Wood
2011-01-31 20:39         ` Kumar Gala [this message]
2011-01-31 20:50           ` Wolfgang Denk
2011-01-31 20:50         ` Wolfgang Denk
2011-01-31 21:15           ` Scott Wood
2011-01-31 21:34             ` Wolfgang Denk
2011-01-31 22:07               ` Scott Wood
2011-01-31 22:40                 ` Wolfgang Denk
2011-01-31 22:55                   ` Scott Wood
2011-02-01  5:26 ` Kumar Gala

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=C6334D93-A826-4C68-9477-2BAEEE681EF1@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.