]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: sf Drop reassignment of new into flash
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 13 May 2020 10:58:01 +0000 (16:28 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 1 Jun 2020 12:25:24 +0000 (17:55 +0530)
commit5708e233c14d4bb14a90eac2bad1526b6e08ab0d
tree6de8c43a2498d4cfe9b1edd9cc6c96b3377b96fd
parent27d90c04a941e77a5cf3028a407cdf450f240c82
cmd: sf Drop reassignment of new into flash

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@chromium.org>
Cc: Vignesh R <vigneshr@ti.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
cmd/sf.c