All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <oss@buserror.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver
Date: Fri, 11 Mar 2016 14:18:36 -0600	[thread overview]
Message-ID: <1457727516.5360.168.camel@buserror.net> (raw)
In-Reply-To: <CAM7GXo=3FUepCNe66UBdFZq5xFRTesYLPNrGxCk_NDAzZQ7uQQ@mail.gmail.com>

On Fri, 2016-03-11 at 12:13 -0800, Steve Rae wrote:
> On Fri, Mar 11, 2016 at 11:55 AM, Scott Wood <oss@buserror.net> wrote:
> > On Fri, 2016-03-11 at 11:47 -0800, Steve Rae wrote:
> > > On Fri, Mar 11, 2016 at 11:29 AM, Scott Wood <oss@buserror.net> wrote:
> > > > On Thu, 2016-03-10 at 14:26 -0800, Steve Rae wrote:
> > > > > From: Jiandong Zheng <jdzheng@broadcom.com>
> > > > > 
> > > > > Add support for the iproc NAND, and enable on Cygnus and NSP boards.
> > > > > 
> > > > > Signed-off-by: Jiandong Zheng <jdzheng@broadcom.com>
> > > > > Signed-off-by: Steve Rae <srae@broadcom.com>
> > > > > ---
> > > > > There was a previous attempt to implement this "iproc NAND"
> > > > > (see: http://patchwork.ozlabs.org/patch/505399), however, due to the
> > > > > amount of changes required, it seemed better to implement the code
> > > > > in a series of steps. This is the first step, where the
> > > > > "iproc_nand.c"
> > > > > is essentially an empty file (with one function required to allow
> > > > > this
> > > > > commit to build successfully).
> > > > 
> > > > I don't see the value of applying a such a do-nothing patch.  It's
> > > > fine to
> > > > leave out unnecessary features, things that improve performance, etc.
> > > > but
> > > > to
> > > > be applied a patchset should accomplish something useful and correct,
> > > > not
> > > > just
> > > > be a staging area for future patches.
> > > 
> > > I agree -- but with the previous attempt, there where so many things
> > > that went wrong, that I cannot comprehend what is needed.
> > > So, I wanted to break it down into pieces, so that I could get clear
> > > responses to help me get it right.
> > > right now, I understand that I need to move certain defines to Kconfig
> > > ....
> > 
> > Go through the previous comments and address (or respond to) them one by
> > one,
> > then submit again.  If you want to break it into multiple patches, that's
> > fine
> > as long as the intermediate states are sane, but it should all be
> > submitted at
> > once as part of a patchset (again, except for unnecessary features).
> 
> OK - that was my plan (to address every previous comment)...
> I was hoping to get "incremental" comments to indicate that I was
> resolving them acceptably...
> My plan was to increment v2, v3, vxxx until it was acceptable.
> Would this be OK?

It's OK if you mark them as [RFC PATCH] so it's clear that you don't mean them
to be applied, only commented on -- and include a TODO list so we know what
you plan to address before dropping the "RFC".

Or just include a code fragment when replying to feedback, with a comment
like, "Is this what you're looking for?"

> > > > > diff --git a/arch/arm/include/asm/arch-bcmcygnus/configs.h
> > > > > b/arch/arm/include/asm/arch-bcmcygnus/configs.h
> > > > > index 3c07160..3bf7395 100644
> > > > > --- a/arch/arm/include/asm/arch-bcmcygnus/configs.h
> > > > > +++ b/arch/arm/include/asm/arch-bcmcygnus/configs.h
> > > > > @@ -10,6 +10,7 @@
> > > > >  #include <asm/iproc-common/configs.h>
> > > > > 
> > > > >  /* uArchitecture specifics */
> > > > > +#include <../../../drivers/mtd/nand/iproc_nand_cygnus.h>
> > > > 
> > > > No.
> > > 
> > > this "include" line is unacceptable?
> > 
> > Using "../../.." to reach into a code directory's private headers is
> > unacceptable, yes.
> > 
> > > could you propose something that would work?
> > 
> > If you want the info to be in the driver directory, use an ifdef there,
> > based
> > on a config symbol.  This seems like the better approach.
> 
> Maybe I misinterpreted the comments related to:
> 
> +#if defined(CONFIG_CYGNUS)
> +#include "iproc_nand_cygnus.h"
> +#elif defined(CONFIG_NS_PLUS)
> +#include "iproc_nand_ns_plus.h"
> +#else
> +#error "Unsupported configuration"
> +#endif
> 
> Scott - I thought the you did not like this logic -- now I am thinking
> you didn't like the "CONFIG_*" names....
> I'm guessing that the names should be:
> CONFIG_SYS_BCM_CYGNUS
> CONFIG_SYS_BCM_NSPLUS
> and that they should be added to Kconfig?

Correct.

-Scott

  reply	other threads:[~2016-03-11 20:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-10 22:26 [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver Steve Rae
2016-03-10 22:26 ` [U-Boot] [PATCH 2/4] mtd: fix compiler warnings Steve Rae
2016-03-10 22:26 ` [U-Boot] [PATCH 3/4] arm: bcm: enable MTD support Steve Rae
2016-03-10 22:26 ` [U-Boot] [PATCH 4/4] arm: bcm: configure NAND device and environment Steve Rae
2016-03-11 18:02 ` [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver Tom Rini
2016-03-11 18:07   ` Steve Rae
2016-03-11 18:18     ` Tom Rini
2016-03-11 18:18       ` Steve Rae
2016-03-11 19:29 ` Scott Wood
     [not found]   ` <CAM7GXo=myANwdVRABqC2GcZa5visj=57hLp+SG9QSt7oDNSMLA@mail.gmail.com>
     [not found]     ` <1457726115.5360.163.camel@buserror.net>
2016-03-11 20:13       ` Steve Rae
2016-03-11 20:18         ` Scott Wood [this message]
2016-03-11 20:21           ` Steve Rae
2017-05-31  2:06           ` Chris Packham
2017-05-31  2:08             ` Chris Packham

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=1457727516.5360.168.camel@buserror.net \
    --to=oss@buserror.net \
    --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.