[PATCH] mtd: nand: omap: ecc.correct: omap_elm_correct_data: return number of bit-flips detected in erased-page
Ezequiel Garcia
ezequiel.garcia at free-electrons.com
Thu Mar 20 10:55:30 EDT 2014
Pekon,
I'm not sure we need such a detailed subject. Just "mtd: nand: omap:
Return detected bitflip count" should be enough.
This goes for your other patches. It's just a nitpick, of course,
but it's good to have commit log consistency.
On Mar 20, Pekon Gupta wrote:
> fixes: commit 62116e5171e00f85a8d53f76e45b84423c89ff34
> mtd: nand: omap2: Support for hardware BCH error correction.
>
Remove these extra whitespace.
> In current omap_elm_correct_data(), an erased-page is also identified based on
> 'bitflip_count <= ecc.strength' per ecc-step (data+oob)
And this extra tab.
> But bitflip_count is ignored, unless errors are detected in other ecc.steps.
> ------------------
> if (bitflip_count) {
> /*
> * number of 0-bits within ECC limits
> * So this may be an erased-page
> */
> stat += bitflip_count;
> }
> [...]
> /* Check if any error reported */
> if (!is_error_reported)
> return 0;
> ------------------
>
We don't need a piece of code here, we can see that in the patch itself.
The commit log should be a text explaining what you are doing, why you are doing
it and perhaps the impact it has.
I suggest that you clean-up this a bit and resend it.
--
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
More information about the linux-mtd
mailing list