There are no info about these options in the README.
Documenting these options makes getting startup,
configuration & testing easier.
Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com>
---
README | 8
1 file changed, 8 insertions(+)
diff --git a/README b/README
ind
There are no README documentation about these options of SPI &
serial flash devices. Documenting these options makes getting
startup, configuration & testing easier.
Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com>
---
README | 15 +++
1 file changed, 15 inser
CONFIG_SPI_FLASH_BAR & CONFIG_SPI_FLASH_MTD are used without
documentation. Documenting these options makes getting startup,
configuration & testing easier.
Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com>
---
README | 10 ++
1 file changed, 10 insertions(+)
diff
.txt
Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com>
---
drivers/spi/spi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 7d81fbd..b02c7ab 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -31,8 +31,10 @@ void *spi_do_alloc
In case of #define DEBUG 1 (fordebugging SPL). A bug in
spl_nand_load_image() will be triggered, because it prints
using hw ecc regardless of soft ecc configurations and
initializations.
Signed-off-by: Ahmed Samir
---
common/spl/spl_nand.c | 4
1 file changed, 4
Getting the current NAND device is already done once as part
of nand command. Therefore, repeating this step as part of
the sub-commands is unnecessary.
Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com>
---
cmd/nand.c | 6 --
1 file changed, 6 deletions(-)
diff --git a/cmd/
While dealing with large chips (e.g. page: 4KB, OOB:224),
we found it helpful to get these additional NAND info by
enabling the DEBUG macro instead of full tracing every time
and consuming time. Especially about the currently in use
scheme for testing & development.
Signed-off-by: Ahmed S
Define clear status register command to be used
in error handling.
Signed-off-by: Ahmed S. Khalil
---
drivers/mtd/spi/sf_internal.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h
index 839cdbe..42f2b20
be done for the other
flash vendors too.
Ahmed Samir Khalil (5):
mtd: spi: Define CLSR command
mtd: spi_flash: Support clearing status register
mtd: spi_flash: Clear SR if write/erase error is flagged
mtd: spi_flash: Clear SR error flags in case of failed write
mtd: spi_flash:
Spansion flash has QEB in the same status register as well.
Therefore, preserve the original values while rebooting.
Otherwise, some SPI controllers may be unable to access
the flash correctly e.g. receive garbage bytes instead.
Signed-off-by: Ahmed S. Khalil
---
A function to clear status register-1 after error
flag(s) being triggered.
Signed-off-by: Ahmed S. Khalil
---
drivers/mtd/spi/spi_flash.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
In case of write or erase error, flags are being
triggered into status register-1. The flags should be
cleared, otherwise they may lead to unstable behavior
for the following operation(s).
Signed-off-by: Ahmed S. Khalil
---
drivers/mtd/spi/spi_flash.c | 3 +++
1 file
12 matches
Mail list logo