[PATCH 2/5] cmd: sf Drop reassignment of new into flash
Jagan Teki
jagan at amarulasolutions.com
Tue May 19 21:25:19 CEST 2020
On Thu, May 14, 2020 at 5:42 PM Jagan Teki <jagan at amarulasolutions.com> wrote:
>
> The new pointer points to flash found and that would
> assign it to global 'flash' pointer for further flash
> operations and also keep track of old flash pointer.
>
> This would happen if the probe is successful or even
> failed, but current code assigning new into flash before
> and after checking the new.
>
> So, drop the assignment after new checks so flash always
> latest new pointer even if probe failed or succeed.
>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Vignesh R <vigneshr at ti.com>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
> ---
Applied to u-boot-spi/master
More information about the U-Boot
mailing list