[U-Boot] [Patch v4 5/8] armv8: ls1046a: Enable DDR erratum for ls1046a

2016-09-05 Thread Gong Qianyu
From: Shengzhou Liu Enable ERRATUM_A008511, ERRATUM_A009801, ERRATUM_A009803, ERRATUM_A009942, ERRATUM_A010165 Signed-off-by: Shengzhou Liu Signed-off-by: Gong Qianyu --- v3-v4: - No change. v2: - Add ERRATUM_A008511.

Re: [U-Boot] [PATCH] treewide: compress lines for immediate return

2016-09-05 Thread Heiko Schocher
Hello Masahiro, Am 02.09.2016 um 12:36 schrieb Masahiro Yamada: -ret = expression; -if (ret) -return ret; -return 0; +return expression; Signed-off-by: Masahiro Yamada --- [...] fs/ubifs/budget.c | 7

Re: [U-Boot] [PATCH] armv8: Remove the codes about switching to EL1 before jumping to kernel

2016-09-05 Thread Huan Wang
> > On 08/29/2016 11:29 AM, Huan Wang wrote: > > >> On 18.07.16 05:24, Huan Wang wrote: > > >>> Hi, Alex, > > >>> > > >>> > > >>> > > >>>As there is strong objection to remove the codes > > >>> about switching to EL1, I think we have to remain it, do you agree? > > >> I agree, yes.

[U-Boot] [Patch v4 6/8] armv8: ls1046a: disable SATA ECC in DCSR

2016-09-05 Thread Gong Qianyu
From: Shaohui Xie This is a workaround to fix SATA CRC error. Once the root cause is found the ECC disabling will be removed. Signed-off-by: Shaohui Xie Signed-off-by: Gong Qianyu --- v3-v4: - No change. v2: - Use values

[U-Boot] [Patch v4 3/8] Export memset for standalone AQ FW load apps

2016-09-05 Thread Gong Qianyu
From: Shaohui Xie The 'commit 95279315076c ("board/ls2085rdb: Export functions for standalone AQ FW load apps")' mentioned memset was exported but it was not, this patch exports the memset. Signed-off-by: Shaohui Xie Signed-off-by: Gong Qianyu

Re: [U-Boot] ZynqMP breakage

2016-09-05 Thread Alexander Graf
On 08/19/2016 08:45 AM, Michal Simek wrote: On 16.8.2016 20:39, Alexander Graf wrote: Hi Michal, I just tried to run the latest u-boot master + a few patches to implement generic PSCI RTS support on zynqmp and got this: e U-Boot 2016.09-rc1-00453-ga0592f1 (Aug 16 2016 - 20:27:40 +0200)

[U-Boot] [Patch v4 1/8] ddr: fsl: fix a compile issue

2016-09-05 Thread Gong Qianyu
From: Shaohui Xie When CONFIG_SYS_FSL_ERRATUM_A009801 is defined but CONFIG_SYS_FSL_ERRATUM_A008511 not defined, there is compile error that temp32 undeclared, this patch fixes it. Signed-off-by: Shaohui Xie Signed-off-by: Gong Qianyu

[U-Boot] [Patch v4 4/8] armv8: fsl-layerscape: add define CONFIG_STANDALONE_LOAD_ADDR for standalone app

2016-09-05 Thread Gong Qianyu
From: Shaohui Xie The CONFIG_STANDALONE_LOAD_ADDR is set to 0x8030 by default. Signed-off-by: Shaohui Xie Signed-off-by: Gong Qianyu --- v2-v4: - No change. arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 ++ 1 file

[U-Boot] [Patch v4 8/8] armv8: ls1046aqds: Add LS1046AQDS board support

2016-09-05 Thread Gong Qianyu
From: Shaohui Xie LS1046AQDS Specification: - Memory subsystem: * 8GByte DDR4 SDRAM (64bit bus) * 128 Mbyte NOR flash single-chip memory * 512 Mbyte NAND flash * 64 Mbyte high-speed SPI flash * SD connector to interface with the SD memory card

[U-Boot] [Patch v4 7/8] armv8: ls1046ardb: Add LS1046ARDB board support

2016-09-05 Thread Gong Qianyu
From: Mingkai Hu LS1046ARDB Specification: - Memory subsystem: * 8GByte DDR4 SDRAM (64bit bus) * 512 Mbyte NAND flash * Two 64 Mbyte high-speed SPI flash * SD connector to interface with the SD memory card * On-board 4G eMMC Ethernet: * Two XFI

[U-Boot] [Patch v4 0/8] Add LS1046ARDB board support

2016-09-05 Thread Gong Qianyu
Hi all, This is version 4 patchset mainly to add support for both LS1046ARDB board. It should be based on two DDR patches to work well on LS1046ARDB or LS1046AQDS. The two patches are: http://patchwork.ozlabs.org/patch/663534/ http://patchwork.ozlabs.org/patch/663535/ PCIe and USB are not

[U-Boot] [Patch v4 2/8] armv8: fsl-layerscape: Increase L2 Data RAM latency and L2 Tag RAM latency

2016-09-05 Thread Gong Qianyu
From: Mingkai Hu According to design specification, the L2 cache operates at the same frequency as the A72 CPUs in the cluster with a 3-cycle latency, so increase the L2 Data RAM and Tag RAM latency to 3 cycles, or else, will run into different call trace issues.

[U-Boot] Passing squashfs of unknown size to linux

2016-09-05 Thread kkaras
Hi, I would like to pass a rootfs.squashfs image to linux with the initrd in the bootargs parameter, but I can only get it to work by including the size of the image (e.g. ",21M"). Is there a way to make this work without hardcoding the size of the image in u-boot? This is my current

[U-Boot] usb start on a specific instance

2016-09-05 Thread Nicolas le bayon
Hi, Would it be possible to execute an "usb start" on one single instance in order to save boot time. Indeed, regarding the different USB ports on my platform, it takes a long time to scan all the instances. Because my boot system will always be on a specific instance, would it be possible to

[U-Boot] [PATCH] x86: conga-qeval20-qa3: Add README to explain the console UART options

2016-09-05 Thread Stefan Roese
This patch adds a small README to explain the 2 defconfig files and its usage for the different console UART options. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Simon Glass --- board/congatec/conga-qeval20-qa3-e3845/README | 23

[U-Boot] [PATCHv5 3/4] ARM: tegra124: Add an option to disable CoreSight

2016-09-05 Thread Julian Scheel
From: Alban Bedel When running on a SoC with a secure bootloader CoreSight isn't allowed, so add an option to disable the CoreSight init. Change-Id: I957b45d1219759bda1c126cfd66a333905b3 Signed-off-by: Alban Bedel Signed-off-by:

[U-Boot] [PATCH v2 3/7] usb: squash lines for immediate return

2016-09-05 Thread Masahiro Yamada
ehci_*_remove() is just a wrapper of ehci_deregister(). xhci_fsl_remove() can be simpler as well. Signed-off-by: Masahiro Yamada --- drivers/usb/host/ehci-atmel.c | 8 +--- drivers/usb/host/ehci-fsl.c | 8 +--- drivers/usb/host/ehci-marvell.c | 8

[U-Boot] [PATCH v2 4/7] x86: squash lines for immediate return

2016-09-05 Thread Masahiro Yamada
arch_cpu_init() can be simpler by this refactoring. Signed-off-by: Masahiro Yamada --- arch/x86/cpu/baytrail/valleyview.c | 8 +--- arch/x86/cpu/ivybridge/ivybridge.c | 8 +--- arch/x86/cpu/qemu/qemu.c | 8 +--- arch/x86/cpu/queensbay/tnc.c

[U-Boot] [PATCH 02/11] arm: socfpga: rstmgr: Add Reset Manager for Stratix 10

2016-09-05 Thread Chin Liang See
Add Reset Manager registers structure for Stratix 10 SoC Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/reset_manager.h | 32

Re: [U-Boot] [PATCH 01/11] arm: socfpga: stratix10: Add SOCFPGA Stratix10 base address

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > Add base address header file for Stratix10 SoC > > Signed-off-by: Chin Liang See > Cc: Marek Vasut > Cc: Dinh Nguyen > Cc: Ley Foon Tan Acked-by: Marek Vasut

Re: [U-Boot] [PATCH v2 2/7] video: squash lines for immediate return

2016-09-05 Thread Anatolij Gustschin
On Mon, 5 Sep 2016 22:38:38 +0900 Masahiro Yamada yamada.masah...@socionext.com wrote: > ptn3460_attach() and display_update_config_from_edid() will become > a simple wrapper function. > > For vidconsole_post_probe(), it is common coding style to let a > probe method return the value of a

[U-Boot] [PATCH v2 0/7] Clean-up: squash lines for immediate return

2016-09-05 Thread Masahiro Yamada
ret = [expression]; if (ret) return ret; return 0; ... is equivalent to: return [expression]; First, I sent a tree-wide patch: http://patchwork.ozlabs.org/patch/665199/ In the review of v1, Stephen suggested that twee-wide conversion with something like Coccinelle can break code

[U-Boot] [PATCH v2 6/7] power: squash lines for immediate return

2016-09-05 Thread Masahiro Yamada
Currently, this function is just a wrapper of pmic_bus_init(). Signed-off-by: Masahiro Yamada --- drivers/power/axp809.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/power/axp809.c b/drivers/power/axp809.c index

[U-Boot] [PATCH 09/11] arm: socfpga: stratix10: Add board folder for Stratix 10 socdk

2016-09-05 Thread Chin Liang See
Add board folder for Stratix 10 SoC development kit Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- board/altera/stratix10-socdk/MAINTAINERS | 8

[U-Boot] [PATCH v2 2/7] video: squash lines for immediate return

2016-09-05 Thread Masahiro Yamada
ptn3460_attach() and display_update_config_from_edid() will become a simple wrapper function. For vidconsole_post_probe(), it is common coding style to let a probe method return the value of a resister function. Signed-off-by: Masahiro Yamada ---

[U-Boot] [PATCH 00/11] Add support for Stratix 10 SoC

2016-09-05 Thread Chin Liang See
Add support for Stratix 10 SoC which is ARM64 based. This series of patches are tested with Stratix 10 SOC Virtual Platform that is available today. Chin Liang See (11): arm: socfpga: stratix10: Add SOCFPGA Stratix10 base address arm: socfpga: rstmgr: Add Reset Manager for Stratix 10 arm:

[U-Boot] [PATCH 06/11] arm: socfpga: misc: Segregate the misc.c for Stratix 10

2016-09-05 Thread Chin Liang See
Segregate the misc.c to support both GEN5 SoC and Stratix 10 SoC. Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/misc.c | 12 1 file

[U-Boot] [PATCH 08/11] arm: socfpga: mmu: Add memory map layout for Stratix 10 SoC

2016-09-05 Thread Chin Liang See
Add memory map layout for Stratix 10 SoC Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile| 2 ++ arch/arm/mach-socfpga/mmu-arm64.c | 71

Re: [U-Boot] [PATCH 06/11] arm: socfpga: misc: Segregate the misc.c for Stratix 10

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > Segregate the misc.c to support both GEN5 SoC and Stratix 10 SoC. > > Signed-off-by: Chin Liang See > Cc: Marek Vasut > Cc: Dinh Nguyen > Cc: Ley Foon Tan > --- >

Re: [U-Boot] [PATCH 11/11] arm: socfpga: Add support for Stratix 10 SoC dev kit

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > Add support for Stratix 10 SoC development kit > > Signed-off-by: Chin Liang See > Cc: Marek Vasut > Cc: Dinh Nguyen > Cc: Ley Foon Tan > --- > arch/arm/Kconfig

[U-Boot] [PATCHv5 0/4] Add Avionic Design Meerkat/Tegra K1 support

2016-09-05 Thread Julian Scheel
Hi Tom et al, please find the updated patch series to add support for the Avionic Design Meerkat module and the kein baseboard. Since v4 this patch series has been rebased to tegra next branch. There have been some configuration additions on top of that. We'd be happy if this could finally be

Re: [U-Boot] ext4 delete file fails when ext4 extents enabled in filesystem

2016-09-05 Thread Brüns , Stefan
On Freitag, 2. September 2016 14:51:59 CEST Thomas Schaefer wrote: > > -Ursprüngliche Nachricht- > > Von: Brüns, Stefan [mailto:stefan.bru...@rwth-aachen.de] > > Gesendet: Freitag, 2. September 2016 13:43 > > An: Thomas Schaefer > > Cc: u-boot@lists.denx.de; Michael Walle > > Betreff: Re:

Re: [U-Boot] [PATCH 03/11] arm: socfpga: rstmgr: Segregate the Reset Manager for Stratix 10

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > Segregate the Reset Manager to support both GEN5 SoC and > Stratix 10 SoC. > > Signed-off-by: Chin Liang See > Cc: Marek Vasut > Cc: Dinh Nguyen > Cc: Ley Foon Tan

[U-Boot] [PATCHv5 2/4] power: as3722: Allow using on any i2c bus with any address

2016-09-05 Thread Julian Scheel
From: Alban Bedel The init simply hardcoded the i2c bus and address to those used on jetson. Extend the init function to take the bus number and device address as parameter. As only jetson is using this code for now just fix this single use of the function.

[U-Boot] [PATCHv5 1/4] Revert "tegra: Add support for setting up a as3722 PMIC"

2016-09-05 Thread Julian Scheel
This reverts commit 346451b5888c4663bccef4c5203357319aa41f99. The pmic shall be initialised in board specific code, as it is done for jetson-tk1 and meerkat. It can't be assumed that all boards have the pmic on the same i2c bus. Change-Id: I02d279b63ca72e143fadd85d4df68a929a658a12 Signed-off-by:

[U-Boot] [PATCHv5 4/4] Add support the Avionic Design Meerkat COM and Kein Baseboard

2016-09-05 Thread Julian Scheel
Add support for platforms based on the Meerkat COM module. Includes support for the minimal reference platform called Kein Baseboard, which in fact is sufficient to run most existing Meerkat carriers. Change-Id: I00e74a42c33afa782bb6109aab34d91e6f16fbb0 Signed-off-by: Julian Scheel

[U-Boot] [PATCH v2 7/7] libfdt: simplify fdt_del_mem_rsv()

2016-09-05 Thread Masahiro Yamada
The variable "err" is unneeded. [ Backport from Device Tree Compiler commit: 36fd7331fb11276c09a6affc0d8cd4977f2fe100 ] Signed-off-by: Masahiro Yamada Signed-off-by: David Gibson --- lib/libfdt/fdt_rw.c | 6 +- 1 file changed,

[U-Boot] [PATCH v2 1/7] mmc: squash lines for immediate return

2016-09-05 Thread Masahiro Yamada
These functions can be much simpler by squashing lines for immediate return. For *_bind() callbacks, they will be a simple wrapper function of an upper-level bind API. For mmc_set_{boot_bus_width,part_conf}, they will be a wrapper of mmc_switch(). Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH v2 5/7] samsung: squash lines for immediate return

2016-09-05 Thread Masahiro Yamada
Currently, this function is just a wrapper of pmic_init(). Signed-off-by: Masahiro Yamada --- board/samsung/goni/goni.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index

[U-Boot] [PATCH 04/11] arm: socfpga: clkmgr: Segregate the Clock Manager for Stratix 10

2016-09-05 Thread Chin Liang See
Segregate the Clock Manager to support both GEN5 SoC and Stratix 10 SoC. Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/clock_manager.c | 8 1

[U-Boot] [PATCH 03/11] arm: socfpga: rstmgr: Segregate the Reset Manager for Stratix 10

2016-09-05 Thread Chin Liang See
Segregate the Reset Manager to support both GEN5 SoC and Stratix 10 SoC. Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/reset_manager.c | 12

[U-Boot] [PATCH 11/11] arm: socfpga: Add support for Stratix 10 SoC dev kit

2016-09-05 Thread Chin Liang See
Add support for Stratix 10 SoC development kit Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/Kconfig | 7 +-

[U-Boot] [PATCH 10/11] arm: dts: socfpga: Add dts for Stratix 10 socdk

2016-09-05 Thread Chin Liang See
Add device tree for Stratix 10 SoC development kit Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/dts/Makefile| 3 +-

Re: [U-Boot] [PATCH 10/11] arm: dts: socfpga: Add dts for Stratix 10 socdk

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > Add device tree for Stratix 10 SoC development kit > > Signed-off-by: Chin Liang See > Cc: Marek Vasut > Cc: Dinh Nguyen > Cc: Ley Foon Tan Acked-by: Marek Vasut

[U-Boot] [PATCH 01/11] arm: socfpga: stratix10: Add SOCFPGA Stratix10 base address

2016-09-05 Thread Chin Liang See
Add base address header file for Stratix10 SoC Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 48 ++

Re: [U-Boot] [PATCH v3 13/13] ext4: initialize full inode for inodes bigger than 128 bytes

2016-09-05 Thread Stefan Bruens
On Sonntag, 28. August 2016 22:42:38 CEST you wrote: > Make sure the the extra_isize field (offset 128) is initialized to 0 to > mark any extra data as invalid. > > Signed-off-by: Stefan Brüns > --- > fs/ext4/ext4_write.c | 12 +--- > 1 file changed, 5

Re: [U-Boot] [PATCH v3 6/7] board: evb-rk3399: enable usb 2.0 host vbus power on board_init

2016-09-05 Thread Simon Glass
On 23 August 2016 at 22:02, Kever Yang wrote: > rk3399 using one gpio control signal for two usb 2.0 host port, > it's better to enable the power in board file instead of in usb driver. > > Signed-off-by: Kever Yang > Acked-by: Simon Glass

Re: [U-Boot] [PATCH v3 1/7] usb: xhci-rockchip: add rockchip dwc3 controller driver

2016-09-05 Thread Simon Glass
On 25 August 2016 at 06:04, Simon Glass wrote: > On 23 August 2016 at 22:02, Kever Yang wrote: >> From: MengDongyang >> >> This patch add support for rockchip dwc3 controller, which corresponding >> to the two type-C port

Re: [U-Boot] [PATCH v3 0/7] rk3399: enable host controllers

2016-09-05 Thread Simon Glass
Hi, On 23 August 2016 at 22:02, Kever Yang wrote: > > rk3399 evb has two typec port(dwc3 controller) which support dual role > device with separate GPIO for vbus control and two USB 2.0 host port > (generic EHCI controller) with one GPIO for vbus control. > > This

Re: [U-Boot] [RFC PATCH] rockchip: rk3288: skip lowlevel_init process

2016-09-05 Thread Simon Glass
On 27 August 2016 at 10:06, Simon Glass wrote: > On 27 August 2016 at 07:53, Ziyuan Xu wrote: >> lowlevel_init() is never needed for rk3288, so drop it. >> >> Signed-off-by: Ziyuan Xu >> >> --- >> >>

Re: [U-Boot] [PATCH v3 7/7] config: evb-rk3399: enable fixed regulator

2016-09-05 Thread Simon Glass
On 23 August 2016 at 22:02, Kever Yang wrote: > This patch enable fixed regulator driver for rk3399 evb. > > Signed-off-by: Kever Yang > Acked-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: > - add Acked-by

Re: [U-Boot] [PATCH v4 1/4] rk3399: add a empty "sys_proto.h" header file

2016-09-05 Thread Simon Glass
On 31 August 2016 at 20:14, Kever Yang wrote: > driver/usb/dwc3/gadget.c need a "sys_proto.h" header file, add a > empty one to make compile success. > > Signed-off-by: Kever Yang > Acked-by: Simon Glass > --- > > Changes

Re: [U-Boot] [PATCH v3 2/7] rockchip: select DM_USB for rockchip SoC

2016-09-05 Thread Simon Glass
On 23 August 2016 at 22:02, Kever Yang wrote: > From: MengDongyang > > Select DM_USB to compatible with USB DM driver model. > > Signed-off-by: MengDongyang > Signed-off-by: Kever Yang

Re: [U-Boot] [PATCH v3 3/7] config: rk3399: add usb related configs

2016-09-05 Thread Simon Glass
On 23 August 2016 at 22:02, Kever Yang wrote: > From: MengDongyang > > This patch to enable configs for usb module > - xhci > - ehci > - usb storage > - usb net > > Signed-off-by: MengDongyang > Signed-off-by:

Re: [U-Boot] [PATCH v3 5/7] dts: rk3399-evb: add regulator-fixed for usb host vbus

2016-09-05 Thread Simon Glass
On 23 August 2016 at 22:02, Kever Yang wrote: > rk3399 evb using one gpio to enable 5V output for both USB 2.0 > host port, let's use fixed regulator for them. > > Signed-off-by: Kever Yang > Acked-by: Simon Glass > --- >

Re: [U-Boot] [PATCH v3 4/7] dts: rk3399: add dwc3_typec node for rk3399

2016-09-05 Thread Simon Glass
On 23 August 2016 at 22:02, Kever Yang wrote: > From: MengDongyang > > rk3399 has two dwc3 controller for type-C port, add the dts node > and enable them. > > Signed-off-by: MengDongyang > Signed-off-by: Kever

Re: [U-Boot] [PATCH 7/7] config: evb-rk3399: enable pwm regulator

2016-09-05 Thread Simon Glass
On 29 August 2016 at 21:02, Kever Yang wrote: > This patch enable the pwm regulator for evb-rk3399. > Please remove 'This patch' > Signed-off-by: Kever Yang > --- > > configs/evb-rk3399_defconfig | 1 + > 1 file changed, 1 insertion(+)

Re: [U-Boot] [PATCH v1] i2c: at91_i2c: Fix the wrong include file

2016-09-05 Thread Simon Glass
+Stephen On 30 August 2016 at 02:03, Wenyou Yang wrote: > Since the 'clk_client.h' doesn't exist, it should be 'clk.h'. > > Signed-off-by: Wenyou Yang > --- > > drivers/i2c/at91_i2c.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [U-Boot] [PATCH 5/7] Kconfig: rockchip: enable DM_PWM and DM_REGULATOR

2016-09-05 Thread Simon Glass
On 29 August 2016 at 21:02, Kever Yang wrote: > This patch enable DM_PWM and DM_REGULATOR on rockchip SoCs. > > Signed-off-by: Kever Yang > --- > > arch/arm/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) I think this is safe. Acked-by:

Re: [U-Boot] [PATCH] eth: asix88179: Reset device during probe with DM_ETH enabled

2016-09-05 Thread Simon Glass
Hi, On 30 August 2016 at 08:01, Nikolaus Schulz wrote: > With the ethernet driver model enabled, reset the device before reading > the MAC address, just like it's done for the non-device-model code path. > This avoids a timeout when the interface is first used.

Re: [U-Boot] [PATCH v2] watchdog: Fix Watchdog Reset while in U-Boot Prompt

2016-09-05 Thread Simon Glass
+Tom, in case this should go into the release. On 1 August 2016 at 05:49, Andreas J. Reichel wrote: > This patch fixes unwanted watchdog resets while the user enters > a command at the U-Boot prompt. > > As found on the CM-FX6 board from Compulab, when having enabled

Re: [U-Boot] [PATCH v2 21/44] Convert CONFIG_SPL_GPIO_SUPPORT to Kconfig

2016-09-05 Thread Simon Glass
Hi Masahiro, On 4 September 2016 at 20:40, Masahiro Yamada wrote: > 2016-09-02 23:35 GMT+09:00 Tom Rini : > >>> >> diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig >>> >> index c25fcf3..d4a5bc9 100644 >>> >> ---

Re: [U-Boot] [PATCH 2/5] clk: rk3288: add PWM clock get rate

2016-09-05 Thread Simon Glass
On 12 August 2016 at 11:21, Simon Glass wrote: > On 12 August 2016 at 03:57, Kever Yang wrote: >> This patch add clk_get_rate for PWM device. >> >> Signed-off-by: Kever Yang >> --- >> >> drivers/clk/rockchip/clk_rk3288.c

Re: [U-Boot] [PATCH] Increase default of CONFIG_SYS_MALLOC_F_LEN for SPL_OF_CONTROL

2016-09-05 Thread Simon Glass
On 30 August 2016 at 03:56, Stefan Roese wrote: > On 30.08.2016 11:50, Masahiro Yamada wrote: >> >> If both SPL_DM and SPL_OF_CONTROL are enabled, SPL needs to bind >> several devices, but CONFIG_SYS_MALLOC_F_LEN=0x400 is apparently >> not enough. Increase the default to 0x2000 for

Re: [U-Boot] [PATCH] net: write enetaddr down to hardware on env_callback

2016-09-05 Thread Bin Meng
Hi, On Fri, Sep 2, 2016 at 9:00 PM, Joe Hershberger wrote: > On Fri, Sep 2, 2016 at 7:48 AM, Hannes Schmelzer wrote: >> If mac-address is changed using "setenv ethaddr " command the new >> mac-adress also must be written into the responsible

[U-Boot] [PATCH v5 00/16] Fix several possible crashes/corruptions in ext4

2016-09-05 Thread Stefan Brüns
The U-Boot ext4 support has some bugs which either cause U-Boot crashes or lead to filesystem corruption. This series goes on top of the endian patch series by Michael Walle. It has been rebased against v4 of the series. The first 13 patches have already been reviewed, last 3 patches are new.

[U-Boot] [PATCH v5 09/16] ext4: After completely filled group, scan next group from the beginning

2016-09-05 Thread Stefan Brüns
The last free block of a block group may be in its middle. After it has been allocated, the next block group should be scanned from its beginning. The following command triggers the bad behaviour (on a blocksize 1024 fs): ./sandbox/u-boot -c 'i=0; host bind 0 ./disk.raw ; while test $i

[U-Boot] [PATCH v5 08/16] ext4: Do not clear zalloc'ed buffers a second time

2016-09-05 Thread Stefan Brüns
zero_buffer is never written, thus clearing it is pointless. journal_buffer is completely initialized by ext4fs_devread (or in case of failure, not used). Signed-off-by: Stefan Brüns Reviewed-by: Lukasz Majewski --- fs/ext4/ext4_common.c |

[U-Boot] [PATCH v5 11/16] ext4: Fix memory leak in case of failure

2016-09-05 Thread Stefan Brüns
temp_ptr should always be freed, even if the function is left via goto fail. Signed-off-by: Stefan Brüns Reviewed-by: Lukasz Majewski --- fs/ext4/ext4_write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v5 07/16] ext4: Only update number of of unused inodes if GDT_CSUM feature is set

2016-09-05 Thread Stefan Brüns
e2fsck warns about "Group descriptor 0 marked uninitialized without feature set." The bg_itable_unused field is only defined if FEATURE_RO_COMPAT_GDT_CSUM is set, and should be set (kept) zero otherwise. Signed-off-by: Stefan Brüns Reviewed-by: Lukasz Majewski

[U-Boot] [PATCH v5 10/16] ext4: Avoid out-of-bounds access of block bitmap

2016-09-05 Thread Stefan Brüns
If the blocksize is 1024, count is initialized with 1. Incrementing count by 8 will never match (count == fs->blksz * 8), and ptr may be incremented beyond the buffer end if the bitmap is filled. Add the startblock offset after the loop. Remove the second loop, as only the first iteration will be

[U-Boot] [PATCH] net: asix: Fix AX88772B when used with DriverModel

2016-09-05 Thread Joshua Scott
A previous patch (net: asix: fix operation without eeprom) added a two-byte shift to the packet buffer when receiving a packet on the AX88772B. This shift was not included when the driver was updated to work with DriverModel. Testing on a Marvell DB-88F6820-ACM showed that the adapter was not

Re: [U-Boot] [PATCH 1/3] rockchip: i2c: use named constant when appropriate

2016-09-05 Thread Simon Glass
On 18 August 2016 at 13:08, John Keeping wrote: > Make it clear that we are using the same value in two adjacent lines. > > Signed-off-by: John Keeping > --- > > drivers/i2c/rk_i2c.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Simon

Re: [U-Boot] [PATCH v2 2/7] video: squash lines for immediate return

2016-09-05 Thread Masahiro Yamada
2016-09-06 2:12 GMT+09:00 Anatolij Gustschin : > On Mon, 5 Sep 2016 22:38:38 +0900 > Masahiro Yamada yamada.masah...@socionext.com wrote: > >> ptn3460_attach() and display_update_config_from_edid() will become >> a simple wrapper function. >> >> For vidconsole_post_probe(), it is

Re: [U-Boot] [PATCH] rockchip: rk3288-firefly: enable boot from eMMC

2016-09-05 Thread Simon Glass
Hi, On 29 August 2016 at 21:02, 陈豪 wrote: > Hi, > > You probably did not short the clock of eMMC. > If we don't press maskrom buttons(short the clock of eMMC), SPL will > detect eMMC and try to load image from eMMC. if the eMMC is blank, it > hangs. > So if we specifies

Re: [U-Boot] ZynqMP breakage

2016-09-05 Thread Simon Glass
Hi Alex, On 5 September 2016 at 04:51, Alexander Graf wrote: > On 08/19/2016 08:45 AM, Michal Simek wrote: >> >> On 16.8.2016 20:39, Alexander Graf wrote: >>> >>> Hi Michal, >>> >>> I just tried to run the latest u-boot master + a few patches to implement >>> generic PSCI RTS

Re: [U-Boot] [PATCH 1/5] clk: rk3399: add pmucru controller support

2016-09-05 Thread Simon Glass
On 12 August 2016 at 11:21, Simon Glass wrote: > On 12 August 2016 at 03:47, Kever Yang wrote: >> pmucru is a module like cru which is a clock controller manage some PLL >> and module clocks. >> >> Signed-off-by: Kever Yang

[U-Boot] [PATCH v5 02/16] ext4: propagate error if creation of directory entry fails

2016-09-05 Thread Stefan Brüns
In case the dir entry creation failed, ext4fs_write would later overwrite a random inode, as inodeno was never initialized. Signed-off-by: Stefan Brüns Reviewed-by: Lukasz Majewski --- fs/ext4/ext4_common.c | 12 ++--

[U-Boot] [PATCH v5 01/16] ext4: fix possible crash on directory traversal, ignore deleted entries

2016-09-05 Thread Stefan Brüns
The following command triggers a segfault in search_dir: ./sandbox/u-boot -c 'host bind 0 ./sandbox/test/fs/3GB.ext4.img ; ext4write host 0 0 /./foo 0x10' The following command triggers a segfault in check_filename: ./sandbox/u-boot -c 'host bind 0 ./sandbox/test/fs/3GB.ext4.img ;

[U-Boot] [PATCH v5 12/16] ext4: Use correct value for inode size even on revision 0 filesystems

2016-09-05 Thread Stefan Brüns
fs->inodesz is already correctly (i.e. dependent on fs revision) initialized in ext4fs_mount. Signed-off-by: Stefan Brüns Reviewed-by: Lukasz Majewski --- fs/ext4/ext4_write.c | 1 - include/ext_common.h | 2 -- 2 files changed, 3

[U-Boot] [PATCH v5 16/16] ext4: Fix memory leak of journal buffer if block is updated multiple times

2016-09-05 Thread Stefan Brüns
If the same block is updated multiple times in a row during a single file system operation, gd_index is decremented to use the same journal entry again. Avoid loosing the already allocated buffer. Signed-off-by: Stefan Brüns --- fs/ext4/ext4_journal.c | 6 +- 1

[U-Boot] [PATCH v5 04/16] ext4: Scan all directory blocks for space when inserting a new entry

2016-09-05 Thread Stefan Brüns
Previously, only the last directory block was scanned for available space. Instead, scan all blocks back to front, and if no sufficient space is found, eventually append a new block. Blocks are only appended if the directory does not use extents or the new block would require insertion of indirect

[U-Boot] [PATCH] board: ks2: README: Update to add K2G support

2016-09-05 Thread Lokesh Vutla
Update the README to add support for K2G EVM. Also - Add steps on how to use MMC boot - Fix load address when using CCS - Update build target to u-boot.bin from u-boot-dtb.bin as all ks2 platforms uses DT. Signed-off-by: Lokesh Vutla --- board/ti/ks2_evm/README | 40

Re: [U-Boot] [PATCH v1 2/4] board: sama5d2_xplained: Clean up code

2016-09-05 Thread Simon Glass
On 30 August 2016 at 03:18, Wenyou Yang wrote: > Since the introduction of pinctrl and clk driver, and the dts file, > remove unneeded the pin configurations and the clock enabling code. > > Signed-off-by: Wenyou Yang > --- > >

Re: [U-Boot] [PATCH v1 2/2] serial: atmel_usart: Support enable an early debug UART

2016-09-05 Thread Simon Glass
On 30 August 2016 at 02:43, Wenyou Yang wrote: > Add support to enable an early debug UART for debugging. > > Signed-off-by: Wenyou Yang > --- > > drivers/serial/Kconfig | 7 +++ > drivers/serial/atmel_usart.c | 22 ++

Re: [U-Boot] [PATCH v2 00/44] Kconfig: Move CONFIG_SPL_..._SUPPORT to Kconfig

2016-09-05 Thread Simon Glass
Hi Heiko, On 29 August 2016 at 23:28, Heiko Schocher wrote: > Hello Simon, > > > Am 30.08.2016 um 02:21 schrieb Simon Glass: >> >> This series moves all the CONFIG_SPL_..._SUPPORT options to Kconfig and >> fixes up existing boards to continue to build. >> >> It also adds a few

Re: [U-Boot] [PATCH v1 1/2] clk: at91: Fix at91-pmc and at91-sckc's class ID

2016-09-05 Thread Simon Glass
On 30 August 2016 at 02:11, Wenyou Yang wrote: > The at91-pmc and at91-sckc aren't the clock providers, change their > class ID from UCLASS_CLK to UCLASS_SIMPLE_BUS, they also don't > need to bind the child nodes explicitly, the .post_bind callback > of simple_bus uclass

Re: [U-Boot] [PATCH] x86: conga-qeval20-qa3: Add README to explain the console UART options

2016-09-05 Thread Bin Meng
Hi Stefan, On Mon, Sep 5, 2016 at 5:03 PM, Stefan Roese wrote: > This patch adds a small README to explain the 2 defconfig files and its > usage for the different console UART options. > > Signed-off-by: Stefan Roese > Cc: Bin Meng > Cc: Simon

Re: [U-Boot] [PATCH v2 4/7] x86: squash lines for immediate return

2016-09-05 Thread Simon Glass
On 5 September 2016 at 07:38, Masahiro Yamada wrote: > arch_cpu_init() can be simpler by this refactoring. > > Signed-off-by: Masahiro Yamada > --- > > arch/x86/cpu/baytrail/valleyview.c | 8 +--- >

[U-Boot] [PATCH v5 13/16] ext4: initialize full inode for inodes bigger than 128 bytes

2016-09-05 Thread Stefan Brüns
Make sure the the extra_isize field (offset 128) is initialized to 0, to mark any extra data as invalid. Signed-off-by: Stefan Brüns Reviewed-by: Lukasz Majewski --- fs/ext4/ext4_write.c | 10 -- 1 file changed, 4 insertions(+), 6

[U-Boot] [PATCH v5 05/16] ext4: Avoid corruption of directories with hash tree indexes

2016-09-05 Thread Stefan Brüns
While directories can be read using the old linear scan method, adding a new file would require updating the index tree (alternatively, the whole tree could be removed). Signed-off-by: Stefan Brüns Reviewed-by: Lukasz Majewski ---

[U-Boot] [PATCH v5 14/16] ext4: remove duplicated block release code for extents

2016-09-05 Thread Stefan Brüns
The data blocks are identical for files using traditional direct/indirect block allocation scheme and extent trees, thus this code part can be common. Only the code to deallocate the indirect blocks to record the used blocks has to be seperate, respectively the code to release extent tree index

[U-Boot] [PATCH v5 15/16] ext4: Correct block number handling, empty block vs. error code

2016-09-05 Thread Stefan Brüns
read_allocated block may return block number 0, which is just an indicator a chunk of the file is not backed by a block, i.e. it is sparse. During file deletions, just continue with the next logical block, for other operations treat blocknumber <= 0 as an error. For writes, blocknumber 0 should

[U-Boot] [PATCH v5 03/16] ext4: Do not crash when trying to grow a directory using extents

2016-09-05 Thread Stefan Brüns
The following command crashes u-boot: ./sandbox/u-boot -c 'i=0; host bind 0 ./sandbox/test/fs/3GB.ext4.img ; while test $i -lt 200 ; do echo $i; setexpr i $i + 1; ext4write host 0 0 /foobar${i} 0; done' Previously, the code updated the direct_block even for extents, and fortunately crashed

Re: [U-Boot] [PATCH v3 2/2] Enable ROCKCHIP_SPL_BACK_TO_BROM for rock2 board

2016-09-05 Thread Simon Glass
On 29 August 2016 at 05:31, Sandy Patterson wrote: > Rock2 has been tested with back to brom feature. The tricky part is that > with this feature the default environment is inside u-boot, and it's > defined for every rk3288 board independetly. So I just changed it for >

Re: [U-Boot] [PATCH v3 1/2] Disable SPL_MMC_SUPPORT if ROCKCHIP_SPL_BACK_TO_BROM is enabled.

2016-09-05 Thread Simon Glass
On 29 August 2016 at 05:31, Sandy Patterson wrote: > Default SPL_MMC_SUPPORT to false when ROCKCHIP_SPL_BACK_TO_BROM is enabled. > > Acked-by: Ziyuan Xu > Signed-off-by: Sandy Patterson > --- > > Changes in v3: > -

Re: [U-Boot] [PATCH 2/3] rockchip: add usb mass storage feature support for rk3036

2016-09-05 Thread Simon Glass
On 29 August 2016 at 11:26, Jacob Chen wrote: > From: "jacob2.chen" > > Enable ums feature for rk3036 boards, so that we can mount the mmc > device to PC. > > Signed-off-by: jacob2.chen > --- > >

Re: [U-Boot] [PATCH 4/7] rockchip: evb_rk3399: init vdd_center regulator

2016-09-05 Thread Simon Glass
On 29 August 2016 at 21:02, Kever Yang wrote: > This patch add vdd_center pwm regulator get_device to You don't need to say 'This patch', just: "Add vdd... > enable this regulator. > > Signed-off-by: Kever Yang > --- > >

Re: [U-Boot] [PATCH 2/7] rockchip: rkpwm: fix the register sequence

2016-09-05 Thread Simon Glass
On 29 August 2016 at 21:02, Kever Yang wrote: > Reference to kernel source code, rockchip pwm has three > type, we are using v2 for rk3288 and rk3399, so let's > update the register to sync with pwm_data_v2 in kernel. > > Signed-off-by: Kever Yang

Re: [U-Boot] [PATCH 2/3] rockchip: i2c: move register write out of inner loop

2016-09-05 Thread Simon Glass
On 18 August 2016 at 13:08, John Keeping wrote: > There is no point in writing intermediate values to the txdata > registers. > > Also add padding to the debug logging to make it easier to read when > there are leading zeroes. > > Signed-off-by: John Keeping

  1   2   >