[PATCH 3/3] test/py: rewrite sqfsls command test suite

2021-05-23 Thread Joao Marcos Costa
Add more details to test cases by comparing each expected line with the command's output. Add new test cases: - sqfsls at an empty directory - sqfsls at a sub-directory Signed-off-by: Joao Marcos Costa --- .../test_fs/test_squashfs/test_sqfs_ls.py | 80 ++- 1 file changed,

[PATCH 2/3] test/py: rewrite sqfsload command test suite

2021-05-23 Thread Joao Marcos Costa
The previous strategy to know if a file was correctly loaded was to check for how many bytes were read and compare it against the file's original size. Since this is not a good solution, replace it by comparing the checksum of the loaded bytes against the original file's checksum. Add more test

[PATCH 1/3] test/py: rewrite common tools for SquashFS tests

2021-05-23 Thread Joao Marcos Costa
Remove the previous OOP approach, which was confusing and incomplete. Add more test cases by making SquashFS images with various options, concerning file fragmentation and its compression. Add comments to properly document the code. Signed-off-by: Joao Marcos Costa ---

[PATCH 0/3] test/py: Rewrite SquashFS commands test suite

2021-05-23 Thread Joao Marcos Costa
Hello, This patch series fixes the following issues: - poor strategy to check if files were properly loaded - wrong quoting style for strings - tests failing at the second run because of a wrong clean-up strategy Finally, it improves: - code overall documentation level, with more comments and

[PATCH v5, 1/2] driver: watchdog: reset watchdog in designware_wdt_stop() function

2021-05-23 Thread Meng . Li
From: MengLi In uboot command line environment, watchdog is not able to be stopped with below commands: SOCFPGA_STRATIX10 # wdt dev watchdog@ffd00200 SOCFPGA_STRATIX10 # wdt stop Refer to watchdog driver in linux kernel, it is also need to reset watchdog after disable it so that the disable

[PATCH v5, 2/2] arm: socfpga: socfpga_stratix10: enable wdt command by default

2021-05-23 Thread Meng . Li
From: MengLi In latest u-boot code, watchdog feature is implemented, so enable wdt command by default. Signed-off-by: Meng Li --- v2: Change the title of this patch --- configs/socfpga_stratix10_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_stratix10_defconfig

Re: [PATCH v4 00/14] arm64: synquacer: Add SynQuacer/DeveloperBox support

2021-05-23 Thread Masami Hiramatsu
Hello Ilias, 2021年5月23日(日) 17:07 Ilias Apalodimas : > > Hi Masami, > > On Wed, May 19, 2021 at 02:44:21PM +0900, Masami Hiramatsu wrote: > > Hi, > > > > Here is the 4th version of the series (including some fixes for build > > errors) to add SynQuacer/DeveloperBox 96board EE suport on U-Boot. >

Re: [PATCH] sunxi: Bring back SD card as MMC device 0

2021-05-23 Thread Andre Przywara
On Mon, 26 Apr 2021 17:52:51 +0530 Jagan Teki wrote: Hi Jagan, > On Mon, Apr 26, 2021 at 4:57 PM Andre Przywara wrote: > > > > On Sun, 25 Apr 2021 18:03:05 +0530 > > Jagan Teki wrote: > > > > Hi Jagan, > > > > thanks for your input! > > > > > On Sun, Apr 25, 2021 at 3:30 PM Andre Przywara

[RFC PATCH 3/3] sunxi: Drop sunxi FASTBOOT_FLASH_MMC_DEV defaults

2021-05-23 Thread Andre Przywara
Now that we have a runtime function to decide the default MMC device to use on Allwinner boards, we don't need the hardcoded Kconfig variable anymore (we do the same logic at runtime now). Drop the sunxi defaults, and since there is only one other user left, use one generic default of 0 now. An

[RFC PATCH 1/3] fastboot: Allow runtime determination of MMC device

2021-05-23 Thread Andre Przywara
At the moment the fastboot code relies on the Kconfig variable CONFIG_FASTBOOT_FLASH_MMC_DEV to point to the MMC device to use for the flash command. This value needs to be the *U-Boot device number*, which recently got more dynamic, and depends on other MMC nodes in the devicetree, but also on

[RFC PATCH 2/3] sunxi: Implement fastboot_get_mmc_device()

2021-05-23 Thread Andre Przywara
The default MMC device to use for the fastboot flash command is hard to decide at runtime, since the numbering of the MMC devices depends on devicetree nodes. On the hardware side, the eMMC is connected to device 2, but this might be U-Boot's device 1 or 2, depending on whether the DT contains a

[RFC PATCH 0/3] fastboot: sunxi: Determine MMC device at runtime

2021-05-23 Thread Andre Przywara
At the moment the fastboot code relies on the Kconfig variable CONFIG_FASTBOOT_FLASH_MMC_DEV to point to the MMC device to use for the flash command. This value needs to be the *U-Boot device number*, which is picked by the U-Boot device model at runtime. This makes it quite tricky and fragile to

[PATCH] spi: stm32_qspi: Fix short data write operation

2021-05-23 Thread Daniil Stas
TCF flag only means that all data was sent to FIFO. To check if the data was sent out of FIFO we should also wait for the BUSY flag to be cleared. Otherwise there is a race condition which can lead to inability to write short (one byte long) data. Signed-off-by: Daniil Stas Cc: Patrick Delaunay

[PATCH] net: dwc_eth_qos: Fix needless phy auto-negotiation restarts

2021-05-23 Thread Daniil Stas
Disabling clk_ck clock leads to link up status loss in phy, which leads to auto-negotiation restart before each network command execution. This issue is especially big for PXE boot protocol because of auto-negotiation restarts before each configuration filename trial. To avoid this issue don't

Re: [PATCH] test: Remove duplicate macro

2021-05-23 Thread Heinrich Schuchardt
On 5/23/21 7:00 PM, Sean Anderson wrote: ut_asserteq_strn is defined twice. Remove one definition. Fixes: 33d7edfd5f ("test: Add a way to check part of a console line or skip it") Signed-off-by: Sean Anderson Reviewed-by: Heinrich Schuchardt

[PATCH 2/2] arm: imx8m: add support for Advantech RSB-3720

2021-05-23 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by: wei.zeng

Re: [PATCH] include/linux/byteorder: fix cpu_to_be32_array()

2021-05-23 Thread Heinrich Schuchardt
On 5/23/21 9:40 PM, Tom Rini wrote: On Thu, May 20, 2021 at 05:36:03PM +0200, Heinrich Schuchardt wrote: In cpu_to_be32_array() and be32_to_cpu_array() we should not compare an int counter to a size_t parameter. Correct the type of the counter. Signed-off-by: Heinrich Schuchardt ---

Re: [PATCH] include/linux/byteorder: fix cpu_to_be32_array()

2021-05-23 Thread Tom Rini
On Thu, May 20, 2021 at 05:36:03PM +0200, Heinrich Schuchardt wrote: > In cpu_to_be32_array() and be32_to_cpu_array() we should not compare an int > counter to a size_t parameter. Correct the type of the counter. > > Signed-off-by: Heinrich Schuchardt > --- > include/linux/byteorder/generic.h

Re: [PULL] u-boot-sh/master

2021-05-23 Thread Tom Rini
On Fri, May 21, 2021 at 05:01:34PM +0200, Marek Vasut wrote: > The following changes since commit 27c2236f8acfa311eed2c8f8d210824fadd25483: > > Merge tag 'xilinx-for-v2021.07-rc3' of > https://source.denx.de/u-boot/custodians/u-boot-microblaze (2021-05-19 > 11:50:25 -0400) > > are available

[PATCH] test: Remove duplicate macro

2021-05-23 Thread Sean Anderson
ut_asserteq_strn is defined twice. Remove one definition. Fixes: 33d7edfd5f ("test: Add a way to check part of a console line or skip it") Signed-off-by: Sean Anderson --- include/test/ut.h | 17 - 1 file changed, 17 deletions(-) diff --git a/include/test/ut.h

[PATCHv2 25/27] ppc: Remove T4160RDB board

2021-05-23 Thread Tom Rini
This board has not been converted to CONFIG_DM_PCI by the deadline and is also missing conversion to CONFIG_DM. Remove it. As this is the last ARCH_T4160 platform, remove that support as well. Signed-off-by: Tom Rini --- Changes in v2: - Only remove T4160 support and not T4240RDB as well. ---

[PATCH 1/2] arm: dts: add imx8mp-rsb3720-a1 dts file

2021-05-23 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add board dts for imx8mm-cl-iot-gate Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by: wei.zeng Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: uboot-imx ---

[PATCH 0/2] arm: imx8m: add support for Advantech RSB-3720

2021-05-23 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Ying-Chun Liu (PaulLiu) (2): arm: dts: add imx8mp-rsb3720-a1 dts file arm: imx8m: add support for Advantech RSB-3720

Re: [PATCH v4 00/14] arm64: synquacer: Add SynQuacer/DeveloperBox support

2021-05-23 Thread Ilias Apalodimas
Hi Masami, On Wed, May 19, 2021 at 02:44:21PM +0900, Masami Hiramatsu wrote: > Hi, > > Here is the 4th version of the series (including some fixes for build > errors) to add SynQuacer/DeveloperBox 96board EE suport on U-Boot. > > This series includes not only DeveloperBox support but also some