[U-Boot] [PATCH] ARMv8/sec-firmware: fix a compile error

2016-09-05 Thread Zhiqiang Hou
From: Hou Zhiqiang When enabled sec firmware framework, but lack of definition of the marco SEC_FIRMWARE_FIT_IMAGE, SEC_FIRMEWARE_FIT_CNF_NAME and SEC_FIRMWARE_TARGET_EL, there will be some build errors, so give a default definition. Signed-off-by: Hou Zhiqiang --- arch/arm/cpu/armv8/sec_firmw

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

2016-09-05 Thread Chin Liang See
On Mon, 2016-09-05 at 18:01 +0200, Marek Vasut wrote: > 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 > > --- > > arch/arm/m

Re: [U-Boot] [PATCH 05/11] arm: socfpga: fpgamgr: Segregate the FPGA Manager for Stratix 10

2016-09-05 Thread Chin Liang See
On Mon, 2016-09-05 at 18:00 +0200, Marek Vasut wrote: > On 08/22/2016 05:02 PM, Chin Liang See wrote: > > Segregate the FPGA 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 > > --- > >

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

2016-09-05 Thread Hannes Schmelzer
"U-Boot" schrieb am 06.09.2016 03:54:52: > Von: Bin Meng > An: Joe Hershberger , > Kopie: u-boot , Hannes Schmelzer , Joe > Hershberger > Datum: 06.09.2016 03:57 > Betreff: Re: [U-Boot] [PATCH] net: write enetaddr down to hardware on env_callback > Gesendet von: "U-Boot" > > Hi, Hi Bin,

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

2016-09-05 Thread Chin Liang See
On Mon, 2016-09-05 at 17:58 +0200, Marek Vasut wrote: > On 08/22/2016 05:02 PM, Chin Liang See wrote: > > 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 > > --- > >

Re: [U-Boot] [PATCH 1/2] spi: ti_qspi: use 128 bit transfer mode when writing to flash

2016-09-05 Thread Vignesh R
Hi, On Sunday 04 September 2016 07:51 PM, Jagan Teki wrote: > On Thu, Sep 1, 2016 at 1:24 PM, Vignesh R wrote: [...] >> @@ -23,6 +23,8 @@ DECLARE_GLOBAL_DATA_PTR; >> #define QSPI_TIMEOUT200 >> #define QSPI_FCLK 19200 >> #define QSPI_DRA7XX_FCLK

[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 func

[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 +++

[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 --- fs/ext4/ext4_common.c | 14 +++

[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 n

[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 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 blo

[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 bef

[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 --- fs/ext4/ext4_write.c | 5 + include/ext4fs.h | 1 + 2 fi

[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 deletions(-) diff --git a/fs/ext4/ext4_write.c b/fs/ext

[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 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 file changed, 5 insertions(+),

[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. Rev

[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 -l

[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 a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c index 50c8415..5e208

[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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/

[U-Boot] [PATCH v5 06/16] ext4: Scan all directory blocks when looking up an entry

2016-09-05 Thread Stefan Brüns
Scanning only the direct blocks of the directory file may falsely report an existing file as nonexisting, and worse can also lead to creation of a duplicate entry on file creation. Signed-off-by: Stefan Brüns Reviewed-by: Lukasz Majewski --- fs/ext4/ext4_common.c | 84 --

[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 ; ext4writ

[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 deletions(-) diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_w

[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 ++-- fs/ext4/ext4_common.h | 2 +- fs/ext4/ext4_write.c | 4 +++- 3 fil

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 +--- > arch/x86/cpu/ivybridge/ivybridge.c | 8 +--- > arch/x86/cpu/qemu/qemu.c | 8 +--

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 Glass > --- > board/congatec/conga-qeval20-qa3-e3

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 ethernet driver. >> >> Signed-off-by: Hannes Schme

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

2016-09-05 Thread Bin Meng
On Mon, Sep 5, 2016 at 9:38 PM, Masahiro Yamada wrote: > 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 +

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 board_boot_order and want

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 support on zynqmp an

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 >> --- >> >> drivers/clk/rockchip/clk_rk3399.c | 177 >> ++

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 common coding sty

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 | 2 ++ >> 1 file changed, 2 insertions(+) >> > > Acked-by: Simon Glass

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 >>> >> --- a/arch/arm/mach-exynos/Kconfig >>> >> +++ b/arch/arm/mach-exy

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. > > Signed-off-by: Nikolaus Schulz

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 the > watchdog, a missing WAT

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 the case. Thi

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 will do it for them. > > S

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 small but useful fe

Re: [U-Boot] [PATCH 3/7] power: regulator: add pwm regulator

2016-09-05 Thread Simon Glass
Hi Kever, On 29 August 2016 at 21:02, Kever Yang wrote: > This driver add support for pwm regulator. > > Signed-off-by: Elaine Zhang > Signed-off-by: Kever Yang > --- > > drivers/power/regulator/Kconfig | 9 ++ > drivers/power/regulator/Makefile| 1 + > drivers/power/regula

Re: [U-Boot] [PATCH 1/7] rockchip: rk3399: update PPLL and pmu_pclk frequency

2016-09-05 Thread Simon Glass
Hi Kever, On 29 August 2016 at 21:02, Kever Yang wrote: > This patch update PPLL to 676MHz and PMU_PCLK to 48MHz. Why? > > Signed-off-by: Kever Yang > --- > > arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/

Re: [U-Boot] [PATCH 5/5] mmc: uniphier-sd: migrate to CONFIG_BLK

2016-09-05 Thread Simon Glass
On 24 August 2016 at 23:52, Masahiro Yamada wrote: > This is the state-of-the-art MMC driver implementation. > > Signed-off-by: Masahiro Yamada > --- > > arch/arm/Kconfig | 1 + > drivers/mmc/Kconfig | 1 + > drivers/mmc/uniphier-sd.c | 50 > +++-

Re: [U-Boot] [PATCH 1/5] mmc: uniphier-sd: migrate to CONFIG_DM_MMC_OPS

2016-09-05 Thread Simon Glass
On 24 August 2016 at 23:52, Masahiro Yamada wrote: > Catch up with the DM migration. > > As struct dm_mmc_ops does not have .init callback, call the init > function directly from the probe function. > > Signed-off-by: Masahiro Yamada > --- > > drivers/mmc/Kconfig | 1 + > drivers/mmc/unip

Re: [U-Boot] [PATCH 3/3] rockchip: use rockchip linux partitions map

2016-09-05 Thread Simon Glass
Hi, On 29 August 2016 at 11:26, Jacob Chen wrote: > From: "jacob2.chen" > > Below link contains documents about rockchip linux partitions. > http://rockchip.wikidot.com/partitions > Please add to the commit message some info about why this change is needed. Please can you update README.rockchi

Re: [U-Boot] [PATCH 3/3] rockchip: i2c: fix >32 byte writes

2016-09-05 Thread Simon Glass
Hi John, On 18 August 2016 at 13:08, John Keeping wrote: > The special handling of the chip address and register address must only > happen before we send the data buffer, otherwise we will end up > inserting both of these every 32 bytes. > > Signed-off-by: John Keeping > > --- > I'm not entirel

Re: [U-Boot] [PATCH v1 4/4] board: sama5d2_xplained: Enable an early debug UART

2016-09-05 Thread Simon Glass
On 30 August 2016 at 03:18, Wenyou Yang wrote: > Enable an early debug UART to debug problems when an ICE or other > debug mechanism is not available. > > Signed-off-by: Wenyou Yang > --- > > board/atmel/sama5d2_xplained/sama5d2_xplained.c | 14 ++ > configs/sama5d2_xplained_mmc_defc

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 ++ > 2 files changed, 29 insertions(+) Reviewed-

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 > --- > > board/atmel/sama5d2_xplained/sama5d2_xplained.c | 104 > ---

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(-) Reviewed-by: Simon Glass

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(+) Acked-by: Simon Glass __

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: Simon Glass __

Re: [U-Boot] [PATCH 6/7] dts: evb-rk3399: add init voltage node for vdd-center

2016-09-05 Thread Simon Glass
Hi Kever, On 29 August 2016 at 21:02, Kever Yang wrote: > This patch add regulator-init-microvolt for pwm regulator > to get a init value when driver do probe init. How about: Add a regulator-init-microvolt value for the vd_center regulator so that (please complete the sentence - commits

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 > --- > > board/rockchip/evb_rk3399/evb-rk3399.c | 6 ++ > 1 file changed, 6 i

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 > --- > > arch/arm/include/asm/arch-rockchip/pwm

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 > --- > > include/configs/rk3036_common.h | 4 > 1 file changed, 4 insertions(+) Acked-by: Simon Glass

Re: [U-Boot] [PATCH] sf: fix sf probe

2016-09-05 Thread Simon Glass
On 26 August 2016 at 09:10, Hannes Schmelzer wrote: > > mfG > Schmelzer Hannes > > On 08/17/2016 09:19 AM, Wenyou Yang wrote: >> >> From: Cyrille Pitchen >> >> This patch fixes the "sf probe" command. The very first SPI flash probe >> passes, for instance when u-boot tries to read its environment

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 > --- > > drivers/i2c/rk_i2c.c | 4 ++

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: > - Move activate in rock2_defconfig to proper commit. > > Changes in v2: > - Rebas

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 > rock2 here if ROCKCHIP_SPL_

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 Glass _

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 insertions(+), 7 deletions(-) > >

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 Tag from Simon > > configs/evb-rk3399_defconfig | 2 ++ > 1 file changed

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 in v4: None > Changes in v3: None > Changes in v2: None > > arch/arm/incl

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 >> >> --- >> >> arch/arm/mach-rockchip/board.c| 4 >> arch/arm/mach-rockchip/rk3288-board-spl.

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 patch set enable all these host

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 > --- > > Changes in v3: > - add Acked-by tag from Simon

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 on rk3399 evb. >> Only support usb2.0 currently for we have not enable the

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 > Acked-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > arch/arm/Kconfig | 1 + > 1

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: Kever Yang > Acked-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: No

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 Yang > Acked-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > >

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 > --- > > Changes in v3: None > Changes in v2: None > > arch/arm/dts/rk3399-evb.d

[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 unifo

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 resist

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 > --- > arch/arm/mach-socfpga/misc.c | 12 > 1 file changed, 12 insertions(+)

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 | 7 +- > arch/arm/mach-socfpga/Kconfig | 10

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

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > Add board folder for Stratix 10 SoC development kit Directory, this is not Windows :-( Oh, btw also use "separate", not "segregate", in the previous patches. > Signed-off-by: Chin Liang See > Cc: Marek Vasut > Cc: Dinh Nguyen > Cc: Ley Foon Tan

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

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > 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 Acked-by: Marek Vasut > --- > arch/arm/mach-socfpga/include/mach/reset_manager.h | 32 > +++

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

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > 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 file changed, 8 i

Re: [U-Boot] [PATCH 05/11] arm: socfpga: fpgamgr: Segregate the FPGA Manager for Stratix 10

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > Segregate the FPGA 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/fpga_manager.c | 4 > 1 file changed, 4 inserti

Re: [U-Boot] [PATCH 07/11] arm: socfpga: sysmgr: Fix casting warning when enabling ARM64

2016-09-05 Thread Marek Vasut
On 08/22/2016 05:02 PM, Chin Liang See wrote: > Fix casting warning to pointer from integer of different size > when enabling ARM64 support What sort of error did you observe ? > Signed-off-by: Chin Liang See > Cc: Marek Vasut > Cc: Dinh Nguyen > Cc: Ley Foon Tan > --- > arch/arm/mach-socfpg

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 > --- > arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 48 > +

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 > --- > arch/arm/dts/Makefile| 3 +- > arch/arm/dts/socfpga

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 Acked-by: Marek Vasut > --- > arch/arm/mach-socfpga/reset_manager.c | 12 +

[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 +++ 2 files changed, 73 insertions(+) create mode

[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 +- arch/arm/mach-socfpga/Kconfig | 10 +++ configs/socfpga_stratix10_defconfig | 14 incl

[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 +- arch/arm/dts/socfpga_stratix10_socdk.dts | 64 2 files changed, 66 insertion

[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 board/altera/stratix10-socdk/Makefile| 7 +++ board/altera/stratix10-socdk/socfpga.c | 7

[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 changed, 12 insertions(+) diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socf

[U-Boot] [PATCH 07/11] arm: socfpga: sysmgr: Fix casting warning when enabling ARM64

2016-09-05 Thread Chin Liang See
Fix casting warning to pointer from integer of different size when enabling ARM64 support Signed-off-by: Chin Liang See Cc: Marek Vasut Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/system_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach

[U-Boot] [PATCH 05/11] arm: socfpga: fpgamgr: Segregate the FPGA Manager for Stratix 10

2016-09-05 Thread Chin Liang See
Segregate the FPGA 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/fpga_manager.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-socfpga/fpga_manager.c b/arch/

[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 file changed, 8 insertions(+) diff --git a/arch/arm/mach-socfpga/clock_manager.c

[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 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-socfpga/reset_manag

[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 ++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/mach-socfpga/incl

[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 ++ 1 file changed, 48 insertions(+) create mode 100755 arch/arm/mach-socfpga/include/

[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: so

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: e

[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 c8b76cf..c5b608d 100644 --- a/drivers/power/a

[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 --- drivers/mm

[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, 1 insertion(+), 5 deletions(-) diff --git a/lib/libfdt/fdt_

  1   2   >