public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Huang Shijie <b32955@freescale.com>
Cc: Marek Vasut <marex@denx.de>,
	dedekind1@gmail.com, tharvey@gateworks.com,
	stable@vger.kernel.org, linux-mtd@lists.infradead.org,
	computersforpeace@gmail.com
Subject: Re: [PATCH V2] mtd: gpmi: fix the ecc regression
Date: Fri, 25 Oct 2013 13:03:27 +0100	[thread overview]
Message-ID: <1382702607.8522.110.camel@shinybook.infradead.org> (raw)
In-Reply-To: <1382602484-12023-1-git-send-email-b32955@freescale.com>

[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]

On Thu, 2013-10-24 at 16:14 +0800, Huang Shijie wrote:
>  int common_nfc_set_geometry(struct gpmi_nand_data *this)
>  {
> -       return set_geometry_by_ecc_info(this) ? 0 : legacy_set_geometry(this);
> +       return legacy_set_geometry(this) ? set_geometry_by_ecc_info(this) : 0;

So... what if someone has already shipped the new chips that require
stronger ECC, without realising that legacy_set_geometry() is
insufficient? (And is legacy_set_geometry *actually* doing precisely the
same as 3.10/3.11?)

Do we forcibly upgrade them to the new method, and compatibility be
damned?

I'm inclined to suggest that for the 3.12 release we just need to use
legacy_set_geometry(), and allow it to work with a *warning*, and then
for 3.13 we can finish thrashing out the precise behaviour we need —
which may indeed end up being that you do the new method *only* if the
corresponding property exists in the device tree.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5745 bytes --]

  parent reply	other threads:[~2013-10-25 12:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-24  8:14 [PATCH V2] mtd: gpmi: fix the ecc regression Huang Shijie
2013-10-24  8:48 ` [PATCH v2 fix] " Huang Shijie
2013-10-24 22:19   ` Brian Norris
2013-10-25 13:36     ` David Woodhouse
2013-10-25 12:03 ` David Woodhouse [this message]
2013-10-25 12:20   ` [PATCH V2] " David Woodhouse
2013-10-25 13:22     ` Marek
2013-10-26  1:33     ` Huang Shijie
2013-10-25 13:29       ` David Woodhouse
2013-10-25 13:38         ` Marek
2013-10-26  1:41         ` Huang Shijie
2013-10-25 14:08           ` David Woodhouse
2013-10-25 17:08             ` Brian Norris

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=1382702607.8522.110.camel@shinybook.infradead.org \
    --to=dwmw2@infradead.org \
    --cc=b32955@freescale.com \
    --cc=computersforpeace@gmail.com \
    --cc=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marex@denx.de \
    --cc=stable@vger.kernel.org \
    --cc=tharvey@gateworks.com \
    /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