| 941944e4 | 23-May-2014 |
Stephen Warren <swarren@nvidia.com> |
cmd_mmc: Use init_mmc_device() from do_mmc_rescan()
The body of init_mmc_device() is now identical to that of do_mmc_rescan() except for the error codes returned. Modify do_mmc_rescan() to simply ca
cmd_mmc: Use init_mmc_device() from do_mmc_rescan()
The body of init_mmc_device() is now identical to that of do_mmc_rescan() except for the error codes returned. Modify do_mmc_rescan() to simply call init_mmc_device() and convert the error codes, to avoid code duplication.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
show more ...
|
| 1ae24a50 | 23-May-2014 |
Stephen Warren <swarren@nvidia.com> |
cmd_mmc: add force_init parameter to init_mmc_device()
This allows callers to inject mmc->has_init = 0 between finding the MMC device, and calling mmc_init(), which forces mmc_init() to rescan the H
cmd_mmc: add force_init parameter to init_mmc_device()
This allows callers to inject mmc->has_init = 0 between finding the MMC device, and calling mmc_init(), which forces mmc_init() to rescan the HW. Future changes will use this feature.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com> Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
show more ...
|
| 60dc58f7 | 23-May-2014 |
Stephen Warren <swarren@nvidia.com> |
cmd_mmc: default to HW partition 0 if not specified
Currently, "mmc dev 0" does not change the selected HW partition. I think it makes more sense if "mmc dev 0" is an alias for "mmc dev 0 0", i.e. t
cmd_mmc: default to HW partition 0 if not specified
Currently, "mmc dev 0" does not change the selected HW partition. I think it makes more sense if "mmc dev 0" is an alias for "mmc dev 0 0", i.e. that HW partition 0 (main data area) is always selected by default if the user didn't request a specific partition. Otherwise, the following happens, which feels wrong:
Select HW partition 1 (boot0): mmc dev 0 1
Doesn't change the HW partition, so it's still 1 (boot0): mmc dev 0
With this patch, the second command above re-selects the main data area.
Note that some MMC devices (i.e. SD cards) don't support HW partitions. However, this patch still works, since mmc_start_init() sets the current partition number to 0, and mmc_select_hwpart() succeeds if the requested partition is already selected.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
show more ...
|
| e153b13c | 10-Jun-2014 |
Jeroen Hofstee <jeroen@myspectrum.nl> |
common/xyzModem.c: move empty statements to newline
To prevent a warning for clang the loop without a body is made more clear by moving it to a line of its own. This prevents a clang warning.
cc: s
common/xyzModem.c: move empty statements to newline
To prevent a warning for clang the loop without a body is made more clear by moving it to a line of its own. This prevents a clang warning.
cc: sbabic@denx.de Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
show more ...
|
| 930e4254 | 10-Jun-2014 |
Jeroen Hofstee <jeroen@myspectrum.nl> |
common/cli_hush.c: remove unnecessary double braces
Clang interpretes an if condition like "if ((a = b) == NULL) as it tries to assign a value in a statement. Hence if you do "if ((something)) it w
common/cli_hush.c: remove unnecessary double braces
Clang interpretes an if condition like "if ((a = b) == NULL) as it tries to assign a value in a statement. Hence if you do "if ((something)) it warns you that you might be confused. Hence drop the double braces for plane if statements.
Simon Glass <sjg@chromium.org> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
show more ...
|
| 8b9cc866 | 09-Jun-2014 |
Jeroen Hofstee <jeroen@myspectrum.nl> |
common: hash: zero end the string instead of the pointer
if algo->digest_size is zero nothing is set in the str_output buffer. An attempt is made to zero end the buffer, but the pointer to the buffe
common: hash: zero end the string instead of the pointer
if algo->digest_size is zero nothing is set in the str_output buffer. An attempt is made to zero end the buffer, but the pointer to the buffer is set to zero instead. I am unaware if it causes any actual problems, but solves the following warning:
common/hash.c:217:13: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] str_ptr = '\0'; ^~~~
cc: Simon Glass <sjg@chromium.org> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
show more ...
|
| 52715f89 | 05-Jun-2014 |
Thomas Betker <thomas.betker@freenet.de> |
Use run_command_repeatable()
Replace run_command() by run_command_repeatable() in places which depend on the return code to indicate repeatability.
Signed-off-by: Thomas Betker <thomas.betker@rohde
Use run_command_repeatable()
Replace run_command() by run_command_repeatable() in places which depend on the return code to indicate repeatability.
Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 1d43bfd2 | 05-Jun-2014 |
Thomas Betker <thomas.betker@freenet.de> |
Add run_command_repeatable()
run_command() returns 0 on success and 1 on error. However, there are some invocations which expect 0 or 1 for success (not repeatable or repeatable) and -1 for error; a
Add run_command_repeatable()
run_command() returns 0 on success and 1 on error. However, there are some invocations which expect 0 or 1 for success (not repeatable or repeatable) and -1 for error; add run_command_repeatable() for this purpose.
Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 73671dad | 05-Jun-2014 |
Thomas Betker <thomas.betker@freenet.de> |
Check run_command() return code properly
run_command() returns 0 for success, 1 for failure. Fix places which assume that failure is indicated by a negative return code.
Signed-off-by: Thomas Betke
Check run_command() return code properly
run_command() returns 0 for success, 1 for failure. Fix places which assume that failure is indicated by a negative return code.
Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Tested-by: Stefan Roese <sr@denx.de>
show more ...
|
| 4f427a42 | 03-Jun-2014 |
Simon Glass <sjg@chromium.org> |
fdt: Update functions which write to an FDT to return -ENOSPC
When writing values into an FDT it is possible that there will be insufficient space. If the caller gets a useful error then it can pote
fdt: Update functions which write to an FDT to return -ENOSPC
When writing values into an FDT it is possible that there will be insufficient space. If the caller gets a useful error then it can potentially deal with the situation.
Adjust these functions to return -ENOSPC when the FDT is full.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 31890ae2 | 03-Jun-2014 |
Simon Glass <sjg@chromium.org> |
hash: Export the function to show a hash
This function is useful for displaying a hash value, so export it.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 61e76f53 | 11-Jun-2014 |
Tom Rini <trini@ti.com> |
Merge branch 'master' of git://git.denx.de/u-boot-usb |
| 31e997f9 | 04-Jun-2014 |
Wu, Josh <Josh.wu@atmel.com> |
fs: fatwrite: use map_sysmem before use file_fat_write
When the map_sysmem, then the fatwrite command can support sandbox. Following command will show how to use it: => sb bind 0 sd.img => fatls
fs: fatwrite: use map_sysmem before use file_fat_write
When the map_sysmem, then the fatwrite command can support sandbox. Following command will show how to use it: => sb bind 0 sd.img => fatls host 0 => fatwrite host 0 $memaddr filename $filesize
Signed-off-by: Josh Wu <josh.wu@atmel.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 66948c25 | 04-Jun-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
nand_spl: remove nand_spl infrastructure
Remove the common infrastructure of nand_spl and clean-up the code inside ifdef(CONFIG_NAND_U_BOOT)..endif.
Signed-off-by: Masahiro Yamada <yamada.m@jp.pana
nand_spl: remove nand_spl infrastructure
Remove the common infrastructure of nand_spl and clean-up the code inside ifdef(CONFIG_NAND_U_BOOT)..endif.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
show more ...
|
| 21d29f7f | 28-May-2014 |
Heiko Schocher <hs@denx.de> |
bootm: make use of legacy image format configurable
make the use of legacy image format configurable through the config define CONFIG_IMAGE_FORMAT_LEGACY.
When relying on signed FIT images with req
bootm: make use of legacy image format configurable
make the use of legacy image format configurable through the config define CONFIG_IMAGE_FORMAT_LEGACY.
When relying on signed FIT images with required signature check the legacy image format should be disabled. Therefore introduce this new define and enable legacy image format if CONFIG_FIT_SIGNATURE is not set. If CONFIG_FIT_SIGNATURE is set disable per default the legacy image format.
Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Lars Steubesand <lars.steubesand@philips.com> Cc: Mike Pearce <mike@kaew.be> Cc: Wolfgang Denk <wd@denx.de> Cc: Tom Rini <trini@ti.com> Cc: Michal Simek <monstr@monstr.eu> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| ed6a5d4f | 26-May-2014 |
Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> |
env_eeprom: Assign default environment during board_init_f
Assign default environment and set env valid during board_init_f before relocation as the actual environment will be read from eeprom later
env_eeprom: Assign default environment during board_init_f
Assign default environment and set env valid during board_init_f before relocation as the actual environment will be read from eeprom later.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Acked-by: Michal Simek <monstr@monstr.eu>
show more ...
|
| 4eb580b7 | 30-May-2014 |
Simon Glass <sjg@chromium.org> |
Correct return code from builtin_run_command_list()
The return code is not consistent with cli_simple_run_command_list(). For the last command in a sequence, the return code is actually inverted.
F
Correct return code from builtin_run_command_list()
The return code is not consistent with cli_simple_run_command_list(). For the last command in a sequence, the return code is actually inverted.
Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 587e1d43 | 30-May-2014 |
Simon Glass <sjg@chromium.org> |
Fix hush to give the correct return code for a simple command
When a simple command like 'false' is provided, hush should return the result of that command. However, hush only does this if the FLAG_
Fix hush to give the correct return code for a simple command
When a simple command like 'false' is provided, hush should return the result of that command. However, hush only does this if the FLAG_EXIT_FROM_LOOP flag is provided. Without this flag, hush will happily execute the empty string command immediate after 'false' and then return a success code.
This behaviour does not seem very useful, and requiring the flag also seems wrong, since it means that hush will execute only the first command in a sequence.
Add a check for empty string and fall out of the loop in that case. That at least fixes the simple command case. This is a change in behaviour but it is unlikely that the old behaviour would be considered correct in any case.
Reported-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c9bcb6f1 | 30-May-2014 |
Simon Glass <sjg@chromium.org> |
Fix itest mask overflow
The mask value used in itest overflows and therefore it can return an incorrect result for something like 'itest 0 == 1'. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.or
Fix itest mask overflow
The mask value used in itest overflows and therefore it can return an incorrect result for something like 'itest 0 == 1'. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 77b83e6d | 19-May-2014 |
Stephen Warren <swarren@nvidia.com> |
usb: hub: remove CONFIG_USB_HUB_MIN_POWER_ON_DELAY
Now that we wait the correct specification-mandated time at the end of usb_hub_power_on(), I suspect that CONFIG_USB_HUB_MIN_POWER_ON_DELAY has no
usb: hub: remove CONFIG_USB_HUB_MIN_POWER_ON_DELAY
Now that we wait the correct specification-mandated time at the end of usb_hub_power_on(), I suspect that CONFIG_USB_HUB_MIN_POWER_ON_DELAY has no purpose.
For cm_t35.h, we already wait longer than the original MIN_POWER_ON_DELAY, so this change is safe.
For gw_ventana.h, we will wait as long as the original MIN_POWER_ON_DELAY iff pgood_delay was at least 200ms. I'm not sure if this is the case or not, hence I've CC'd relevant people to test this change.
Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
show more ...
|
| 0d437bca | 19-May-2014 |
Stephen Warren <swarren@nvidia.com> |
usb: hub: fix power good delay timing
usb_hub_power_on() currently waits for the maximum of (a) the hub port's power output to become good, (b) the max time the USB specification allows a device to
usb: hub: fix power good delay timing
usb_hub_power_on() currently waits for the maximum of (a) the hub port's power output to become good, (b) the max time the USB specification allows a device to take to connect.
However, these two operations must occur in series rather than in parallel. First, the power supply ramps up to the level required to power the USB device, and then the device may take a certain amount of time to connect (assert D+/D- pullups).
Related, the maximum time that a device has to assert pullups is 1s not 100ms.
This is explained in "Connect Timing ECN.pdf", itself part of usb_20_042814.zip from www.usb.org.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
show more ...
|
| 90b51c33 | 30-May-2014 |
Tom Rini <trini@ti.com> |
Merge branch 'master' of git://git.denx.de/u-boot-arm |
| 95856248 | 11-Apr-2014 |
Simon Glass <sjg@chromium.org> |
main: Avoid unncessary strdup()/free()
It doesn't seem necessary to use memory allocation in this code. The setenv() will make a copy anyway.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| affb2156 | 11-Apr-2014 |
Simon Glass <sjg@chromium.org> |
main: Make the execution path a little clearer in main.c
bootdelay_process() never returns in some circumstances, whichs makes the control flow confusing. Change it so that the decision about how to
main: Make the execution path a little clearer in main.c
bootdelay_process() never returns in some circumstances, whichs makes the control flow confusing. Change it so that the decision about how to execute the boot command is made in the main_loop() code, so it is easier to follow. Move CLI stuff to cli.c.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c1bb2cd0 | 11-Apr-2014 |
Simon Glass <sjg@chromium.org> |
main: Hide the hush/simple details inside cli.c
Move these details from main (which doesn't care which parser is used) to cli.c where they belong.
Signed-off-by: Simon Glass <sjg@chromium.org> |