[PATCH 1/3] MTD: at91: atmel_nand: for PMECC, add code to choose the ecc bits and sector size according to the ONFI parameter ECC requirement.
josh.wu at atmel.com
Wed Jan 16 03:28:44 EST 2013
On 1/15/2013 8:26 PM, Artem Bityutskiy wrote:
> I cannot compile this patch:
> ERROR (phandle_references): Reference to non-existent node or label "pinctrl_ssc0_tx"
> ERROR: Input tree has errors, aborting (use -f to force output)
> make: *** [arch/arm/boot/dts/at91sam9g20ek.dtb] Error 2
As Bo Shen already mentioned, they are caused by ssc pinctrl patches. it
will be merged in next rc or late.
> On Wed, 2012-12-19 at 18:27 +0800, Josh Wu wrote:
>> This patch will check NAND flash's ecc minimum requirement in ONFI parameter. If it is equal or smaller than pmecc-cap in dtsi, then use ecc_bits in ONFI. otherwise, return an error since pmecc-cap in dtsi don't meet the ecc minimum reqirement.
>> This patch also check sector size (codeword) requirement in ONFI. If it is equal or bigger than sector_size in dtsi, then use the one of ONFI. otherwise return error.
>> Currently we don't support to read the ECC parameter in ONFI extended parameter page. So in that case we just use the value specified in dts.
>> For non-ONFI nand flash, we assume the minimum ecc requirement is 2bits in 512 bytes.
>> Signed-off-by: Josh Wu <josh.wu at atmel.com>
> Please, wrap the lines like kernel developers usually do.
OK. I will resend the whole patch series with wrapped commit message.
More information about the linux-arm-kernel