From: Aras Vaichas <arasv@magtech.com.au>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] USB Storage, add meaningful return value
Date: Tue, 25 Mar 2008 10:19:20 +1100 [thread overview]
Message-ID: <47E836F8.6090702@magtech.com.au> (raw)
This patch changes the "usb storage" command to return success iff it
finds a USB storage device, otherwise it returns error.
This enables you to check for a USB storage device before trying to
access it:
if usb storage; then fatload usb 0 $loadaddr $filename; fi
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-1.3.2-USB-storage-test.patch
Type: text/x-patch
Size: 1289 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080325/190ad0d1/attachment.bin
next reply other threads:[~2008-03-24 23:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 23:19 Aras Vaichas [this message]
2008-03-25 0:07 ` [U-Boot-Users] [PATCH] USB Storage, add meaningful return value Wolfgang Denk
2008-03-25 0:23 ` Jerry Van Baren
2008-03-25 1:09 ` Aras Vaichas
2008-03-25 7:36 ` Markus Klotzbücher
2008-03-26 18:14 ` Markus Klotzbücher
2008-03-25 14:23 ` Jon Loeliger
2008-03-25 14:34 ` Scott Wood
2008-03-25 14:36 ` Jon Loeliger
2008-03-25 14:40 ` Stefan Roese
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=47E836F8.6090702@magtech.com.au \
--to=arasv@magtech.com.au \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.