public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] USB Storage, add meaningful return value
@ 2008-03-24 23:19 Aras Vaichas
  2008-03-25  0:07 ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Aras Vaichas @ 2008-03-24 23:19 UTC (permalink / raw)
  To: u-boot

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 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-03-26 18:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-24 23:19 [U-Boot-Users] [PATCH] USB Storage, add meaningful return value Aras Vaichas
2008-03-25  0:07 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox