From d6e9141fc2eccc512e506e220a5ec851245447b8 Mon Sep 17 00:00:00 2001 From: Cyrille Pitchen Date: Wed, 17 Aug 2016 15:19:39 +0800 Subject: [PATCH] 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: Cyrille Pitchen Signed-off-by: Wenyou Yang Tested-by: Stefan Roese Tested-by: Hannes Schmelzer Reviewed-by: Simon Glass --- cmd/sf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/sf.c b/cmd/sf.c index 286906c3a1..65b117feee 100644 --- a/cmd/sf.c +++ b/cmd/sf.c @@ -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) { device_remove(new); - device_unbind(new); } flash = NULL; ret = spi_flash_probe_bus_cs(bus, cs, speed, mode, &new); -- 2.25.1