Commit d6e9141f authored by Cyrille Pitchen's avatar Cyrille Pitchen Committed by Tom Rini

sf: fix sf probe

This patch fixes the "sf probe" command. The very first SPI flash probe
passes, for instance when u-boot tries to read its environment settings
from a (Q)SPI memory but next "sf probe" commands fail because the flash
memory node is unbound from the SPI controller children nodes.
Signed-off-by: default avatarCyrille Pitchen <>
Signed-off-by: default avatarWenyou Yang <>
Tested-by: default avatarStefan Roese <>
Tested-by: default avatarHannes Schmelzer <>
Reviewed-by: default avatarSimon Glass <>
parent 9dd1d0aa
......@@ -125,7 +125,6 @@ static int do_spi_flash_probe(int argc, char * const argv[])
ret = spi_find_bus_and_cs(bus, cs, &bus_dev, &new);
if (!ret) {
flash = NULL;
ret = spi_flash_probe_bus_cs(bus, cs, speed, mode, &new);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment