From: zonque@gmail.com (Daniel Mack)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 4/4] ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND
Date: Thu, 29 Nov 2012 13:41:42 +0100 [thread overview]
Message-ID: <50B75806.8030501@gmail.com> (raw)
In-Reply-To: <518397C60809E147AF5323E0420B992E3EA0B986@DBDE01.ent.ti.com>
On 29.11.2012 13:36, Philip, Avinash wrote:
> On Wed, Nov 28, 2012 at 22:28:59, Daniel Mack wrote:
> [...]
>> + if (!of_property_read_string(child, "ti,nand-ecc-opt", &s)) {
>> + for (val = 0; val < ARRAY_SIZE(nand_ecc_opts); val++)
>> + if (!strcasecmp(s, nand_ecc_opts[val])) {
>> + gpmc_nand_data->ecc_opt = val;
>> + break;
>> + }
>> +
>> + /*
>> + * AM335x RBL compatibility mode - dependns on runtime
>> + * detection of the error location module.
>> + */
>> + if (!strcasecmp(s, "bch8-am335xrbl-compatible")) {
>> + gpmc_nand_data->ecc_opt = OMAP_ECC_BCH8_CODE_HW;
>> + gpmc_nand_data->is_elm_used = true;
>
> Remove is_elm_used from struct omap_nand_platform_data. Now this data
> populated as part of run time detection of elm module. So please remove
> The usage of is_elm_used;
So why do we need "bch8-am335xrbl-compatible" as special case then?
I thought the whole idea here is to tell the driver we want bch8 *and*
the usage of the elm, instead of falling back to the (incompatible)
software mode? If I remove that assignment, "bch8-am335xrbl-compatible"
is the same than "bch8".
Which detail am I missing? :)
Daniel
next prev parent reply other threads:[~2012-11-29 12:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-28 16:58 [PATCH RESEND v5 0/4] OMAP GPMC DT bindings Daniel Mack
2012-11-28 16:58 ` [PATCH v5 1/4] mtd: omap-nand: pass device_node in platform data Daniel Mack
2012-11-28 16:58 ` [PATCH v5 2/4] ARM: OMAP: gpmc-nand: drop __init annotation Daniel Mack
2012-11-28 16:58 ` [PATCH v5 3/4] ARM: OMAP: gpmc: enable hwecc for AM33xx SoCs Daniel Mack
2012-11-28 16:58 ` [PATCH v5 4/4] ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND Daniel Mack
2012-11-29 12:36 ` Philip, Avinash
2012-11-29 12:41 ` Daniel Mack [this message]
2012-11-29 14:59 ` Philip, Avinash
2012-11-29 15:07 ` Daniel Mack
2012-11-29 15:24 ` Philip, Avinash
2012-11-29 5:24 ` [PATCH RESEND v5 0/4] OMAP GPMC DT bindings Philip, Avinash
2012-11-29 11:58 ` Daniel Mack
2012-11-29 15:08 ` Philip, Avinash
2012-11-29 15:23 ` Daniel Mack
2012-11-30 5:53 ` Vaibhav Hiremath
-- strict thread matches above, loose matches on Subject: below --
2012-11-28 14:38 [PATCH " Daniel Mack
2012-11-28 14:38 ` [PATCH v5 4/4] ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND Daniel Mack
2012-11-28 16:46 ` Tony Lindgren
2012-11-28 16:59 ` Daniel Mack
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=50B75806.8030501@gmail.com \
--to=zonque@gmail.com \
--cc=linux-arm-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).