Re: [PATCH 2/2] mtd: atmel_nand: enable PMECC for 8k page nand

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your Acked.

Yes you're right, so I split this into 2 commits and send a v2.

Best regards,
Raphaël Poggi

2014-07-17 12:05 GMT+02:00 Bo Shen <voice.shen@xxxxxxxxx>:
> Hi Raphael,
>
>
> On 07/17/2014 04:51 PM, Raphael Poggi wrote:
>>
>> Enable the PMECC to support 8k page.
>>
>> Signed-off-by: Raphaël Poggi <poggi.raph@xxxxxxxxx>
>
>
> Acked-by: Bo Shen <voice.shen@xxxxxxxxx>
>
>
>> ---
>>   drivers/mtd/nand/atmel_nand.c |    4 +++-
>>   1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
>> index fa596ed..36a60d1 100644
>> --- a/drivers/mtd/nand/atmel_nand.c
>> +++ b/drivers/mtd/nand/atmel_nand.c
>> @@ -796,7 +796,9 @@ static int __init atmel_pmecc_nand_init_params(struct
>> device_d *dev,
>>         switch (mtd->writesize) {
>>         case 2048:
>>         case 4096:
>> -               host->pmecc_degree = PMECC_GF_DIMENSION_13;
>> +       case 8192:
>> +               host->pmecc_degree = (sector_size == 512) ?
>> +                                       PMECC_GF_DIMENSION_13 :
>> PMECC_GF_DIMENSION_14;
>
>
> Actually, this is a fix + 8K page support.
> If some commit message or split into two patches will be better.
>
>
>>                 host->pmecc_cw_len = (1 << host->pmecc_degree) - 1;
>>                 host->pmecc_sector_number = mtd->writesize / sector_size;
>>                 host->pmecc_bytes_per_sector = pmecc_get_ecc_bytes(
>>
>
> Best Regards,
> Bo Shen
>
> _______________________________________________
> barebox mailing list
> barebox@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux