From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 0/5] mtd: nand: omap: optimize and clean-up of OMAP NAND driver
Date: Thu, 29 Aug 2013 13:47:24 -0400 [thread overview]
Message-ID: <521F892C.3000001@ti.com> (raw)
In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73EA07FF2@DBDE04.ent.ti.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/29/2013 01:26 PM, Gupta, Pekon wrote:
>>
>> On Thu, Aug 29, 2013 at 04:26:40PM +0530, Pekon Gupta wrote:
>>> *changes in v3*
>>> [PATCH 1/5] (complete change)
>>> - ecc-scheme is selection is controller by s/w, not CONFIG_NAND_xx
>>> - added omap_select_ecc_scheme(), as common function to handle
>> all
>>> ecc-scheme related configurations for both board_nand_init() &
>>> omap_nand_switch_ecc().
>>> - removed un-used defines from asm/arch-am33xx/omap_gpmc.h
>>> - updated doc/REAME.nand
>>> [PATCH 2/5] removed un-used defines from asm/omap_gpmc.h
>>> [PATCH 3/5] removed omap_calculate_ecc_bch_sw() and
>> omap_calculate_ecc()
>>> and merged their logic into omap_calculate_ecc_bch()
>>> [PATCH 4/5] updated return error-code in-case of invalid conditions
>>> [PATCH 5/5] (new) for board/ti/am335x/README
>>
>> Note that with the series applied, we see:
>> NAND: nand: selected OMAP_ECC_BCH8_CODE_HW
>> 256 MiB
>>
> The first part of string "NAND: " is coming from
> arch/arm/lib/board.c:582 puts("NAND: ");
> I'm not sure why it was added, seems legacy code..
> And same is copied to all other arch/xx/lib/board.c
> However as this print is not giving much of info, so can this be removed ?
NAND + size is useful information.
>> I think we should move the selected message to a debug().
>>
> Second part of string "nand: selected OMAP_ECC_BCH8_CODE_HW" was
> specifically added in board_nand_init() because currently there is no way
> to identify the ECC scheme being used in u-boot. Unless digging into
> source code and reviewing board file.
> And many time end-users face ECC scheme mis-match between u-boot
> and linux when flashing kernel and file-system from u-boot.
> Thus this print helps in identifying the ECC scheme being used from logs.
> So, please keep this print "nand: selected <ecc-scheme>" .. ?
I'd rather not as we should have left the mis-match problems in the
past. We don't generally offer commands to switch ECC schemes as
everyone is using the same now. When we do need to offer switching for
legacy reasons that's when we should say what we're on.
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJSH4ksAAoJENk4IS6UOR1W208QAJkXCvdm1gsIB7vjL8zf4Yi8
CGNm7B2d5K1kubP21LzClgf52T5ImMFlqXpvJJ/BPjwEnanPS6zXeBrzc1zRZZft
Y8Q6VlnPl094zDof9TdEoa51L6XmRqc8zRcdELvJLatrw0fd2htuJrXdUgi46a3M
MeukhTHWT0IkbOixFuI22eiaN8YC5api5ljZvMcNJMXXkCbcgb0C743BPiRHasFI
nslOhfJShU/XhNuhtOqKnN6oen5nuzYi7O2DFPS55ipkiz+ekKon8pVU587WXtTW
ML5Hb+8tutgkZwhMXG0tWKaLv7Bhk9zKPmfLAyqJrdOulGeIRxRRVBrI0Vi9kcJ4
a6dO2g3+zOyNkZ//ejIjFvVNRBCK1+eSPxY0KxNATIghn4IuGLC2tGB1BUap2+hR
odBZzgETLcomyzpLnVOCMl+FVCPaAE0qKsqdz3h6O+qPYY+bSIFyzTJNioj7d2ws
LADJoR5FM+rTo8/mQrsQwbGT2sMPENeeLYrjSkKRMBLQonItp5SOyZPMPUwp42sx
Ih6tmvZkQM4sWt2okAZltOhbtzx8uPmKDKsE8UIZKB4uF4okP86SjsidguUhj2g6
NmutHKNiwcz4Pppe9IhigusgL9TrVMTSq4yefzOeLY2iKnouqog1RCevdly2BQaZ
iqbOYt1DuccSoIzat68h
=aNQx
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2013-08-29 17:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 10:56 [U-Boot] [PATCH v3 0/5] mtd: nand: omap: optimize and clean-up of OMAP NAND driver Pekon Gupta
2013-08-29 10:56 ` [U-Boot] [PATCH v3 1/5] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform Pekon Gupta
2013-08-29 15:01 ` Tom Rini
2013-08-29 10:56 ` [U-Boot] [PATCH v3 2/5] mtd: nand: omap: optimize chip->ecc.hwctl() for H/W ECC schemes Pekon Gupta
2013-08-29 10:56 ` [U-Boot] [PATCH v3 3/5] mtd: nand: omap: optimize chip->ecc.calculate() " Pekon Gupta
2013-08-29 10:56 ` [U-Boot] [PATCH v3 4/5] mtd: nand: omap: optimized chip->ecc.correct() " Pekon Gupta
2013-08-29 10:56 ` [U-Boot] [PATCH v3 5/5] board/ti/am335x/README: update for NAND boot Pekon Gupta
2013-08-29 12:56 ` Tom Rini
[not found] ` <20980858CB6D3A4BAE95CA194937D5E73EA05DA1@DBDE04.ent.ti.com>
2013-08-29 13:08 ` Tom Rini
2013-08-29 16:06 ` [U-Boot] [PATCH v3 0/5] mtd: nand: omap: optimize and clean-up of OMAP NAND driver Tom Rini
[not found] ` <20980858CB6D3A4BAE95CA194937D5E73EA07FF2@DBDE04.ent.ti.com>
2013-08-29 17:47 ` Tom Rini [this message]
[not found] ` <20980858CB6D3A4BAE95CA194937D5E73EA0AA07@DBDE04.ent.ti.com>
2013-09-04 12:51 ` Tom Rini
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=521F892C.3000001@ti.com \
--to=trini@ti.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox