Re: [U-Boot] [RFC] efi: workaround for SCT (against unicode collation protocol)

2018-10-01 Thread Alexander Graf
On 01.10.18 09:35, AKASHI Takahiro wrote: > UEFI SCT doesn't run on the latest u-boot (or Alex's efi-next). > Among other issues, there are two problems around language handling: > 1. SCT looks for efi_unicode_collation_protocol with an (old?) guid, > {0x1d85cd7f, 0xf43d, 0x11d2, >

Re: [U-Boot] [PATCH 1/5] mmc: sunxi: add support for automatic delay calibration

2018-10-01 Thread Andre Przywara
On Mon, 1 Oct 2018 10:09:55 +0200 Maxime Ripard wrote: > On Sun, Sep 30, 2018 at 04:16:36PM +0100, André Przywara wrote: > > On 9/30/18 12:45 AM, Vagrant Cascadian wrote: > > > From: Vasily Khoruzhick > > > > > > A64 supports automatic delay calibration and Linux driver uses it > > > instead

[U-Boot] [PATCH v2 0/7] Support for the Faraday ftgmac100 controller

2018-10-01 Thread Cédric Le Goater
Hello, This series re-adds a driver for the Faraday ftgmac100 controller and its Aspeed variant as as one can find on the OpenPOWER platforms. I have choosen to remove and re-add the driver to ease review of the changes, which are numerous, but we can proceed differently if you prefer. It was

Re: [U-Boot] [PATCH 5/5] sunxi: add support for Pinebook

2018-10-01 Thread Maxime Ripard
On Mon, Oct 01, 2018 at 05:37:58PM +0800, Icenowy Zheng wrote: > >> dtb-$(CONFIG_MACH_SUN9I) += \ > >>sun9i-a80-optimus.dtb \ > >>sun9i-a80-cubieboard4.dtb \ > >> diff --git a/arch/arm/dts/sun50i-a64-pinebook.dts > >b/arch/arm/dts/sun50i-a64-pinebook.dts > >> new file mode 100644 > >>

Re: [U-Boot] [PATCH 1/5] mmc: sunxi: add support for automatic delay calibration

2018-10-01 Thread Maxime Ripard
On Mon, Oct 01, 2018 at 09:48:37AM +0100, Andre Przywara wrote: > On Mon, 1 Oct 2018 10:09:55 +0200 > Maxime Ripard wrote: > > > On Sun, Sep 30, 2018 at 04:16:36PM +0100, André Przywara wrote: > > > On 9/30/18 12:45 AM, Vagrant Cascadian wrote: > > > > From: Vasily Khoruzhick > > > > > > > >

[U-Boot] [RFC] efi: workaround for SCT (against unicode collation protocol)

2018-10-01 Thread AKASHI Takahiro
UEFI SCT doesn't run on the latest u-boot (or Alex's efi-next). Among other issues, there are two problems around language handling: 1. SCT looks for efi_unicode_collation_protocol with an (old?) guid, {0x1d85cd7f, 0xf43d, 0x11d2, 0x9a, 0x0c, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) 2.

Re: [U-Boot] [PATCH 4/5] sun50i: a64: add support for R_I2C controller

2018-10-01 Thread Maxime Ripard
Hi, On Sat, Sep 29, 2018 at 04:45:52PM -0700, Vagrant Cascadian wrote: > From: Vasily Khoruzhick > > Allwinner A64 has a I2C controller, which is in the R_ MMIO zone and has > two groups of pinmuxes on PL bank, so it's called R_I2C. > > Add support for this I2C controller and the pinmux which

[U-Boot] [PATCH v2 5/7] aspeed: Update ast2500 SoC DTS file to Linux v4.17-rc6 level

2018-10-01 Thread Cédric Le Goater
This is a large update of the AST2500 SoC DTS file bringing it to the level of commit 927c2fc2db19 : Author: Joel Stanley Date:Sat Jun 2 01:18:53 2018 -0700 ARM: dts: aspeed: Fix hwrng register address There are some differences on the compatibility property names. scu,

[U-Boot] [PATCH v2 4/7] net: ftgmac100: Add support for the Aspeed SoC

2018-10-01 Thread Cédric Le Goater
The Faraday ftgmac100 MAC controllers as found on the Aspeed SoCs have some slight differences in the HW interface (End-Of-Rx/Tx-Ring bits). Signed-off-by: Cédric Le Goater --- Changes since v1: - introduced a udevice_id .data model - dropped is_aspeed bool - dropped MDIO interface setting

[U-Boot] [PATCH v2 3/7] aspeed: ast2500: fix missing break in D2PLL clock enablement

2018-10-01 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater Reviewed-by: Joel Stanley Reviewed-by: Simon Glass --- drivers/clk/aspeed/clk_ast2500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/aspeed/clk_ast2500.c b/drivers/clk/aspeed/clk_ast2500.c index 526470051c5d..2182320f607f 100644 ---

Re: [U-Boot] clk: Add support for Arm's Versatile Express OSC clock generators

2018-10-01 Thread Liviu Dudau
On Sun, Sep 30, 2018 at 03:24:56PM -0400, Tom Rini wrote: > On Mon, Sep 17, 2018 at 05:50:00PM +0100, Liviu Dudau wrote: > > > The Arm Versatile Express and Juno development boards contain an > > OSC clock generator that can be accessed through the Versatile > > Express config bus. The generators

[U-Boot] [PATCH 2/4] nfs: factor out generic reply error handling

2018-10-01 Thread Christian Gmeiner
From: Thomas RIENOESSL Signed-off-by: Thomas RIENOESSL --- net/nfs.c | 93 ++- 1 file changed, 51 insertions(+), 42 deletions(-) diff --git a/net/nfs.c b/net/nfs.c index 81c08de626..d3de9b8c38 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -440,6

[U-Boot] [PATCH 1/4] nfs: convert supported_nfs_versions bitfield to an enum

2018-10-01 Thread Christian Gmeiner
From: Thomas RIENOESSL Prep. work to support nfs v1. Signed-off-by: Thomas RIENOESSL --- net/nfs.c | 79 +++ 1 file changed, 45 insertions(+), 34 deletions(-) diff --git a/net/nfs.c b/net/nfs.c index d6a7f8e827..81c08de626 100644 ---

Re: [U-Boot] [PATCH 5/5] sunxi: add support for Pinebook

2018-10-01 Thread Icenowy Zheng
于 2018年10月1日 GMT+08:00 下午4:17:24, Maxime Ripard 写到: >On Sat, Sep 29, 2018 at 04:45:53PM -0700, Vagrant Cascadian wrote: >> From: Vasily Khoruzhick >> >> Pinebook is a laptop produced by Pine64, with USB-connected keyboard, >> USB-connected touchpad and an eDP LCD panel connected via a RGB-eDP

Re: [U-Boot] [PATCH 1/5] mmc: sunxi: add support for automatic delay calibration

2018-10-01 Thread Maxime Ripard
On Sun, Sep 30, 2018 at 04:16:36PM +0100, André Przywara wrote: > On 9/30/18 12:45 AM, Vagrant Cascadian wrote: > > From: Vasily Khoruzhick > > > > A64 supports automatic delay calibration and Linux driver uses it > > instead of hardcoded delays. Add support for it to u-boot driver. > > So

[U-Boot] [PATCH v2 1/7] net: Remove the Faraday ftgmac100 controller driver

2018-10-01 Thread Cédric Le Goater
There are too many changes in the following patch fixing support for the Faraday ftgmac100 controller. To ease the review, remove the whole file which is not compiled anymore today (no Kconfig option for the driver). Signed-off-by: Cédric Le Goater --- drivers/net/ftgmac100.h | 242

[U-Boot] [PATCH v2 2/7] net: Re-add support for the Faraday ftgmac100 controller

2018-10-01 Thread Cédric Le Goater
The driver is based on the previous one and adds the same support for the Faraday ftgmac100 controller with MAC and MDIO bus support for RGMII/RMII modes. Driver model support was added as well as some enhancements and fixes. Signed-off-by: Cédric Le Goater Reviewed-by: Simon Glass ---

Re: [U-Boot] [PATCH v12 1/8] dm: drop unused helper in MTD header

2018-10-01 Thread Jagan Teki
On Sat, Sep 29, 2018 at 4:29 PM Miquel Raynal wrote: > > include/mtd.h might be included by files even if CONFIG_DM is not > enabled. In this case, the call to dev_get_uclass_priv() would trigger > a build error. Because this helper has no user, let's drop it off. Why would they use DM include

Re: [U-Boot] [PATCH 5/5] sunxi: add support for Pinebook

2018-10-01 Thread Maxime Ripard
On Sat, Sep 29, 2018 at 04:45:53PM -0700, Vagrant Cascadian wrote: > From: Vasily Khoruzhick > > Pinebook is a laptop produced by Pine64, with USB-connected keyboard, > USB-connected touchpad and an eDP LCD panel connected via a RGB-eDP > bridge from Analogix. > > Signed-off-by: Icenowy Zheng

[U-Boot] [PATCH v2 6/7] aspeed: Activate ethernet devices on the ast2500 Eval Board

2018-10-01 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater Reviewed-by: Simon Glass --- arch/arm/dts/ast2500-evb.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/ast2500-evb.dts b/arch/arm/dts/ast2500-evb.dts index 723941ac0bee..ebf44fd707f9 100644 ---

[U-Boot] [PATCH v2 7/7] aspeed: ast2500: fix D2-PLL clock setting in RGMII mode

2018-10-01 Thread Cédric Le Goater
The algorithm in the ast2500_calc_clock_config() routine suffers from integer rounding and the requested rate does not get the appropriate set of Numerator, Denumerator, Post Divider parameters. This is the case for the D2-PLL clock used by the MAC controllers in RGMII mode. The requested rated

[U-Boot] [PATCH 4/4] net: add NFSv1 support

2018-10-01 Thread Christian Gmeiner
From: Thomas RIENOESSL NFSv1 support added by Christian Gmeiner, Thomas Rienoessl, September 27, 2018. As of now, NFSv3 is the default choice. if the server does not support NFSv3, we fall back to versions 2 or 1. Signed-off-by: Thomas RIENOESSL --- net/nfs.c | 42

[U-Boot] [PATCH 3/4] nfs: handle rpc errors for mount calls

2018-10-01 Thread Christian Gmeiner
From: Thomas RIENOESSL Signed-off-by: Thomas RIENOESSL --- net/nfs.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/net/nfs.c b/net/nfs.c index d3de9b8c38..bd6588fe42 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -531,11 +531,9 @@ static int nfs_mount_reply(uchar

Re: [U-Boot] [PATCH v12 1/8] dm: drop unused helper in MTD header

2018-10-01 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Mon, 1 Oct 2018 15:23:46 +0530: > On Sat, Sep 29, 2018 at 4:29 PM Miquel Raynal > wrote: > > > > include/mtd.h might be included by files even if CONFIG_DM is not > > enabled. In this case, the call to dev_get_uclass_priv() would trigger > > a build error.

Re: [U-Boot] clk: Add support for Arm's Versatile Express OSC clock generators

2018-10-01 Thread Liviu Dudau
On Mon, Oct 01, 2018 at 07:36:12AM -0400, Tom Rini wrote: > On Mon, Oct 01, 2018 at 10:20:22AM +0100, Liviu Dudau wrote: > > On Sun, Sep 30, 2018 at 03:24:56PM -0400, Tom Rini wrote: > > > On Mon, Sep 17, 2018 at 05:50:00PM +0100, Liviu Dudau wrote: > > > > > > > The Arm Versatile Express and

Re: [U-Boot] [PATCH v12 1/8] dm: drop unused helper in MTD header

2018-10-01 Thread Jagan Teki
On Monday 01 October 2018 07:10 PM, Miquel Raynal wrote: Hi Jagan, Jagan Teki wrote on Mon, 1 Oct 2018 17:08:30 +0530: On Mon, Oct 1, 2018 at 3:32 PM Miquel Raynal wrote: Hi Jagan, Jagan Teki wrote on Mon, 1 Oct 2018 15:23:46 +0530: On Sat, Sep 29, 2018 at 4:29 PM Miquel Raynal

Re: [U-Boot] clk: Add support for Arm's Versatile Express OSC clock generators

2018-10-01 Thread Tom Rini
On Mon, Oct 01, 2018 at 04:16:45PM +0100, Liviu Dudau wrote: > On Mon, Oct 01, 2018 at 07:36:12AM -0400, Tom Rini wrote: > > On Mon, Oct 01, 2018 at 10:20:22AM +0100, Liviu Dudau wrote: > > > On Sun, Sep 30, 2018 at 03:24:56PM -0400, Tom Rini wrote: > > > > On Mon, Sep 17, 2018 at 05:50:00PM

Re: [U-Boot] [PATCH 14/22] test/py: Add a way to pass flags to sandbox

2018-10-01 Thread Stephen Warren
On 09/26/2018 03:55 PM, Simon Glass wrote: It is sometimes useful to restart sandbox with some particular flags to test certain functionality. Add a new method to ConsoleSandbox to handle diff --git a/test/py/u_boot_console_sandbox.py b/test/py/u_boot_console_sandbox.py @@ -22,8 +22,8 @@

Re: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command

2018-10-01 Thread Jagan Teki
On Monday 01 October 2018 07:13 PM, Miquel Raynal wrote: There should not be a 'nand' command, a 'sf' command and certainly not a new 'spi-nand' command. Write a 'mtd' command instead to manage all MTD devices/partitions at once. This should be the preferred way to access any MTD device.

[U-Boot] [ANN] U-Boot v2018.11-rc1 released

2018-10-01 Thread Tom Rini
Hey all, So it's release day and I've put up v2018.11-rc1. The merge window is now closed and I've updated git and the tarballs are also up now. Looking back to v2018.09, I had hoped to include the entire SPI-NAND series in that release. We're not there quite yet, but I expect a final PR

Re: [U-Boot] [PATCH v2] MAINTAINERS: at91: update entry for at91 boards

2018-10-01 Thread Tom Rini
On Mon, Oct 01, 2018 at 05:31:53PM +0300, Eugen Hristev wrote: > Updated the maintainership for the at91 boards. > > Signed-off-by: Eugen Hristev Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing

[U-Boot] [PATCH 1/1] efi_loader: fix simple network protocol

2018-10-01 Thread Heinrich Schuchardt
We should not call eth_rx() before the network interface is initialized. The services of the simple network protocol should check the state of the network adapter. Provide a correctly aligned transmit buffer not depending on CONFIG_EFI_LOADER_BOUNCE_BUFFER. Correct the unit test. Add and

Re: [U-Boot] [PATCH 2/6] pci: Check ops before using them for config space access

2018-10-01 Thread Marek Vasut
On 09/26/2018 07:42 AM, Simon Glass wrote: > Hi Marek, > > On 21 September 2018 at 16:59, Marek Vasut wrote: >> The code fails to check if ops is non-NULL before using it's members. >> Add the missing check and while at it, flip the condition to make it >> more obvious what is actually

Re: [U-Boot] [PATCH 5/6] test: Add PCI device entry without compat string and with DT node

2018-10-01 Thread Marek Vasut
On 09/25/2018 05:26 PM, Bin Meng wrote: > Hi Marek, > > On Sat, Sep 22, 2018 at 7:02 AM Marek Vasut wrote: >> >> Add PCI entry without compatible string and with a DT node only with >> reg = <...> property into the DT. This is needed for the tests to >> verify whether such a setup creates an

[U-Boot] [PATCH v2 1/9] dm: pinctrl: Add get_pin_muxing() ops

2018-10-01 Thread Patrice Chotard
Add get_pin_muxing() allows to display the muxing of a given pin belonging to a pin-controller Signed-off-by: Patrice Chotard --- Changes in v2: - Replace pinmux_show ops which displayed the complete pin-controller muxing by get_pin_muxing ops which displays the muxing of one pin

Re: [U-Boot] Please pull u-boot-dm

2018-10-01 Thread Tom Rini
On Sun, Sep 30, 2018 at 01:06:10PM -0700, Simon Glass wrote: > Hi Tom, > > Here are some binman and core driver-model enhancements. > > https://travis-ci.org/sglass68/u-boot/builds/435045761 > > Re signed tags, I did read this link: > >

[U-Boot] [PATCH v2 4/9] cmd: pinmux: Add pinmux command

2018-10-01 Thread Patrice Chotard
pinmux command allows to : - list all pin-controllers available on platforms - select a pin-controller - display the muxing of all pins of the current pin-controller or all pin-controllers depending of given options Signed-off-by: Patrice Chotard --- Changes in v2: - In order to make pin

[U-Boot] [PATCH v2 7/9] pinctrl: stm32: Add get_pin_muxing() ops

2018-10-01 Thread Patrice Chotard
Add get_pin_muxing() ops to obtain the pin muxing description a given pin index. Signed-off-by: Patrice Chotard --- Changes in v2: None drivers/pinctrl/pinctrl_stm32.c | 77 + 1 file changed, 77 insertions(+) diff --git

[U-Boot] [PATCH v2 9/9] pinctrl: sandbox: Add get_pin_muxing ops support

2018-10-01 Thread Patrice Chotard
Add get_pin_mux ops support to display the pin muxing description of the sandbox_pins[] Signed-off-by: Patrice Chotard --- Changes in v2: None drivers/pinctrl/pinctrl-sandbox.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/pinctrl/pinctrl-sandbox.c

[U-Boot] [PATCH v2 8/9] gpio: stm32f7: Add ops get_function

2018-10-01 Thread Patrice Chotard
This patch adds gpio get_function ops support. This function reports the state of a gpio. Signed-off-by: Christophe Kerello Reviewed-by: Simon Glass Signed-off-by: Patrice Chotard --- Changes in v2: None drivers/gpio/stm32f7_gpio.c | 20 1 file changed, 20 insertions(+)

[U-Boot] [PATCH v2 5/9] pinctrl: stm32: Add get_pins_count() ops

2018-10-01 Thread Patrice Chotard
Add get_pins_count ops to obtain the number of pins owns by a pin-controller. On STM32 SoCs bindings, each pin-controller owns several gpio banks. Each GPIO bank can own up to 16 pins. To obtain the total pins count, walk through each sub-nodes (ie GPIO banks) and sum each GPIO banks pins number.

Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-01 Thread Lukasz Majewski
On Tue, 25 Sep 2018 13:28:14 +0200 Lukasz Majewski wrote: > Dear All, > > > This series aims at bringing improvements to the dwc3_generic driver > > so that it can be used by most of the platforms using the dwc3 > > controller. > > > > I tested this on with DRA7 and AM57x platforms for both

Re: [U-Boot] [PATCH 1/3] spi: davinci: Add platdata support

2018-10-01 Thread Adam Ford
On Mon, Sep 3, 2018 at 5:22 PM Adam Ford wrote: > > On Mon, Sep 3, 2018 at 5:21 PM Adam Ford wrote: > > > > On Mon, Sep 3, 2018 at 12:30 PM Jagan Teki > > wrote: > > > > > > Davanci spi driver has DM support already, this patch > > > add support for platdata so-that SPL can use it for > > >

[U-Boot] [PATCH V2 2/2] ofnode: Add missing address translation into ofnode_get_addr_size()

2018-10-01 Thread Marek Vasut
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_cells --- drivers/core/ofnode.c | 6 +- 1 file changed, 5

[U-Boot] [PATCH V2 1/2] ofnode: Replace of_n_addr_cells with of_n_size_cells

2018-10-01 Thread Marek Vasut
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(-) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index

[U-Boot] [PATCH v2 6/9] pinctrl: stm32: Add get_pin_name() ops

2018-10-01 Thread Patrice Chotard
Add get_pin_name ops to obtain a pin name given a pin index of a specified pin-controller. Signed-off-by: Patrice Chotard --- Changes in v2: None drivers/pinctrl/pinctrl_stm32.c | 47 + 1 file changed, 47 insertions(+) diff --git

Re: [U-Boot] clk: Add support for Arm's Versatile Express OSC clock generators

2018-10-01 Thread Tom Rini
On Mon, Oct 01, 2018 at 10:20:22AM +0100, Liviu Dudau wrote: > On Sun, Sep 30, 2018 at 03:24:56PM -0400, Tom Rini wrote: > > On Mon, Sep 17, 2018 at 05:50:00PM +0100, Liviu Dudau wrote: > > > > > The Arm Versatile Express and Juno development boards contain an > > > OSC clock generator that can

Re: [U-Boot] [PATCH v2 10/14] usb:ci_udc: Introduce init_after_reset phy function

2018-10-01 Thread Lukasz Majewski
Hi Ramon, > MSM variant of Chipidea must reinitalize the phy > after controller reset. > Introduce ci_init_after_reset() weak function that > can be used to achieve the above init. > > Signed-off-by: Ramon Fried > --- > > Changes in v2: None > > drivers/usb/gadget/ci_udc.c | 6 ++ > 1

Re: [U-Boot] [PATCH v2 14/14] usb:ci_udc: don't overwrite configuration on pullup

2018-10-01 Thread Lukasz Majewski
Hi Ramon, > change writel to writebits32 in ci_pullup() in order > to keep phy configuration in tact. > > Signed-off-by: Ramon Fried > --- > > Changes in v2: > Patch introduced > > drivers/usb/gadget/ci_udc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git

Re: [U-Boot] [PATCH] fs: btrfs: Fix tree traversal with btrfs_next_slot()

2018-10-01 Thread Marek Behún
I shall test this today or tomorrow, but have too many things on my head, sorry :( You saying that this will fix reading large files? I haven't encountered such an error yet, but can try creating a large enough file. How large should it be? On Mon, 1 Oct 2018 08:50:11 +0300 Yevgeny Popovych

Re: [U-Boot] [PATCH v12 1/8] dm: drop unused helper in MTD header

2018-10-01 Thread Jagan Teki
On Mon, Oct 1, 2018 at 3:32 PM Miquel Raynal wrote: > > Hi Jagan, > > Jagan Teki wrote on Mon, 1 Oct 2018 > 15:23:46 +0530: > > > On Sat, Sep 29, 2018 at 4:29 PM Miquel Raynal > > wrote: > > > > > > include/mtd.h might be included by files even if CONFIG_DM is not > > > enabled. In this case,

[U-Boot] [PATCH v2 2/9] dm: pinctrl: Add pinctrl_get_pin_name and pinctrl_get_pins_count

2018-10-01 Thread Patrice Chotard
Add pinctrl_get_pin_name() and pinctrl_get_pins_count() methods to obtain pin's name and pin's muxing given a pin reference. This will be used by the new pinmux command. Signed-off-by: Patrice Chotard --- Changes in v2: None drivers/pinctrl/pinctrl-uclass.c | 22 ++

[U-Boot] [PATCH v2 3/9] dm: uclass: Add uclass_foreach_dev_probe

2018-10-01 Thread Patrice Chotard
Add uclass_foreach_dev_probe() which iterates through devices of a given uclass. Devices are probed if necessary and are ready to use. Signed-off-by: Patrice Chotard --- Changes in v2: None include/dm/uclass.h | 16 1 file changed, 16 insertions(+) diff --git

[U-Boot] [PATCH 01/15] log: Add helpers for common log levels

2018-10-01 Thread Simon Glass
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.

[U-Boot] [PATCH 07/15] sandbox: Remove the old memory file later

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH 06/15] sandbox: Add a flag to set the default log level

2018-10-01 Thread Simon Glass
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 ---

[U-Boot] [PATCH 13/15] sandbox: tpm: Enhance to support the latest Chromium OS

2018-10-01 Thread Simon Glass
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 ---

Re: [U-Boot] [PATCH 01/18] gpio: mpc8xxx: add support for Layerscape SoC

2018-10-01 Thread York Sun
On 08/22/2018 06:15 PM, ying.zhang22...@nxp.com wrote: > From: Zhang Ying-22455 > > * Add mpc8xxx_gpio_plat for for Layerscape SoC > * Make the mpc8xxx driver capable of handling Layerscape Soc. > > Signed-off-by: Zhang Ying-22455 > --- > arch/arm/include/asm/arch-fsl-layerscape/gpio.h|

[U-Boot] [PATCH 08/15] sandbox: spi: Add more logging

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH 02/15] sandbox: Support file truncation with os_open()

2018-10-01 Thread Simon Glass
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(+) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index

[U-Boot] [PATCH 15/15] sandbox: Restore blocking I/O on exit

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH 11/15] serial: sandbox: Allow serial output without device tree

2018-10-01 Thread Simon Glass
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(+) diff --git a/drivers/serial/sandbox.c

[U-Boot] [PATCH 14/15] dm: spi: Clean up detection of sandbox SPI emulator

2018-10-01 Thread Simon Glass
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 -

Re: [U-Boot] [PATCH 01/18] gpio: mpc8xxx: add support for Layerscape SoC

2018-10-01 Thread York Sun
On 08/22/2018 06:15 PM, ying.zhang22...@nxp.com wrote: > From: Zhang Ying-22455 > > * Add mpc8xxx_gpio_plat for for Layerscape SoC > * Make the mpc8xxx driver capable of handling Layerscape Soc. > > Signed-off-by: Zhang Ying-22455 > --- > arch/arm/include/asm/arch-fsl-layerscape/gpio.h|

[U-Boot] [PATCH 00/15] sandbox: Add support for TPL and other improvements

2018-10-01 Thread Simon Glass
This series adds TPL support to sandbox and tidies up various other things along the way: - Fix for console being left in non-blocking mode on exit - Add debug UART (just for build coverage) - Support for serial output without DT (intended for TPL) - Enhancements to the sandbox TPM driver -

[U-Boot] [PATCH 10/15] sandbox: Add a debug UART

2018-10-01 Thread Simon Glass
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(+) diff --git

[U-Boot] [PATCH 03/15] sandbox: Add a way to write data to the host filesystem

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH 04/15] sandbox: spi: Drop command-line SPI option

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH 05/15] sandbox: Support booting from TPL to SPL

2018-10-01 Thread Simon Glass
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(-) diff --git

Re: [U-Boot] Please pull u-boot-dm

2018-10-01 Thread Simon Glass
Hi Tom, On 1 October 2018 at 05:54, Tom Rini wrote: > On Sun, Sep 30, 2018 at 01:06:10PM -0700, Simon Glass wrote: > >> Hi Tom, >> >> Here are some binman and core driver-model enhancements. >> >> https://travis-ci.org/sglass68/u-boot/builds/435045761 >> >> Re signed tags, I did read this link:

[U-Boot] Errors when starting sandbox

2018-10-01 Thread Simon Glass
Hi Joe, When I start sandbox now I see these errors every time. It is possible to fix this? $ u-boot -D ... Warning: host_lo MAC addresses don't match: Address in ROM is ea:06:97:67:f4:b6 Address in environment is 00:00:11:22:33:44 Warning: host_eth0 MAC addresses don't match: Address

Re: [U-Boot] [PATCH 15/18] armv8: ls1088a: add i2c entry

2018-10-01 Thread York Sun
On 08/22/2018 06:15 PM, ying.zhang22...@nxp.com wrote: > From: Zhang Ying-22455 > > Signed-off-by: Zhang Ying-22455 > --- > arch/arm/dts/fsl-ls1088a-qds.dts | 57 > > arch/arm/dts/fsl-ls1088a-rdb.dts | 40 >

[U-Boot] [PATCH 09/15] sandbox: video: Speed up video output

2018-10-01 Thread Simon Glass
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 this operation is really needed. At present this flag is not used on other

Re: [U-Boot] [PATCH 03/18] armv8: ls1043ardb: Enable GPIO driver

2018-10-01 Thread York Sun
On 08/22/2018 06:15 PM, ying.zhang22...@nxp.com wrote: > From: Zhang Ying-22455 > > Signed-off-by: Zhang Ying-22455 > --- > configs/ls1043ardb_SECURE_BOOT_defconfig| 2 ++ > configs/ls1043ardb_defconfig| 2 ++ > configs/ls1043ardb_nand_SECURE_BOOT_defconfig | 2 ++

[U-Boot] [PATCH 12/15] sandbox: tpm: Tidy up enums and return values

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH v2 11/17] binman: Fix up removal of temporary directories

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH v2 02/17] sandbox: Unprotect DATA regions in bus tests

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH v2 14/17] tools: Set an initial value for indir

2018-10-01 Thread Simon Glass
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(+) diff --git a/tools/patman/tools.py b/tools/patman/tools.py index 1c9bf4e8100..bf099798e65 100644 ---

[U-Boot] [PATCH v2 05/17] buildman: Make the toolchain test more forgiving

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH v2 04/17] test/py: Fix unicode handling for log filtering

2018-10-01 Thread Simon Glass
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 UTF-8. Fix it by using ordinals instead of

[U-Boot] [PATCH v2 17/17] binman: Run tests concurrently

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH v2 16/17] test: Reduce the number of tests run with sandbox_flattree

2018-10-01 Thread Simon Glass
We only need to run driver-model tests with this config, since this is the only thing that is different when CONFIG_OF_LIVE is not defined. Filter out the other tests to same time. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to reduce the number of tests run with

Re: [U-Boot] efi_loader: execute image's unload function

2018-10-01 Thread AKASHI Takahiro
Heinrich, On Fri, Sep 28, 2018 at 01:24:42PM +0900, AKASHI Takahiro wrote: > Heinrich, > > On Fri, Sep 28, 2018 at 04:35:57AM +0200, Heinrich Schuchardt wrote: > > On 08/09/2018 08:50 AM, AKASHI Takahiro wrote: > > > Currently, unload function in EFI_LOADED_IMAGE_PROTOCOL is never called > > >

[U-Boot] [PATCH v2 00/17] test: Various test refinements and improvements

2018-10-01 Thread Simon Glass
This series includes a number of small changes designed to make tests run more smoothly. The overall goal is that 'make check' runs cleanly without unnecessary output and all temporary files aare cleaned up. Changes in v2: - Quote @$ correctly so that quoted arguments can be passed to run_test -

[U-Boot] [PATCH v2 01/17] test/py: ignore console read exceptions after test failure

2018-10-01 Thread Simon Glass
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 detecting any additional errors, since the test is already known to have failed, and U-Boot will be restarted. To ensure that the

[U-Boot] [PATCH v2 08/17] test: Print the name of each test before running it

2018-10-01 Thread Simon Glass
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 @$

[U-Boot] [PATCH v2 03/17] patman: Handle unicode in _ProjectConfigParser tests

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH v2 13/17] buildman: dtoc: Suppress unwanted output from test

2018-10-01 Thread Simon Glass
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(-) diff --git

[U-Boot] [PATCH 1/1] efi_loader: memory leak in efi_set_variable()

2018-10-01 Thread Heinrich Schuchardt
Do not leak native_name if out of memory. This addresses CoverityScan CID 184095. Reported-by: Tom Rini Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_variable.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_variable.c

[U-Boot] [PATCH 1/1] fs: fat: memory leak in fat_unlink()

2018-10-01 Thread Heinrich Schuchardt
Do not leak filename_copy in case of error. Catch out of memory when calling strdup. This addresses Coverity Scan CID 184086. Reported-by: Tom Rini Signed-off-by: Heinrich Schuchardt --- fs/fat/fat_write.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 15/17] patman: Don't clear progress in tout unless it was used

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH v2 09/17] test: Tidy up comments and variable name

2018-10-01 Thread Simon Glass
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(-) diff --git

[U-Boot] [PATCH v2 10/17] binman: Add a default path to libfdt.py

2018-10-01 Thread Simon Glass
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 ++

[U-Boot] [PATCH v2 12/17] binman: Separate out testSplBssPad()

2018-10-01 Thread Simon Glass
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

[U-Boot] [PATCH v2 07/17] test: Simplify the PATH setup

2018-10-01 Thread Simon Glass
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(-) diff --git a/test/run b/test/run index d77a1c371b4..6b73813f9bc 100755 --- a/test/run +++

[U-Boot] [PATCH v2 06/17] Makefile: Add a 'check' target for make

2018-10-01 Thread Simon Glass
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(-) diff --git

[U-Boot] [PATCH 1/1] efi_loader: superfluous statement in is_dir()

2018-10-01 Thread Heinrich Schuchardt
When is_dir() is called we have already execute set_blk_dev(fh). So don't call it again. This fixes CoverityScan CID 184093. Reported-by: Tom Rini Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_file.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 1/1] efi_loader: return type efi_console_register()

2018-10-01 Thread Heinrich Schuchardt
Use a return type that can encompass the return value. This fixes CoverityScan CID 184090. Reported-by: Tom Rini Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 2 +- lib/efi_loader/efi_console.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 1/1] efi_loader: error handling in read_console()

2018-10-01 Thread Heinrich Schuchardt
getc() might return an error code. Avoid an incorrect converison to Unicode. This addresses CoverityScan CID 184087. Reported-by: Tom Rini Signed-off-by: Heinrich Schuchardt --- lib/charset.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/charset.c

[U-Boot] [PATCH v2 0/9] Add pinmux command

2018-10-01 Thread Patrice Chotard
For debug purpose, it's useful to know the pins muxing to check if a pin is configured as a GPIO or as an alternate function and to get information about this alternate function configuration. For this purpose a new command pinmux is implemented. This series adds: - Add get_pin_muxing ops to

  1   2   >