All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Norris <computersforpeace@gmail.com>
To: Harvey Hunt <harvey.hunt@imgtec.com>
Cc: linux-mtd@lists.infradead.org, Alex Smith <alex@alex-smith.me.uk>
Subject: Re: [PATCH] mtd: jz4780_nand: replace if/else blocks with switch/case
Date: Fri, 8 Jan 2016 09:49:47 -0800	[thread overview]
Message-ID: <20160108174947.GN109450@google.com> (raw)
In-Reply-To: <568FE348.7070805@imgtec.com>

On Fri, Jan 08, 2016 at 04:26:48PM +0000, Harvey Hunt wrote:
> Hi Brian,
> 
> On 07/01/16 17:53, Brian Norris wrote:
> >Using switch/case helps make this logic more clear and more robust. With
> >this structure:
> >
> >  * it's clear that this driver only support ECC_{HW,SOFT,SOFT_BCH}; and
> >
> >  * we can sanely handle new ECC unsupported modes (right now, this code
> >    makes incorrect assumptions about the possible values in the
> >    nand_ecc_modes_t enum; e.g., what happens with NAND_ECC_HW_OOB_FIRST?)
> >
> >Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> >Cc: Alex Smith <alex@alex-smith.me.uk>
> >Cc: Harvey Hunt <harvey.hunt@imgtec.com>
> 
> I've just tested this on a Ci20 and all seems well.
> 
> Tested-by: Harvey Hunt <harvey.hunt@imgtec.com>
> Acked-by: Harvey Hunt <harvey.hunt@imgtec.com>

Great, applied to l2-mtd.git

      reply	other threads:[~2016-01-08 17:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-07 17:53 [PATCH] mtd: jz4780_nand: replace if/else blocks with switch/case Brian Norris
2016-01-08 12:28 ` Boris Brezillon
2016-01-08 12:30   ` Harvey Hunt
2016-01-08 12:41     ` Boris Brezillon
2016-01-08 16:26 ` Harvey Hunt
2016-01-08 17:49   ` Brian Norris [this message]

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=20160108174947.GN109450@google.com \
    --to=computersforpeace@gmail.com \
    --cc=alex@alex-smith.me.uk \
    --cc=harvey.hunt@imgtec.com \
    --cc=linux-mtd@lists.infradead.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 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.