On Thu, Dec 06, 2018 at 03:20:47PM +0530, Sekhar Nori wrote:
> We usually deal with hexadecimal addresses and sizes in
> device-tree. Its much easier if debug logs print hexadecimal
> values too.
>
> Reviewed-by: Simon Glass
> Signed-off-by: Sekhar Nori
Reviewed-by: Tom Rini
--
Tom
Applied
At present logging does not check printf() arguments. Now that all users
have been corrected, enable this to prevent further problems.
Signed-off-by: Simon Glass
---
include/log.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Applied to u-boot-dm/master, thanks!
_
On Wed, Dec 05, 2018 at 05:35:28AM -0700, Simon Glass wrote:
> Now that buildman supports clang, use it.
>
> Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
--
Tom
Applied to u-boot-dm/master, thanks!
___
U-Boot mailing list
U-Boot@lists.denx.de
h
On Tue, 4 Dec 2018 at 12:35, Christian Gmeiner
wrote:
>
> From: Christian GMEINER
>
> These functions could be used by drivers.
>
> Signed-off-by: Christian GMEINER
> ---
> arch/sandbox/include/asm/io.h | 12
> 1 file changed, 12 insertions(+)
>
Reviewed-by: Simon Glass
Applied
This bug is now fixed, so drop this comment.
Signed-off-by: Simon Glass
---
tools/buildman/README | 2 --
1 file changed, 2 deletions(-)
Applied to u-boot-dm/master, thanks!
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/
On Wed, Dec 05, 2018 at 05:35:27AM -0700, Simon Glass wrote:
> Add a -O option which allows building with clang.
>
> Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
--
Tom
Applied to u-boot-dm/master, thanks!
___
U-Boot mailing list
U-Boot@lists.d
The check for CONFIG_SANDBOX_SDL in config.mk does not work since the
build config is not available by the time that file is included. Remove it
so that we always call sdl-config except when NO_SDL is used.
Signed-off-by: Simon Glass
---
arch/sandbox/config.mk | 2 --
arch/sandbox/cpu/sdl.c | 2
The 'done' files created by buildman may end up being empty if buildman
runs out of disk space while writing them. This error is then persistent,
since even if disk space is reclaimed and the build retries, the empty
file causes an exception in the builder thread.
Deal with this silently by doing
On 12/21/18 9:24 AM, Keerthy wrote:
> fix up fdtdec_get_addr_size to use fdtdec_get_addr_size_auto_noparent
> so that the address cells and size cells are obtained from the
> parent instead of going by the fixed length.
This patch makes perfect sense to me. However, I am worried about the
potentia
On Fri, 21 Dec 2018 at 09:24, Keerthy wrote:
>
> With 8 bytes addressing even on 32 bit machines these checks
> are no longer valid. Remove them.
>
> Signed-off-by: Keerthy
> ---
> lib/fdtdec.c | 10 --
> 1 file changed, 10 deletions(-)
Reviewed-by: Simon Glass
Applied to u-boot-dm/ne
Now that buildman supports clang, use it.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
---
Changes in v2: None
.travis.yml | 13 +++--
1 file changed, 3 insertions(+), 10 deletions(-)
Applied to u-boot-dm
___
U-Boot mailing list
U-Boot@
This function has tabs instead of spaces. Fix it.
Signed-off-by: Simon Glass
---
Changes in v2:
- Drop patches previously applied
- Add fixes needed to get clang building running
tools/buildman/toolchain.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Applied to u-boot-dm
___
Add a -O option which allows building with clang.
Signed-off-by: Simon Glass
---
Changes in v2:
- Use the command line instead of environment for make variables
tools/buildman/README | 10 +
tools/buildman/builderthread.py | 1 +
tools/buildman/cmdline.py | 2 ++
tool
The printf() string here is not actually correct. Add a cast to avoid
a warning when checking is enabled.
Signed-off-by: Simon Glass
---
Changes in v2: None
lib/efi_loader/efi_file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Applied to u-boot-dm
___
At present logging does not check printf() arguments. Now that all users
have been corrected, enable this to prevent further problems.
Signed-off-by: Simon Glass
---
Changes in v2: None
include/log.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Applied to u-boot-dm
On Mon, Jan 7, 2019 at 5:47 PM Simon Glass wrote:
>
> At present this stores the error number in an unsigned int so an error is
> never detected. Use the existing signed variable instead.
>
> Signed-off-by: Simon Glass
Acked-by: Joe Hershberger
Applied to u-boot-dm
On Sat, 5 Jan 2019 at 14:30, Heinrich Schuchardt wrote:
>
> when running the date command on sandbox_defconfig an error occurs:
>
> ./u-boot -D u-boot.dtb
>
> => date
> i2c_emul_find() No emulators for device 'rtc@43'
> ## Get date failed
>
> Correct the references to the emulator
The getconfig() comment is out of date. Fix this and add comments for
recently added functions.
Signed-off-by: Simon Glass
Reviewed-by: Andy Shevchenko
---
Changes in v2:
- Fix @return comment on getinfo() method
include/serial.h | 34 +++---
1 file changed, 31 ins
All driver-model functions should have a device as the first parameter.
Update this function accordingly.
Signed-off-by: Simon Glass
Reviewed-by: Andy Shevchenko
---
Changes in v2:
- Add a comment about reusing the device pointer
arch/x86/lib/acpi_table.c | 11 ++-
drivers/serial
All driver-model functions should have a device as the first parameter.
Update this function accordingly.
Signed-off-by: Simon Glass
Reviewed-by: Andy Shevchenko
---
Changes in v2: None
drivers/serial/serial-uclass.c | 9 +++--
include/serial.h | 2 +-
test/dm/serial.c
We should not be adding new functions to common.h. Move these recently
added functions to serial.h.
Signed-off-by: Simon Glass
Reviewed-by: Andy Shevchenko
---
Changes in v2: None
include/common.h | 5 -
include/serial.h | 4
2 files changed, 4 insertions(+), 5 deletions(-)
Applied
All driver-model functions should have a device as the first parameter.
Update this function accordingly.
Signed-off-by: Simon Glass
Reviewed-by: Andy Shevchenko
---
Changes in v2: None
arch/x86/lib/acpi_table.c | 5 -
drivers/serial/serial-uclass.c | 9 +++--
include/serial.h
On 1 October 2018 at 03:37, Marek Vasut wrote:
> The size should be decoded using of_n_size_cells(), make it so.
>
> Signed-off-by: Marek Vasut
> Cc: Simon Glass
> Cc: Tom Rini
> ---
> V2: New patch
> ---
> drivers/core/ofnode.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed
On 1 October 2018 at 03:37, Marek Vasut wrote:
> Of CONFIG_OF_TRANSLATE is enabled, this function still returns
> untranslated bogus results. Add the missing translation.
>
> Signed-off-by: Marek Vasut
> Cc: Simon Glass
> Cc: Tom Rini
> ---
> V2: - Use np directly
> - Drop extra of_n_addr_c
At present sandbox sets non-blocking I/O as soon as any input is read
from the terminal. However it does not restore the previous state on
exit. Fix this and drop the old os_read_no_block() function.
This means that we always enable blocking I/O in sandbox (if input is a
terminal) whereas previous
Now that we don't have to deal with the command-line flag we can simplify
the code for detecting the emulator. Remove the lookup based on the SPI
specification, relying just on the device tree to locate the emulator.
Signed-off-by: Simon Glass
---
arch/sandbox/include/asm/state.h | 1 -
driver
Add support for the debug UART so that sandbox provides build testing for
this feature.
Signed-off-by: Simon Glass
---
configs/sandbox_defconfig | 2 ++
drivers/serial/Kconfig| 11 +++
drivers/serial/sandbox.c | 17 +
3 files changed, 30 insertions(+)
Applied to u
Use an enum for command values instead of open-coding them. This removes
the need for comments. Also make sure the driver returns proper error
numbers instead of -1.
Signed-off-by: Simon Glass
---
drivers/tpm/tpm_tis_sandbox.c | 20 ++--
include/tpm-v1.h | 14 ++
Add logging to aid debugging features in these drivers. Also drop some
code in sandbox_spi_xfer() which is not used.
Signed-off-by: Simon Glass
---
drivers/mtd/spi/sandbox.c | 54 +--
drivers/spi/sandbox_spi.c | 38 +++
include/log.h
This driver was originally written against Chromium OS circa 2012. A few
new features have been added. Enhance the TPM driver to match. This mostly
includes a few new messages and properly modelling whether a particular
'space' is present or not.
Signed-off-by: Simon Glass
---
drivers/tpm/tpm_t
It is useful to be able to set the default log level from the command line
when running sandbox. Add a new -L command-line flag for this. The log
level is set using the enum log_level_t in log.h. At present a number must
be specified, e.g. -L7 for debug.
Signed-off-by: Simon Glass
---
arch/sand
At present to output a log message you need something like:
log(UCLASS_SPI, LOCL_INFO, "message1");
log(UCLASS_SPI, LOCL_INFO, "message2");
but many files use the same category throughout. Also it is helpful to
shorten the length of log names, providing helpers for common logging
levels. Ad
When debugging sandbox it is sometimes annoying that the memory file is
deleted early on. If sandbox later crashes or we quit (using the
debugger), it is not possible to run it again with the same state since
the memory file is gone.
Remove the old memory file when sandbox exits, instead. Also add
This function is not used in U-Boot now. Remove it along with its 'memory'
version.
Signed-off-by: Simon Glass
---
include/fdtdec.h | 45 --
lib/fdtdec.c | 83
2 files changed, 128 deletions(-)
Applied to u-boot-dm
__
This file has changed quite a bit in the last 5 years as the capabilities
of the ECs have grown. Sync it up with the copy in coreboot commit
b9141f2215.
The only change is the addition of EC_VBNV_BLOCK_SIZE_V2. This is needed
because U-Boot uses the new v2 vboot API and this is not currently fully
At present we support specifying SPI flash devices to use in the device
tree and on the command line. Drop the second option, since it is a pain
to support nicely with driver model, and unnecessary.
Signed-off-by: Simon Glass
---
drivers/mtd/spi/sandbox.c | 122 +++--
Allow selection of which EC image to hash.
Signed-off-by: Simon Glass
---
cmd/cros_ec.c | 2 +-
drivers/misc/cros_ec.c | 7 ---
include/cros_ec.h | 4 +++-
3 files changed, 8 insertions(+), 5 deletions(-)
Applied to u-boot-dm
___
U-
At present the build fails in strange ways if CONFIG_SPL is defined by
CONFIG_SUPPORT_SPL is not. Add a warning for this case as it can be very
confusing to debug.
Signed-off-by: Simon Glass
---
scripts/Makefile.spl | 7 +++
1 file changed, 7 insertions(+)
Applied to u-boot-dm
The current name conflicts with the Chrome OS verified boot library, which
prevents it being built. That library uses a string whereas U-Boot uses a
64-bit hex value. Rename this in U-Boot.
Signed-off-by: Simon Glass
---
disk/part_efi.c| 6 +++---
include/part_efi.h | 2 +-
2 files changed,
We have a method to return the last reset as a string for humans, but not
a method that allows it to be used programmatically. Add a new method that
returns the last reset as an enum.
Signed-off-by: Simon Glass
---
drivers/sysreset/sysreset-uclass.c | 30 +
drivers/
For debugging it is sometimes useful to write out data for inspection
using an external tool. Add a function which can write this data to a
given file.
Signed-off-by: Simon Glass
---
arch/sandbox/cpu/os.c | 20
include/os.h | 13 +
2 files changed, 33 i
In some cases it is necessary to read the keyboard in early phases of
U-Boot. The cros_ec keyboard is kept in the misc directory. Update the
config to allow this.
Signed-off-by: Simon Glass
---
drivers/misc/Kconfig | 72 +++
drivers/misc/Makefile | 9 ++
On Mon, 1 Oct 2018 12:22:48 -0600
Simon Glass s...@chromium.org wrote:
> Add a little more information to one comment and update the guard comment
> to be more accurate.
>
> Signed-off-by: Simon Glass
Reviewed-by: Anatolij Gustschin
--
Anatolij
Applied to u-boot-dm
__
At present ofnode_read_fmap_entry() reads a flash map entry in a format
which is not supported by binman. To allow use to use binman-format
descriptions, update this function.
Also add a simple test.
Signed-off-by: Simon Glass
---
arch/sandbox/dts/sandbox.dts | 20 ++--
arch/
Adjust the TPM drivers to use livetree (only one does not). Also,
sometimes TPMs can have child devices if they provide a service to the
system (such as storing secure data), so permit that.
Signed-off-by: Simon Glass
---
drivers/misc/cros_ec.c| 6 +++---
drivers/tpm/tpm-uclass.c | 1 +
dr
At present this uclass has no tests. Add a simple one which checks the PWM
configuration, regulator and GPIO.
Signed-off-by: Simon Glass
---
arch/sandbox/dts/sandbox_pmic.dtsi | 2 +-
arch/sandbox/dts/test.dts | 20 +++-
arch/sandbox/include/asm/test.h| 15 +
drive
At present we support booting from SPL to U-Boot proper. Add support for
the previous stage too, so sandbox can be started with TPL.
Signed-off-by: Simon Glass
---
arch/sandbox/cpu/os.c | 29 +++--
1 file changed, 27 insertions(+), 2 deletions(-)
Applied to u-boot-dm
__
On Mon, 1 Oct 2018 11:55:14 -0600
Simon Glass s...@chromium.org wrote:
> At present there are many situations where sandbox syncs the display to
> the SDL frame buffer. This is a very expensive operation but is only
> needed every now and then. Update video_sync() so that we can specify
> whether
At present some of the log categories are missing comments. Add them.
Signed-off-by: Simon Glass
---
include/log.h | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
Applied to u-boot-dm
___
U-Boot mailing list
U-Boot@lists.denx.de
ht
At present sandbox assumes that device-tree control is active, but this
may not be the case in SPL or TPL. Add some conditions to handle this.
Signed-off-by: Simon Glass
---
drivers/serial/sandbox.c | 5 +
1 file changed, 5 insertions(+)
Applied to u-boot-dm
___
Some comments are incorrect or missing pieces. Fix these and use logging
to print the error.
Signed-off-by: Simon Glass
---
drivers/sysreset/sysreset-uclass.c | 4 +++-
include/sysreset.h | 4 +++-
test/dm/sysreset.c | 1 -
3 files changed, 6 insertions(+), 3 del
On 2.10.2018 05:12, Simon Glass wrote:
> At present the unicode filtering seems to get confused at times with
> this error:
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position
> 32: ordinal not in range(128)
>
> It seems to be due to self._nonprint being interpreted as U
At present files are not truncated on writing. This is a useful feature.
Add support for this.
Signed-off-by: Simon Glass
---
arch/sandbox/cpu/os.c | 2 ++
include/os.h | 1 +
2 files changed, 3 insertions(+)
Applied to u-boot-dm
___
U-Boot
Quite a few functions do not actually modify the device that is passed in.
Update the function signatures to reflect that.
Signed-off-by: Simon Glass
---
drivers/core/device.c | 24
include/dm/device.h | 24
2 files changed, 24 insertions(+),
At present 'make check' leaves some temporary directories around. Part of
this is because we call tools.PrepareOutputDir() twice in some cases,
without calling tools.FinaliseOutputDir() in between.
Fix this.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/binman/elf_test.py | 5 ++
Use 'export' to avoid repeating the path setup for each command.
Signed-off-by: Simon Glass
---
Changes in v2: None
test/run | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
Applied to u-boot-dm
___
U-Boot mailing list
U-Boot
This does not set the correct value at present. Fix it.
Signed-off-by: Simon Glass
---
tools/dtoc/fdt.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-dm
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/lis
At present ctags emits lines with unmatched quotes which means that the
output file is invalid. This is with exuberant-ctags version 5.9~svn201103
but I also see it with plain ctags. I am not sure that it is a bug though.
Make a few minor changes in the source code to fix this problem.
Signed-off
On Tue, Oct 2, 2018 at 2:48 AM Simon Glass wrote:
>
> Add some logging on failure.
>
> Signed-off-by: Simon Glass
> ---
>
> drivers/pci/pci_rom.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: Bin Meng
Applied to u-boot-dm
__
These are needed for the 2018 version of Chromium OS vboot. Add an
implementation for TPM v1, with v2 to come later.
Signed-off-by: Simon Glass
---
cmd/tpm_test.c | 15 ---
include/tpm-v1.h | 28
lib/tpm-v1.c | 68 +-
At present it is not possible to enable/disable block drivers in TPL. This
is needed to provide sandbox support. Add a Kconfig option and adjust the
Makefile.
Signed-off-by: Simon Glass
---
drivers/block/Kconfig | 12
drivers/block/Makefile | 2 +-
2 files changed, 13 insertions(
Add a string.h header for libraries that expect this to be available, now
that U-Boot's version has moved to include/linux.
Signed-off-by: Simon Glass
---
include/string.h | 1 +
1 file changed, 1 insertion(+)
create mode 100644 include/string.h
Applied to u-boot-dm
__
Unfortunately the test was not included in the original implementation.
Add one.
Signed-off-by: Simon Glass
---
tools/binman/ftest.py | 7 +++
tools/binman/test/100_intel_refcode.dts | 14 ++
2 files changed, 21 insertions(+)
create mode 100644 tools/binman/t
At present this option applies to SPL, but it should be available in TPL
also, and separately. Change to using CONFIG_IS_ENABLED(), add a new
Kconfig option and fix up hang().
Signed-off-by: Simon Glass
---
drivers/serial/Kconfig | 10 ++
drivers/serial/serial-uclass.c | 4
At present the panel can be turned on but not off, and the brightness
cannot be controlled at run-time. Add a new API function to both the panel
and backlight uclasses to handle this. Enhance the PWM backlight driver
to deal with custom levels properly and allow the backlight to be turned
on and of
Some devices have children and want to press an existing inactive child
into service when needed. Add a function to help with this.
Signed-off-by: Simon Glass
---
drivers/core/device.c | 18 ++
include/dm/device.h | 15 +++
test/dm/core.c| 31 ++
It is sometimes useful to see what memory is being allocated early during
boot. Add logging to support this, using a new LOGC_ALLOC category.
Signed-off-by: Simon Glass
---
common/malloc_simple.c | 58 +++---
include/malloc.h | 1 +
2 files changed, 38
In some cases (e.g. sandbox with verified boot) it is useful to support
libfdt in TPL. Update the Kconfig to handle this.
Signed-off-by: Simon Glass
---
lib/Kconfig | 10 ++
1 file changed, 10 insertions(+)
Applied to u-boot-dm
___
U-Boot mai
Make a few small updates to indicate that device tree can be used in SPL
and TPL.
Signed-off-by: Simon Glass
---
doc/README.fdt-control | 10 ++
doc/driver-model/README.txt | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
Applied to u-boot-dm
Rather than returning what is effectively an internal data structure,
return the cros EC device itself.
Signed-off-by: Simon Glass
---
common/cros_ec.c | 4 ++--
include/cros_ec.h | 4 +---
2 files changed, 3 insertions(+), 5 deletions(-)
Applied to u-boot-dm
_
At present the tests run one after the other using a single CPU. This is
not very efficient. Bring in the concurrencytest module and run the tests
concurrently, using one process for each CPU by default. A -P option
allows this to be overridden, which is necessary for code-coverage to
function corr
On Mon, 1 Oct 2018 12:22:26 -0600
Simon Glass s...@chromium.org wrote:
> All driver-model operation should return an error code. Adjust this
> function to do so also.
>
> Signed-off-by: Simon Glass
Reviewed-by: Anatolij Gustschin
--
Anatolij
Applied to u-boot-dm
_
At present // in a device-tree file or link script causes a warning. But
this is used in the standard license header. Update the compiler flags to
use C99, which permits this.
Signed-off-by: Simon Glass
---
Makefile | 2 +-
scripts/Makefile.spl | 2 +-
2 files changed, 2 insertions(
At present this test runs binman twice, which means that the temporary
files from the first run do not get cleaned up. Split this into two tests
to fix this problem.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/binman/ftest.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-
At present the tpm can only be used in U-Boot proper. Updated it to work
in SPL and TPL also.
Signed-off-by: Simon Glass
---
drivers/tpm/Makefile | 2 +-
lib/Kconfig | 22 ++
lib/Makefile | 10 +++---
3 files changed, 30 insertions(+), 4 deletions(-)
A
At present it is not possible to specify that a node should be used before
relocation (in U-Boot proper) without it also ending up in SPL and TPL
device trees. Add a new "u-boot,dm-pre-proper" boolean property for this.
Signed-off-by: Simon Glass
---
doc/driver-model/README.txt | 4 +++-
driver
We now have 99 tests. Before adding any more, rename everything to three
digits. This helps to preserve the ordering of tests and makes it easier
to find things.
Signed-off-by: Simon Glass
---
tools/binman/entry_test.py| 2 +-
tools/binman/fdt_test.py
At present this file uses logging but it should use the new macros. Update
it and add a log message for an error.
Signed-off-by: Simon Glass
---
lib/tpm-common.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
Applied to u-boot-dm
__
This module is often available in the sandbox_spl build created by
'make check'. Use this as a default path so that just typing 'binman -t'
(without setting PYTHONPATH) will generally run the tests.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/binman/binman.py | 2 ++
tools/dtoc/dt
Move this option to Kconfig and tidy up the two boards which use it.
Signed-off-by: Simon Glass
---
configs/edison_defconfig | 1 +
configs/malta_defconfig | 1 +
drivers/rtc/Kconfig | 8
include/configs/edison.h | 1 -
include/configs/malta.h | 1 -
scripts/
At present version 3 messages are only supported on SPI. Add support for
using LPC as well, as used on samus.
Signed-off-by: Simon Glass
---
drivers/misc/cros_ec_lpc.c | 33 +
1 file changed, 33 insertions(+)
Applied to u-boot-dm
With Python 2.7.15rc1, ConfigParser.SafeConfigParser has unfortunately
started returning unicode, for unknown reasons. Adjust the code to handle
this by converting everything to unicode. We cannot convert things to
ASCII since email addresses may be encoded with UTF-8.
Signed-off-by: Simon Glass
On Tue, Oct 2, 2018 at 2:24 AM Simon Glass wrote:
>
> At present the mtrr functions disable the cache before making changes and
> enable it again afterwards. This is fine in U-Boot, but does not work if
> running in CAR (such as we are in SPL).
>
> Update the functions so that the caller can reque
On 09.10.2018 06:40, Simon Glass wrote:
> Hi Eugen,
>
> On 2 October 2018 at 01:37, Eugen Hristev wrote:
>>
>>
>>
>> On 01.10.2018 23:22, Anatolij Gustschin wrote:
>>>
>>> Hi Simon,
>>>
>>> On Mon, 1 Oct 2018 12:22:47 -0600
>>> Simon Glass s...@chromium.org wrote:
>>>
At present this functio
On my Ubuntu 18.04.1 machine two driver-model bus tests have started
failing recently. The problem appears to be that the DATA region of the
executable is protected. This does not seem correct, but perhaps there
is a reason.
To work around it, unprotect the regions in these tests before accessing
The 'result' variable counts the number of failures in running the tests.
Rename it to 'failures' to make this more obvious. Also tidy up a few
comments.
Signed-off-by: Simon Glass
---
Changes in v2: None
test/run | 12
1 file changed, 8 insertions(+), 4 deletions(-)
Applied to u
When SPI flash operations fail it is helpful to be able to see the error
codes and where they are generated. Add logging to capture this
information for read operations.
Signed-off-by: Simon Glass
---
drivers/mtd/spi/sf-uclass.c | 6 +++---
drivers/mtd/spi/sf_probe.c | 2 +-
drivers/mtd/spi/sp
The filenames of the toolchains on kernel.org changes every now and then.
Fix it for the current change, and make the test use a regex so that it
has a better chance of passing with future changes too.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/buildman/test.py | 6 --
1 file
At present spi_flash_cmd_read_ops() allocates and frees a few bytes of
memory every time it is called. It is faster to use the stack for this
and this is now supported by the minimum GCC version required by U-Boot.
Remove the allocation and use a variable-sized array instead.
Signed-off-by: Simon
This documentation is out of date now that U-Boot builds dtc
automatically. Update it.
Signed-off-by: Simon Glass
---
doc/README.fdt-control | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
Applied to u-boot-dm
___
U-Boot mailing list
U-Boo
At present the tests are run without any indication of what is running.
For the tests which start with a build this is pretty obvious, but for
tools it is not.
Add a name for each test we run, and print it before starting the test.
Signed-off-by: Simon Glass
---
Changes in v2:
- Quote @$ correct
Add Kconfig options so that the RTC can be used in SPL and TPL. This is
helpful for accessing the contents of CMOS RAM, for example.
Signed-off-by: Simon Glass
---
drivers/rtc/Kconfig | 18 ++
drivers/rtc/Makefile | 2 +-
drivers/rtc/rtc-uclass.c | 1 +
3 files change
At present we pass around a private pointer to specify the cros_ec device.
With driver model it makes more sense to pass the device. Update the code
to do this.
Signed-off-by: Simon Glass
---
cmd/cros_ec.c | 24 +++---
drivers/misc/cros_ec.c | 147 +
Hi Stephen,
On 4 October 2018 at 10:01, Stephen Warren wrote:
> On 10/01/2018 09:12 PM, Simon Glass wrote:
>>
>> From: Stephen Warren
>>
>> After a test has failed, test/py drains the U-Boot console log to ensure
>> that any relevant output is captured. At this point, we don't care about
>> dete
There are a few test cases which print output. Suppress this so that tests
can run silently in the normal case.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/buildman/test.py | 4 +++-
tools/dtoc/test_dtoc.py | 6 --
2 files changed, 7 insertions(+), 3 deletions(-)
Applied to
There is no reason why this feature should not be supported for uclass-
private data. Update the code accordingly.
Signed-off-by: Simon Glass
---
drivers/core/device.c | 3 ++-
include/dm/uclass.h | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
Applied to u-boot-dm
_
This variable is not documented or set up in the module. Fix this.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/patman/tools.py | 3 +++
1 file changed, 3 insertions(+)
Applied to u-boot-dm
___
U-Boot mailing list
U-Boot@lists.denx.de
ht
At present we use 'make tests' to run the tests. For many projects
'make check' is more common, so support that as well. Also add some help
to 'make help'.
Signed-off-by: Simon Glass
---
Changes in v2: None
Makefile | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
Applied to u-boot-
In some cases it is necessary to read the keyboard in early phases of
U-Boot. Update the config to allow this.
Signed-off-by: Simon Glass
---
drivers/input/Kconfig | 48 ++
drivers/input/Makefile | 11 ++
drivers/input/input.c | 5 -
3 file
At present calling Uninit() always called ClearProgress() which outputs
a \r character as well as spaces to remove any progress information on the
line. This can mess up the normal output of binman and other tools. Fix
this by outputing this only when progress information has actually been
previous
201 - 300 of 1121 matches
Mail list logo