Re: [U-Boot] [PATCH] sf: prevent clean_bar overwriting error codes

2019-02-01 Thread Simon Goldschmidt
Am 06.12.2018 um 02:31 schrieb Simon Glass: On Tue, 27 Nov 2018 at 13:09, Simon Goldschmidt wrote: In spi_flash.c, if CONFIG_SPI_FLASH_BAR is enabled, the function 'clean_bar' makes sure that the Bank Address Register is reset at the end of functions using it. However, if this is enabled, tho

Re: [U-Boot] [PATCH] sf: prevent clean_bar overwriting error codes

2018-12-05 Thread Simon Glass
On Tue, 27 Nov 2018 at 13:09, Simon Goldschmidt wrote: > > In spi_flash.c, if CONFIG_SPI_FLASH_BAR is enabled, the function > 'clean_bar' makes sure that the Bank Address Register is reset at the > end of functions using it. > > However, if this is enabled, those functions may return zero (success

[U-Boot] [PATCH] sf: prevent clean_bar overwriting error codes

2018-11-27 Thread Simon Goldschmidt
In spi_flash.c, if CONFIG_SPI_FLASH_BAR is enabled, the function 'clean_bar' makes sure that the Bank Address Register is reset at the end of functions using it. However, if this is enabled, those functions may return zero (success) when they should return an error. This is because after e.g. 'spi