Re: [PATCH v2 0/6] add support for sama7g5 ethernet interfaces

2021-01-19 Thread Eugen.Hristev
On 03.12.2020 15:59, Claudiu Beznea wrote: > Hi, > > This series add support for SAMA7G5 ethernet interfaces: one > gigabit interface and one 10/100Mbps interface. > > Thank you, > Claudiu Beznea > > Changes in v2: > - fix compilation error on patch 6/6 for wb50n_defconfig > > Claudiu Beznea

Re: [PATCH 1/3] mem: spi-mem: define spi_mem_default_supports_op

2021-01-19 Thread Pratyush Yadav
Hi Matthew, > Subject: [PATCH 1/3] mem: spi-mem: define spi_mem_default_supports_op Nitpick: You are declaring spi_mem_default_supports_op() here. It is already defined. On 18/01/21 11:52PM, Mathew McBride wrote: > spi_mem_default_supports_op is used internally by controller > drivers to

Re: [PATCH 1/2] spi: nxp_fspi: Fix error reporting

2021-01-19 Thread Pratyush Yadav
On 18/01/21 03:32PM, Adam Ford wrote: > On the i.MX8M Mini, ret = clk_set_rate() sets ret to the value of the > rate the clock was able to set. When checking for errors, it only > checks that it is not NULL. Since positive numbers are not errors, > only check for negative numbers when handling

Re: [PATCH 1/5] arm: dts: mt8516: add support for USB

2021-01-19 Thread Tom Rini
On Fri, Oct 16, 2020 at 05:40:05PM +0200, Fabien Parent wrote: > Add support for USB on mt8516 based SoC. > > Signed-off-by: Fabien Parent Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/5] arm: dts: mt8516-pumpkin: enable usb port

2021-01-19 Thread Tom Rini
On Fri, Oct 16, 2020 at 05:40:06PM +0200, Fabien Parent wrote: > Enable the USB port for MT8516 Pumpkin Board. > > Signed-off-by: Fabien Parent Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] mtd: remove drivers/mtd/mw_eeprom.c

2021-01-19 Thread Tom Rini
On Sun, Dec 27, 2020 at 11:54:23AM +0100, Heinrich Schuchardt wrote: > drivers/mtd/mw_eeprom.c contains code that never worked. mw_eeprom_write() > and mw_eeprom_read() have incorrect loop conditions: > > while (len <= 2) { > > CONFIG_MW_EEPROM is not set anywhere. So let's simply drop

Re: [PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-19 Thread Tom Rini
On Tue, Jan 12, 2021 at 01:44:02PM +0800, Weijie Gao wrote: > The timer being used by this driver may have already been used by first > stage bootloader (e.g. ATF/preloader), and it's settings may differ from > what this driver is going to use. > > This may cause issues, such as inaccurate timer

Re: [PATCH v2 1/1] pinctrl: mediatek: correct error handling

2021-01-19 Thread Tom Rini
On Sun, Dec 27, 2020 at 09:18:26PM +0100, Heinrich Schuchardt wrote: > If no GPIO controller is found, the return value should not depend on a > random value on the stack. Initialize variable ret. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt > Acked-by:

Re: [PATCH 2/2] dts: mt7622: use accurate clock source fot mtk_timer

2021-01-19 Thread Tom Rini
On Tue, Jan 12, 2021 at 01:44:11PM +0800, Weijie Gao wrote: > The input system clock for mt7622 timer is 10MHz and can be retrieved > through the clk driver. > > Signed-off-by: Weijie Gao Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] drivers: qe: avoid double free()

2021-01-19 Thread Tom Rini
On Sun, Dec 27, 2020 at 11:48:49AM +0100, Heinrich Schuchardt wrote: > Avoid calling free(addr) twice if the device for ucode is not found. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [PATCH] doc: board: freescale: advise to use newer atf and firmware

2021-01-19 Thread Tom Rini
On Sun, Dec 13, 2020 at 08:36:06PM +, Andrey Zhizhikin wrote: > Update branch and version information of ATF and DDR firmware files to > point to latest releases provided by NXP. > > This is especially critical for imx8mp evk, as the ATF support for that > SoC is only available in latest

Re: [PATCH 1/7] clk: aspeed: Add AST2600 clock support

2021-01-19 Thread Tom Rini
On Mon, Dec 14, 2020 at 01:54:23PM +0800, Chia-Wei, Wang wrote: > From: Ryan Chen > > This patch adds the clock control driver > for the AST2600 SoC. > > Signed-off-by: Ryan Chen > Signed-off-by: Chia-Wei, Wang Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH v2 1/2] mtd: rawnand: cortina_nand: Add Cortina CAxxxx SoC support

2021-01-19 Thread Tom Rini
On Fri, Dec 11, 2020 at 01:46:12PM -0800, Alex Nemirovsky wrote: > From: Kate Liu > > Add Cortina Access parallel Nand support for CA SOCs > > Signed-off-by: Kate Liu > Signed-off-by: Alex Nemirovsky > CC: Tom Rini > CC: Scott Wood > Reviewed-by: Tom Rini Applied to u-boot/master,

Re: [PATCH v2 2/2] board: presidio: Add Parallel NAND support

2021-01-19 Thread Tom Rini
On Fri, Dec 11, 2020 at 01:46:13PM -0800, Alex Nemirovsky wrote: > From: Kate Liu > > Set environment for Nand flash (U-boot 2020.04): > - add nand flash in the device tree > - add new default configuration file for G3 using parallel Nand > - set nand parameters in presidio_asic.h > >

[PATCH v3 5/5] net: macb: take into account all RGMII interface types

2021-01-19 Thread Claudiu Beznea
Take into account all RGMII interface types. Depending on it the RGMII PHY's timings are setup. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index f71331827ca0..6e26467700a5

[PATCH v3 3/5] net: macb: add support for sama7g5 gmac

2021-01-19 Thread Claudiu Beznea
Add support for SAMA7G5 GMAC. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 80ed58d4b908..e87ffd9be3ed 100644 --- a/drivers/net/macb.c +++

[PATCH v3 4/5] net: macb: add support for sama7g5 emac

2021-01-19 Thread Claudiu Beznea
Add support for SAMA7G5 EMAC. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index e87ffd9be3ed..f71331827ca0 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -1482,12 +1482,21

Re: [PATCH 4/5] configs: pumpkin: enable USB gadget

2021-01-19 Thread Tom Rini
On Fri, Oct 16, 2020 at 05:40:08PM +0200, Fabien Parent wrote: > Enable USB gadget on pumpkin. This requires to also enable > BOARD_LATE_INIT since the init is done in board_late_init function. > > Signed-off-by: Fabien Parent Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH] tools: mtk_image: add support for booting ARM64 images

2021-01-19 Thread Tom Rini
On Fri, Oct 16, 2020 at 07:52:37PM +0200, Fabien Parent wrote: > mkimage is only able to package aarch32 binaries. Add support for > AArch64 images. > > One can create a ARM64 image using the following command line: > mkimage -T mtk_image -a 0x201000 -e 0x201000 -n "media=emmc;arm64=1" > -d

Re: [PATCH 5/5] configs: pumpkin: enable fastboot

2021-01-19 Thread Tom Rini
On Fri, Oct 16, 2020 at 05:40:09PM +0200, Fabien Parent wrote: > Enable fastboot commands for mt8516 pumpkin board. > > Signed-off-by: Fabien Parent Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/5] board: mediatek: pumpkin: initialize usb device

2021-01-19 Thread Tom Rini
On Fri, Oct 16, 2020 at 05:40:07PM +0200, Fabien Parent wrote: > Initialize USB device on pumpkin if it is enabled in the config. > > Signed-off-by: Fabien Parent Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] clk: mediatek: Add MT8183 clock driver

2021-01-19 Thread Tom Rini
On Sat, Oct 17, 2020 at 12:52:15PM +0200, Fabien Parent wrote: > Add the topckgen, apmixedsys and infracfg clock driver for the MT8183 > SoC. > > Signed-off-by: Fabien Parent Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH u-boot-marvell v2 1/2] arm: mvebu: turris_mox: enable wdt command in defconfig

2021-01-19 Thread Marek Behún
Enable wdt command in defconfig for Turris MOX. This is useful when doing debugging. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- configs/turris_mox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig index

[PATCH u-boot-marvell v2 2/2] arm: mvebu: turris_mox: enable setexpr command in defconfig

2021-01-19 Thread Marek Behún
Enable setexpr command in defconfig for Turris MOX. We have found that this is sometimes useful in U-Boot scripts and there is enough space in NOR memory on MOX. Signed-off-by: Marek Behún --- configs/turris_mox_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [NXP-IMX] please pull nxp-imx-2021-1-16

2021-01-19 Thread Bin Meng
Hi Peng, On Mon, Jan 18, 2021 at 9:40 AM Peng Fan wrote: > > > Subject: Re: [NXP-IMX] please pull nxp-imx-2021-1-16 > > > > Hi Peng, > > > > On 16.01.21 08:18, Peng Fan wrote: > > > Hi Stefano, > > > > > > Please pull nxp-imx-2021-1-16 > > > --- > > > nandbcb

Re: [PATCH 3/7] wdt: aspeed: Add AST2600 watchdog support

2021-01-19 Thread Tom Rini
On Mon, Dec 14, 2020 at 01:54:25PM +0800, Chia-Wei, Wang wrote: > AST2600 has 8 watchdog timers including 8 sets of > 32-bit decrement counters, based on 1MHz clock. > > A 64-bit reset mask is also supported to specify > which controllers should be reset by the WDT reset. > > Signed-off-by:

Re: [PATCH 2/7] ram: aspeed: Add AST2600 DRAM control support

2021-01-19 Thread Tom Rini
On Mon, Dec 14, 2020 at 01:54:24PM +0800, Chia-Wei, Wang wrote: > From: Dylan Hung > > AST2600 supports DDR4 SDRAM with maximum speed DDR4-1600. > The DDR4 DRAM types including 128MbX16 (2Gb), 256MbX16 (4Gb), > 512MbX16 (8Gb), 1GbX16 (16Gb), and 1GbX8 TwinDie (16Gb) are supported. > >

Re: [PATCH 4/7] reset: aspeed: Add AST2600 reset support

2021-01-19 Thread Tom Rini
On Mon, Dec 14, 2020 at 01:54:26PM +0800, Chia-Wei, Wang wrote: > Add controller reset support through the > System Control Unit (SCU) of AST2600 SoC. > > Signed-off-by: Chia-Wei, Wang > Reviewed-by: Ryan Chen Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 2/2] arm64: dts: imx8mm-beacon: Resync imx8mm-beacon-som with 5.11-rc4

2021-01-19 Thread Adam Ford
On Mon, Jan 18, 2021 at 7:44 PM Peng Fan wrote: > > > Subject: [PATCH 2/2] arm64: dts: imx8mm-beacon: Resync > > imx8mm-beacon-som with 5.11-rc4 > > > > In order to support the QSPI chip on the SOM, the Flexspi bus needs to be > > configured to talk with the SPI chip. > > Resync the som device

Re: [PATCH 5/7] ARM: dts: aspeed: Add AST2600 SoC support

2021-01-19 Thread Tom Rini
On Mon, Dec 14, 2020 at 01:54:27PM +0800, Chia-Wei, Wang wrote: > AST2600 is the 7th generation of Aspeed SoC designated for > Interated Remote Management Processor. > > AST2600 has significant performance improvement by integrating > 1.2GHz dual-core ARM Cortex A7 (r0p5) CPU with FPU. Most of

Re: [PATCH 6/7] aspeed: Add AST2600 platform support

2021-01-19 Thread Tom Rini
On Mon, Dec 14, 2020 at 01:54:28PM +0800, Chia-Wei, Wang wrote: > Add low level platform initialization for the AST2600 SoC. > The 2-stage booting with U-Boot SPL are leveraged to support > different booting mode. > > However, currently the patch supports only the booting from > memory-mapped

Re: [PATCH] sunxi: don't define MACPWR and SATAPWR to empty strings

2021-01-19 Thread Peter Robinson
On Tue, Jan 19, 2021 at 1:05 AM Andre Przywara wrote: > > On 18/01/2021 00:18, Peter Robinson wrote: > > Hi Peter, > > > There's checks in board/sunxi/board.c if either MACPWR or SATAPWR are > > defined and they are defined by default to a empty string which means > > on vast majority of

Re: [PATCH] sunxi: Properly check for SATAPWR and MACPWR

2021-01-19 Thread Peter Robinson
On Tue, Jan 19, 2021 at 1:06 AM Andre Przywara wrote: > > The #ifdef CONFIG_xxxPWR conditionals were not working as expected, as > string Kconfig symbols are always "defined" from the preprocessor's > perspective. This lead to unnecessary calls to the GPIO routines, but > also always added a half

Re: [PATCH 2/3] keymile: common: Fix pram variable radix

2021-01-19 Thread Stefan Roese
Hi Niel, On 08.01.21 11:53, Niel Fourie wrote: In set_km_env() the pram variable was set to an hexadecimal value, while initr_mem() expects an unsigned decimal. Set the pram variable to an unsigned decimal instead. Signed-off-by: Niel Fourie Cc: Holger Brunck Cc: Heiko Schocher Cc: Priyanka

Re: [PATCH u-boot-marvell v2 2/2] arm: mvebu: turris_mox: enable setexpr command in defconfig

2021-01-19 Thread Stefan Roese
On 19.01.21 15:49, Marek Behún wrote: Enable setexpr command in defconfig for Turris MOX. We have found that this is sometimes useful in U-Boot scripts and there is enough space in NOR memory on MOX. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan ---

Re: Re: [PATCH v2 01/21] mmc: sdhci: Add helper functions for UHS modes

2021-01-19 Thread Aswath Govindraju
Hi Jaehoon, On 05/11/20 4:03 am, Jaehoon Chung wrote: > On 11/5/20 4:05 AM, Faiz Abbas wrote: >> Jaehoon, >> >> On 21/10/20 5:08 pm, Jaehoon Chung wrote: >>> Hi Faiz, >>> >>> On 10/16/20 8:08 PM, Faiz Abbas wrote: Add a set_voltage() function which handles the switch from 3.3V to 1.8V

Re: [PATCH] km/arm: cleanup defconfig files

2021-01-19 Thread Tom Rini
On Fri, Nov 06, 2020 at 10:42:08AM +0100, Holger Brunck wrote: > Disable some unneeded config options and adapt the ident string. > > CC: Stefan Roese > Signed-off-by: Holger Brunck > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH v2 2/3] acpi: Add missing ARM acpi_table header

2021-01-19 Thread Tom Rini
On Fri, Nov 06, 2020 at 12:24:17PM +, Harm Berntsen wrote: > The pci_mmc.c driver can generate ACPI info and therefore includes > asm/acpi_table.h by proxy. This file does not exist for the ARM > architecture and thus code compilation failed when using this > driver on ARM. > >

Re: [PATCH v2 3/3] mmc: Only retrieve cd pin when GPIO is enabled

2021-01-19 Thread Tom Rini
On Fri, Nov 06, 2020 at 12:20:44PM +, Harm Berntsen wrote: > The driver only needs to retrieve the pin for the ACPI info. The driver > itself works without depending on GPIO. > > Signed-off-by: Harm Berntsen > CC: Simon Glass > Reviewed-by: Simon Glass Applied to u-boot/master, thanks!

Re: [PATCH] km/kirkwood: enable USB support and the host controller driver

2021-01-19 Thread Tom Rini
On Tue, Nov 03, 2020 at 03:41:25PM +0100, Holger Brunck wrote: > Our kirkwood device embeds a USB host controller that is now used > on some boards. This enables the support of USB and the corresponding > driver. > > Signed-off-by: Holger Brunck > CC: Stefan Roese > Reviewed-by: Stefan Roese

Re: [PATCH 1/3] gpio: do not include on ARCH_QEMU

2021-01-19 Thread Tom Rini
On Fri, Oct 30, 2020 at 08:45:15AM +, Harm Berntsen wrote: > As no gpio.h is defined for this architecture, to avoid > compilation failure, do not include for > QEMU. > > Signed-off-by: Harm Berntsen Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH v5 1/2] arm: dts: add imx8mm-cl-iot-gate dts file

2021-01-19 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add board dts for imx8mm-cl-iot-gate Signed-off-by: Kirill Kapranov Signed-off-by: Uri Mashiach Signed-off-by: Valentin Raevsky Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peter Robinson --- v2: Rename iot-gate-imx8 -> imx8mm-cl-iot-gate v4: Re-sent for

[PATCH v3 1/5] net: macb: add user io config data structure

2021-01-19 Thread Claudiu Beznea
Different implementation of USER IO register needs different mapping for bit fields of this register. Add implementation for this and, since clken is part of USER IO and it needs to be activated based on per SoC capabilities, add caps in macb_config where clken specific information needs to be

[PATCH v3 0/5] add support for sama7g5 ethernet interfaces

2021-01-19 Thread Claudiu Beznea
Hi, This series add support for SAMA7G5 ethernet interfaces: one gigabit interface and one 10/100Mbps interface. Thank you, Claudiu Beznea Changes in v3: - get rid of patch 1/6 from v2 as it was already integrated from patch series at [1] - rebase on top of current master branch Changes in

[PATCH v3 2/5] net: macb: check clk_set_rate return value to be negative

2021-01-19 Thread Claudiu Beznea
clk_set_rate() returns the set rate in case of success and a negative number in case of failure. Consider failure only the negative numbers. Fixes: 3ef6de157 ("dm: net: macb: Implement link speed change callback") Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 2 +- 1 file changed,

Re: [PATCH 7/7] configs: aspeed: Add defconfig for AST2600 EVB

2021-01-19 Thread Tom Rini
On Mon, Dec 14, 2020 at 01:54:29PM +0800, Chia-Wei, Wang wrote: > Add the default configuration for the AST2600 EVB. > > Signed-off-by: Chia-Wei, Wang > Reviewed-by: Ryan Chen Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] dma: bcm6348: incorrect buffer allocation

2021-01-19 Thread Tom Rini
On Sun, Dec 27, 2020 at 10:26:00AM +0100, Heinrich Schuchardt wrote: > Calling calloc() for 0 members does not make any sense. > Setting ch_priv->busy_desc = NULL for ch_priv->desc_cnt > 0 is equally > unreasonable. > > The current code will lead to a NULL dereference in bcm6348_iudma_enable().

Re: [PATCH v4] cmd: Add a pwm command

2021-01-19 Thread Tom Rini
On Tue, Dec 22, 2020 at 11:30:05AM +0530, Pragnesh Patel wrote: > Add the command "pwm" for controlling the pwm channels. This > command provides pwm invert/config/enable/disable functionalities > via PWM uclass drivers > > Signed-off-by: Pragnesh Patel > Reviewed-by: Simon Glass Applied to

Re: [PATCH 1/1] mmc: fsl_esdhc_spl: remove superfluous free()

2021-01-19 Thread Tom Rini
On Sun, Dec 27, 2020 at 10:50:26AM +0100, Heinrich Schuchardt wrote: > Freeing a buffer before calling hang() is superfluous. Removing the call > reduces the SPL size. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Jaehoon Chung Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] power: pmic: add driver for Monolithic Power mp5416

2021-01-19 Thread Tom Rini
On Mon, Dec 21, 2020 at 08:19:39AM -0800, Tim Harvey wrote: > This adds basic register access and child regulator binding > for the Monolithic MP5416 Power Management IC which integrates > four DC/DC switching converters and five LDO regulators. > > Signed-off-by: Tim Harvey Applied to

[PATCH v5 0/2] arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)

2021-01-19 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" *** BLURB HERE *** Add initial support for Compulab iot-gate-imx8 board (imx8mm-cl-iot-gate). The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Ying-Chun Liu (PaulLiu) (2): arm: dts: add imx8mm-cl-iot-gate dts file arm: imx8m: add

Re: [PATCH 1/3] PowerPC: dts: Pulled in kmcent2 dts files from Linux 5.10

2021-01-19 Thread Stefan Roese
Hi Niel, On 08.01.21 11:53, Niel Fourie wrote: Pulled in the kmcent2.dts and all its dependents from Linux 5.10, commit 2c85ebc57b3e upstream. Replaced the license text with SPDX License Identifiers. I assume that you did not change the license itself (e.g. change MIT to GPL etc) but only

arm: rk3399: add support nanopi r4s

2021-01-19 Thread alex tian
>From e4f4c74b1f0e2bb7205a7b083fab6faf0b65c1ba Mon Sep 17 00:00:00 2001 From: Xiaobo Tian Date: Sat, 26 Dec 2020 00:13:37 +0800 Subject: [PATCH] arm: rk3399: add support nanopi r4s Signed-off-by: Xiaobo Tian --- arch/arm/dts/Makefile | 1 +

Re: [PATCH 3/3] PowerPC: keymile: Add support for kmcent2 board

2021-01-19 Thread Stefan Roese
Hi Niel, On 08.01.21 11:53, Niel Fourie wrote: Add basic support for the Hitachi Power Grids kmcent2 board, based on the NXP QorIQ T1040 SoC. Signed-off-by: Valentin Longchamp Signed-off-by: Rainer Boschung Signed-off-by: Niel Fourie Cc: Holger Brunck Cc: Heiko Schocher Cc: Priyanka Jain

Re: [PATCH v2 1/1] efi_selftest: provide initrddump test tool

2021-01-19 Thread Ilias Apalodimas
On Tue, Jan 19, 2021 at 06:47:27PM +0100, Heinrich Schuchardt wrote: > Provide an UEFI application to save the initial RAM disk provided by U-Boot > via the Load File2 protocol. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > add a load command display CRC32 and length of initrd > ---

Re: [PATCH 3/3] efi_loader: setting boot device

2021-01-19 Thread Heinrich Schuchardt
On 1/19/21 7:06 PM, Simon Glass wrote: Hi Heinrich, On Tue, 12 Jan 2021 at 12:58, Heinrich Schuchardt wrote: Up to now the bootefi command used the last file loaded to determine the boot partition. This has led to errors when the fdt had been loaded from another partition after the EFI

Re: [PATCH v2] env: Remove all dependencies for SYS_REDUNDAND_ENVIRONMENT

2021-01-19 Thread Tom Rini
On Mon, Jan 18, 2021 at 09:11:26AM +0100, Michal Simek wrote: > CONFIG_SYS_REDUNDAND_ENVIRONMENT is changing in env_internal.h how u-boot > works with variables. struct environment_s has one byte flags property > which also affects ENV_SIZE macro. > > I have reached the case where

Re: CRASH caused by: [PATCH 06/10] setexpr: Add some tests for buffer overflow and backref

2021-01-19 Thread Tom Rini
On Tue, Jan 19, 2021 at 11:06:18AM -0700, Simon Glass wrote: > Hi Heinrich, > > On Sun, 17 Jan 2021 at 15:52, Heinrich Schuchardt wrote: > > > > On 11/1/20 10:15 PM, Simon Glass wrote: > > > Add tests to check for buffer overflow using simple replacement as well > > > as back references. At

Re: [NXP-IMX] please pull nxp-imx-2021-1-16

2021-01-19 Thread Tom Rini
On Sat, Jan 16, 2021 at 07:18:17AM +, Peng Fan wrote: > Hi Stefano, > > Please pull nxp-imx-2021-1-16 > --- > nandbcb update/fix > sync i.MX8M dts from Linux kernel > add i.MX8MN LPDDR4 evk board > eth support for i.MX8MP evk > ddr fix for i.MX8M >

Re: [PATCH 0/2] Raspberry Pi 4 PCIe handover

2021-01-19 Thread Peter Robinson
On Thu, Jan 14, 2021 at 3:49 PM Nicolas Saenz Julienne wrote: > > It's important for u-boot to properly reset RPi4's PCIe controller in > order for Linux to run the board's USB firmware load rountines. For the series: Tested-by: Peter Robinson > --- > > Nicolas Saenz Julienne (2): > usb:

[PATCH 1/1] efi_selftest: use CRLF as line endings in dtbdump

2021-01-19 Thread Heinrich Schuchardt
EFI applications must use CR LF as line endings. Provide a print() function to reduce code size. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/dtbdump.c | 94 +- 1 file changed, 52 insertions(+), 42 deletions(-) diff --git

[PATCH v2 1/2] efi_loader: move load options to new module

2021-01-19 Thread Heinrich Schuchardt
Move all load options related functions to a new module. So that they can be compiled independently. Signed-off-by: Heinrich Schuchardt --- v2: move stuff from patch 2 to patch 1 correct copyright notice --- lib/efi_loader/Makefile | 1 + lib/efi_loader/efi_bootmgr.c

[PATCH v2 2/2] efi_loader: make the UEFI boot manager configurable

2021-01-19 Thread Heinrich Schuchardt
Some boards are very tight on the binary size. Booting via UEFI is possible without using the boot manager. Provide a configuration option to make the boot manager available. Signed-off-by: Heinrich Schuchardt --- v2: move stuff from patch 2 to patch 1 --- cmd/bootefi.c | 13

[PATCH v2 0/2] efi_loader: make the UEFI boot manager configurable

2021-01-19 Thread Heinrich Schuchardt
Some boards are very tight on the binary size. Booting via UEFI is possible without using the boot manager. Provide a configuration option to make the boot manager available. v2: Some stuff belonging into the first patch were in the second patch Correct copyright notice in

Re: [PATCH 1/3] test: inconsistent bootm tests

2021-01-19 Thread Simon Glass
On Sun, 17 Jan 2021 at 16:22, Heinrich Schuchardt wrote: > > Excluding ut bootm in test/cmd_ut.c but compiling test/bootm.c results in > failure of the Python test invoking the C unit tests as observed on > sipeed_riscv_smode_defconfig: > > FAILED test/py/tests/test_ut.py::test_ut[ut_bootm_nop] >

Re: [PATCH 3/3] doc: move test/py/README.md to HTML documentation

2021-01-19 Thread Simon Glass
On Mon, 18 Jan 2021 at 12:29, Heinrich Schuchardt wrote: > > Convert test/py/README.md to restructured text and add it to the generated > HTML documentation. > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/index.rst | 1 + > doc/develop/py_testing.rst | 426

Re: [PATCH] dm: uclass: allow phandle < -1 with u32 type

2021-01-19 Thread Simon Glass
Hi Jianqun, On Thu, 14 Jan 2021 at 19:21, Jianqun Xu wrote: > > First, uclass try to get device node phandle by calling > dev_read_u32_default, which always return the third argument def, the > function codes as following: > > ofnode_read_u32_default(ofnode, *propname, u32 def) >

Re: [PATCH] Makefile: Do not call useless command 'true'

2021-01-19 Thread Simon Glass
Hi Pali, On Fri, 15 Jan 2021 at 17:21, Pali Rohár wrote: > > Hello! Could you please review this patch? > > On Wednesday 04 November 2020 15:33:44 Pali Rohár wrote: > > Macro 'cmd_objcopy_uboot' currently does not work with passed empty command > > expanded from 'cmd_static_rela' and therefore

Re: [PATCH 2/3] test: inconsistent string tests

2021-01-19 Thread Simon Glass
On Sun, 17 Jan 2021 at 16:22, Heinrich Schuchardt wrote: > > Excluding ut str in test/cmd_ut.c but compiling test/str_ut.c results in > failure of the Python test invoking the C unit tests as observed on > sipeed_riscv_smode_defconfig: > > FAILED test/py/tests/test_ut.py::test_ut[ut_str_upper] >

Re: [PATCH] Makefile: Do not call useless command 'true'

2021-01-19 Thread Pali Rohár
On Tuesday 19 January 2021 11:06:12 Simon Glass wrote: > Hi Pali, > > On Fri, 15 Jan 2021 at 17:21, Pali Rohár wrote: > > > > Hello! Could you please review this patch? > > > > On Wednesday 04 November 2020 15:33:44 Pali Rohár wrote: > > > Macro 'cmd_objcopy_uboot' currently does not work with

[PATCH] test: test_ofplatdata: Mark as sandbox specific

2021-01-19 Thread Tom Rini
This test checks for output specific to the sandbox device tree, mark it as sandbox specific. Signed-off-by: Tom Rini --- test/py/tests/test_ofplatdata.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/tests/test_ofplatdata.py b/test/py/tests/test_ofplatdata.py index

[PATCH v2 1/1] efi_selftest: provide initrddump test tool

2021-01-19 Thread Heinrich Schuchardt
Provide an UEFI application to save the initial RAM disk provided by U-Boot via the Load File2 protocol. Signed-off-by: Heinrich Schuchardt --- v2: add a load command display CRC32 and length of initrd --- lib/efi_selftest/Makefile | 6 +

Re: [RFC PATCH] common: board_f: add print_archinfo to display arch information

2021-01-19 Thread Simon Glass
Hi Jaehoon, On Sun, 17 Jan 2021 at 15:10, Jaehoon Chung wrote: > > Hi Tom, > > On 1/16/21 3:11 AM, Tom Rini wrote: > > On Fri, Jan 15, 2021 at 01:46:54PM +0900, Jaehoon Chung wrote: > > > >> Current U-boot doesn't display a message about which architecture is > >> used. So Developer is difficult

Re: [PATCH v2 2/2] pci: Add Rockchip dwc based PCIe controller driver

2021-01-19 Thread Simon Glass
On Fri, 15 Jan 2021 at 03:01, Shawn Lin wrote: > > Add Rockchip dwc based PCIe controller driver for rk356x platform. > Driver support Gen3 by operating as a Root complex. > > Signed-off-by: Shawn Lin > > --- > > Changes in v2: > - reorder the header file > - add more comment > - use

Re: [PATCH 2/2] pci: Add Rockchip dwc based PCIe controller driver【请注意,邮件由s...@google.com代发】

2021-01-19 Thread Simon Glass
Hi Shawn, On Fri, 15 Jan 2021 at 02:15, Shawn Lin wrote: > > Hi Simon > > Thanks you for reviewing it. > > 在 2021/1/14 23:42, Simon Glass 写道: > > Hi Shawn, > > > > On Thu, 14 Jan 2021 at 01:15, Shawn Lin wrote: > >> > > 8<-- > > >> + > >> +static int rockchip_pcie_init_port(struct

[PATCH 1/1] doc: document sbi command

2021-01-19 Thread Heinrich Schuchardt
Add a man-page for the sbi command. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + doc/usage/index.rst | 1 + doc/usage/sbi.rst | 49 + 3 files changed, 51 insertions(+) create mode 100644 doc/usage/sbi.rst diff --git

[PATCH 1/1] cmd: add more implementation IDs to sbi command

2021-01-19 Thread Heinrich Schuchardt
Additional SBI implementation IDs have been added to the upcoming next version of the SBI specification. https://github.com/riscv/riscv-sbi-doc/blob/master/riscv-sbi.adoc Signed-off-by: Heinrich Schuchardt --- cmd/riscv/sbi.c | 37 + 1 file changed, 21

[PATCH v2 3/5] drivers: net: Add Felix DSA switch driver

2021-01-19 Thread Claudiu Manoil
From: Alex Marginean This driver is used for the Ethernet switch integrated into LS1028A NXP. Felix on LS1028A has 4 front panel ports and two internal ports, I/O to/from the switch is done through an ENETC Ethernet interface. The 4 front panel ports are available as Ethernet interfaces and can

[PATCH v2 4/5] arm: dts: ls1028a: Add Ethernet switch node and dependencies

2021-01-19 Thread Claudiu Manoil
From: Alex Marginean The definition follows the DSA binding in kernel and describes the switch, its ports and PHYs. The switch node has the same structure as in Linux and this patch enables it (and relevant ports) for the LS1028A RDB board. ENETC PF6 is the 2nd Eth controller linked to the

[PATCH v2 5/5] configs: ls1028a: Enable the Ethernet switch driver in defconfig

2021-01-19 Thread Claudiu Manoil
From: Alex Marginean The switch driver for LS1028A Ethernet switch is now compiled in for both LS1028A boards. Signed-off-by: Alex Marginean Signed-off-by: Claudiu Manoil --- v2: none configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 2 ++ configs/ls1028aqds_tfa_defconfig | 2 ++

Issue Booting on NanoPC-T4

2021-01-19 Thread Travis Whitton
Hello, I'm running into problems trying to get the official upstream nanopc-t4-rk3399_defconfig to work on my NanoPC-T4. I'm building u-boot on Ubuntu/Focal (docker container) as follows: # cd /root # apt-get update # apt-get install build-essential flex bison gcc-aarch64-linux-gnu git

Re: [PATCH v3 2/2] net: Use NDRNG device in srand_mac()

2021-01-19 Thread Tom Rini
On Fri, Dec 18, 2020 at 10:28:04AM +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > When calling srand_mac we use a weak seed dependent on the > mac address. If present, use a RNG device instead to incerase entropy. > > Signed-off-by: Matthias Brugger > Reviewed-by: Torsten

Re: [PATCH] net: tftp: Fix incorrect tftp_next_ack on no OACK

2021-01-19 Thread Tom Rini
On Fri, Nov 27, 2020 at 09:45:56PM +, Harm Berntsen wrote: > When the tftp server did not send any OACK, the tftp_next_ack variable > was not set to the correct value . As the server was transmitting > blocks we generated a lot of 'Received unexpected block: $n, expected > $n+1' error

Re: [PATCH v1] net: eth-uclass: Change uclass driver name to ethernet

2021-01-19 Thread Tom Rini
On Fri, Jan 08, 2021 at 10:53:05AM +0800, David Wu wrote: > dev_read_alias_seq() used uc_drv->name compared to alias > stem string, Ethernet's alias stem uses "ethernet", which > does not match the eth-uclass driver name "eth", can not > get the correct index of ethernet alias namer. So it seems

Re: [PATCH] net: ks8851: Reset internal RXFC count on bad packet

2021-01-19 Thread Tom Rini
On Wed, Jan 06, 2021 at 03:16:01PM +0100, Marek Vasut wrote: > A sporadic condition occurs when the "bad packet" error is triggered > repeatedly, which results in "bad packet" messages scrolling on the > console during transfer. To avoid triggering this, reset the internal > RXFC count on the

Re: [PATCH V3] net: dwc_eth_qos: Pad descriptors to cacheline size

2021-01-19 Thread Tom Rini
On Thu, Jan 07, 2021 at 11:12:16AM +0100, Marek Vasut wrote: > The DWMAC4 IP has the possibility to skip up to 7 AXI bus width size words > after the descriptor. Use this to pad the descriptors to cacheline size and > remove the need for noncached memory altogether. Moreover, this lets Tegra >

Contributor meeting notes 19-Jan-21

2021-01-19 Thread Simon Glass
Hi, Thank you for attending! Full notes at [1] Tuesday 19 January 2021 Present: Daniel Schwierzeck, Heinrich Schuchardt, Michal Simek, Sean Anderson, Simon Glass, Walter Lozano Notes: [all] Introductions [all] Timing of call - Current time is the best across US, Europe, India. But not any

Re: IMX8MM SD UHS support

2021-01-19 Thread Tim Harvey
On Mon, Jan 18, 2021 at 11:38 AM ZHIZHIKIN Andrey wrote: > > Hello Tim, > > Sorry it took me quite some time to get this sorted out, but I believe I was > able to identify an offending commit that is preventing the USDHC to switch > to higher speed modes. > > It is in fact b5874b552f ("mmc:

Re: [v2019.04-aspeed, v1 1/1] net: ftgmac100: Read and retain MAC address

2021-01-19 Thread Tom Rini
On Thu, Dec 10, 2020 at 06:11:09PM -0500, Hongwei Zhang wrote: > Read and retain MAC address across flash and QEMU support. > > Signed-off-by: Hongwei Zhang Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 1/2] lib: uuid: use RNG device if present

2021-01-19 Thread Tom Rini
On Fri, Dec 18, 2020 at 10:28:03AM +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > When calculating a random UUID we use a weak seed. > Use a RNG device if present to increase entropy. > > Signed-off-by: Matthias Brugger > Reviewed-by: Torsten Duwe Applied to

Re: [PATCH] net: eth-uclass: avoid running start() twice without stop()

2021-01-19 Thread Tom Rini
On Wed, Nov 04, 2020 at 02:45:14PM +0100, Matthias Schiffer wrote: > Running the start() handler twice without a stop() inbetween completely > breaks communication for some ethernet drivers like fec_mxc. > > eth_halt() is called before each eth_init(). Due to the switch to > eth_is_active() in

Re: [PATCH] net: Do not respond to ICMP_ECHO_REQUEST if we do not have an IP address

2021-01-19 Thread Tom Rini
On Sat, Nov 14, 2020 at 10:12:47PM -0500, David Rivshin wrote: > From: David Rivshin > > While doing DHCP the interface IP is set to 0.0.0.0. This causes the > check in net.c on dst_ip to be effectively skipped, and all IP datagrams > are accepted up the IP stack. In the case of an

Re: [PATCH] net: e1000: implement eth_write_hwaddr for DM_ETH

2021-01-19 Thread Tom Rini
On Wed, Nov 04, 2020 at 05:26:01PM +0100, Sebastian Reichel wrote: > From: Ian Ray > > Implement programming MAC address to the hardware also for device model > configuration. > > Fixes: b565b18a294f ("board: ge: bx50v3: Enable DM for PCI and ethernet") > Signed-off-by: Ian Ray >

Re: [PATCH] net: eth_legacy - fix build CMD_PCAP

2021-01-19 Thread Tom Rini
On Fri, Dec 04, 2020 at 08:59:58PM +0100, Jorge Ramirez-Ortiz wrote: > Fix typo which would cause a build error. > > Fixes: 3eaac6307df ("net: introduce packet capture support") > > Signed-off-by: Jorge Ramirez-Ortiz Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH v1] net: eth-uclass: Change uclass driver name to ethernet

2021-01-19 Thread Tom Rini
On Tue, Jan 19, 2021 at 03:01:38PM -0500, Tom Rini wrote: > On Fri, Jan 08, 2021 at 10:53:05AM +0800, David Wu wrote: > > > dev_read_alias_seq() used uc_drv->name compared to alias > > stem string, Ethernet's alias stem uses "ethernet", which > > does not match the eth-uclass driver name "eth",

Re: IMX8MM SD UHS support

2021-01-19 Thread Adam Ford
On Tue, Jan 19, 2021 at 2:47 PM ZHIZHIKIN Andrey wrote: > > Hello Tim, > > > -Original Message- > > From: Tim Harvey > > Sent: Tuesday, January 19, 2021 6:32 PM > > To: ZHIZHIKIN Andrey > > Cc: haibo.c...@nxp.com; Adam Ford ; Fabio Estevam > > ; Peng Fan ; u-boot > b...@lists.denx.de>;

[PATCH] common: Kconfig.boot: Add FIT_PRINT config option

2021-01-19 Thread Ravik Hasija
Config allows to disable printing contents of fitImage to optimize boottime. Signed-off-by: Ravik Hasija --- common/Kconfig.boot | 6 ++ common/image-fit.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/common/Kconfig.boot b/common/Kconfig.boot index

Re: [PATCH v2 3/5] drivers: net: Add Felix DSA switch driver

2021-01-19 Thread Michael Walle
Hi Claudiu, Am 2021-01-19 18:01, schrieb Claudiu Manoil: From: Alex Marginean This driver is used for the Ethernet switch integrated into LS1028A NXP. Felix on LS1028A has 4 front panel ports and two internal ports, I/O to/from the switch is done through an ENETC Ethernet interface. The 4

Re: Contributor meeting notes 19-Jan-21

2021-01-19 Thread Simon Glass
Hi Marek, On Tue, 19 Jan 2021 at 13:27, Marek Vasut wrote: > > On 1/19/21 7:54 PM, Simon Glass wrote: > > Hi, > > Hi, > > > Thank you for attending! > > > > Full notes at [1] > > > > Tuesday 19 January 2021 > > > > Present: Daniel Schwierzeck, Heinrich Schuchardt, Michal Simek, Sean > >

Re: Contributor meeting notes 19-Jan-21

2021-01-19 Thread Marek Vasut
On 1/19/21 7:54 PM, Simon Glass wrote: Hi, Hi, Thank you for attending! Full notes at [1] Tuesday 19 January 2021 Present: Daniel Schwierzeck, Heinrich Schuchardt, Michal Simek, Sean Anderson, Simon Glass, Walter Lozano Notes: [all] Introductions [all] Timing of call - Current time is

  1   2   >