From: Hannes Schmelzer <hannes@schmelzer.or.at>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] sf: fix sf probe
Date: Fri, 26 Aug 2016 17:10:00 +0200 [thread overview]
Message-ID: <57C05BC8.1090609@schmelzer.or.at> (raw)
In-Reply-To: <1471418380-12481-1-git-send-email-wenyou.yang@atmel.com>
mfG
Schmelzer Hannes
On 08/17/2016 09:19 AM, Wenyou Yang wrote:
> From: Cyrille Pitchen <cyrille.pitchen@atmel.com>
>
> 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 <cyrille.pitchen@atmel.com>
> Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
> ---
>
> cmd/sf.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/cmd/sf.c b/cmd/sf.c
> index 286906c..65b117f 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);
Tested-by: Hannes Schmelzer <oe5hpm@oevsv.at>
next prev parent reply other threads:[~2016-08-26 15:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-17 7:19 [U-Boot] [PATCH] sf: fix sf probe Wenyou Yang
2016-08-25 11:13 ` Stefan Roese
2016-09-12 8:13 ` Stefan Roese
2016-08-26 15:10 ` Hannes Schmelzer [this message]
2016-09-06 1:03 ` Simon Glass
2016-09-12 13:09 ` [U-Boot] " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57C05BC8.1090609@schmelzer.or.at \
--to=hannes@schmelzer.or.at \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox