Re: [U-Boot] [PATCH 05/45] sf: Avoid allocating memory on every read operation

2018-10-09 Thread sjg
At present spi_flash_cmd_read_ops() allocates and frees a few bytes of memory every time it is called. It is faster to use the stack for this and this is now supported by the minimum GCC version required by U-Boot. Remove the allocation and use a variable-sized array instead. Signed-off-by: Simon

[U-Boot] [PATCH 05/45] sf: Avoid allocating memory on every read operation

2018-10-01 Thread Simon Glass
At present spi_flash_cmd_read_ops() allocates and frees a few bytes of memory every time it is called. It is faster to use the stack for this and this is now supported by the minimum GCC version required by U-Boot. Remove the allocation and use a variable-sized array instead. Signed-off-by: Simon