Skip to contentSkip to conversation

drivers/mtd/nand/nand_mrvl_nfc.c

DISCUSSION Andrei Yakimov 3 participants 4 messages May 19, 2015 – May 21, 2015

lore
Share & tools
lore
#1 lore raw

Hi Andrei,

+Cc Robert Jarzmik <[email protected]>

Quoted 9 lines · Andrei Yakimov

Please,
change
case NAND_CMD_PARAM:

        host->buf_count = 256;

To:
host->buf_count = 768;

If first copy of parameter page corrupted you will not able to use ONFI flash.

Thanks for noting. However, like many other opensource projects we communicate changes and change requests with formalized patches. Please generate one using git format-patch or similar and send it to the list. I'll happily make that change then.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
Quoted 12 lines · Sascha Hauer

Hi Andrei,

+Cc Robert Jarzmik <[email protected]>

Quoted 7 lines · Andrei Yakimov

Please,
change
case NAND_CMD_PARAM:

        host->buf_count = 256;

To:
host->buf_count = 768;

Quoted 7 lines
Quoted 2 lines

If first copy of parameter page corrupted you will not able to use ONFI flash.

Thanks for noting. However, like many other opensource projects we communicate changes and change requests with formalized patches. Please generate one using git format-patch or similar and send it to the list. I'll happily make that change then.

Same from me, I'll happily review a patch.
May I add also that host->ndcb3 and host->data_size deserve the same change within the NAND_CMD_PARAM case statement.

Cheers.

Signature · 6 lines
Robert

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw

I would like to provide a patch,
but I do not requesting any changes in baraebox and not working with it.

I do not working with marvel chips,
do not have any controller description.

I found this problem in my 8313 u-boot elbc and Scott Wood point me to same the problem in imx driver.

Checking linux drivers, found marvel driver which looks like have same problem.

Geleral idea - linux nand detection flow, expect PARAM command extra data will deliver as much data as needed, each next read will trigger extra transfer from nand chip. This is not true at least for elbc, imx and mrvl controllers ( just by looking to the driver code).

Any controller with memory buffer and transferring all data from chip at once and required another nand commad to do next transfer will need to be updated to read at least 1536 byte by param commad.
Existing implementation for this type of controllers will cause eventual failure on the field as soon as first ONFI/Jedec block will go bad unless other other chip identification (by chip ID) pick it up.

Andrei

Quoted 22 lines · Robert Jarzmik
Quoted 12 lines · Sascha Hauer

Hi Andrei,

+Cc Robert Jarzmik <[email protected]>

Quoted 7 lines · Andrei Yakimov

Please,
change
case NAND_CMD_PARAM:

        host->buf_count = 256;

To:
host->buf_count = 768;

Quoted 7 lines
Quoted 2 lines

If first copy of parameter page corrupted you will not able to use ONFI flash.

Thanks for noting. However, like many other opensource projects we communicate changes and change requests with formalized patches. Please generate one using git format-patch or similar and send it to the list. I'll happily make that change then.

Quoted 6 lines

Same from me, I'll happily review a patch.
May I add also that host->ndcb3 and host->data_size deserve the same change within the NAND_CMD_PARAM case statement.

Cheers.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox