Re: [PATCH v9] usb: add MediaTek USB3 DRD driver

2020-10-14 Thread Chunfeng Yun
Hi Marek, On Wed, 2020-10-14 at 15:03 +0200, Marek Vasut wrote: > On 10/14/20 2:29 PM, Chunfeng Yun wrote: > > On Wed, 2020-10-14 at 12:56 +0200, Marek Vasut wrote: > >> On 10/14/20 10:50 AM, Chunfeng Yun wrote: > >>> This patch adds support for the MediaTek USB3 DRD controller, > >>> its host

[v3 2/2] cosmetic: reset: ast2500: Rename driver and configs

2020-10-14 Thread Chia-Wei, Wang
1. Rename AST2500 reset driver from ast2500-reset.c to reset-ast2500.c 2. Rename AST2500 reset kconfig option from AST2500_RESET to RESET_AST2500 Signed-off-by: Chia-Wei, Wang Reviewed-by: Ryan Chen --- drivers/reset/Kconfig | 2 +- drivers/reset/Makefile

[v3 1/2] reset: ast2500: Use SCU for reset control

2020-10-14 Thread Chia-Wei, Wang
The System Control Unit (SCU) controller of Aspeed SoCs provides the reset control for each peripheral. This patch refactors the reset method to leverage the SCU reset control. Thus the driver dependency on watchdog including dedicated WDT API and reset flag encoding can be eliminated. The

[v3 0/2] Refactor AST2500 reset control

2020-10-14 Thread Chia-Wei, Wang
This patch series refactors the reset method to use the System Control Unit (SCU) reset control for simplicity. In addition, the naming of reset driver and Kconfig option is also refined for future consistency. v3: - Fix Makefile to adapt to the renamed reset driver file v2: - Rebase

Re: Please pull u-boot-marvell/master

2020-10-14 Thread Tom Rini
On Wed, Oct 14, 2020 at 10:19:26AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the first series of Marvell MVEBU related patches. Here the > summary log: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2] configs: mt8512: enable device mode of mtu3 explicitly

2020-10-14 Thread Chunfeng Yun
On Wed, 2020-10-14 at 15:31 +0200, Marek Vasut wrote: > On 10/14/20 3:03 PM, Chunfeng Yun wrote: > > On Wed, 2020-10-14 at 15:01 +0200, Marek Vasut wrote: > >> On 10/14/20 2:54 PM, Chunfeng Yun wrote: > >>> Set CONFIG_USB_MTU3_GADGET=y to enable device mode explicitly, > >>> try to avoid build

[PATCH v2] clk: ccf: replace the get_rate helper

2020-10-14 Thread Dario Binacchi
The 12d152620d commit fixed the get_rate helper because the set_parent one did not re-parent the clock device to the new parent. The 4d139f3838 commit allows you to remove this workaround by calling the clk_get_parent_rate routine. Signed-off-by: Dario Binacchi --- Changes in v2: - Replace

Re: [PATCH v2] configs: mt8512: enable device mode of mtu3 explicitly

2020-10-14 Thread Chunfeng Yun
On Wed, 2020-10-14 at 15:31 +0200, Marek Vasut wrote: > On 10/14/20 3:03 PM, Chunfeng Yun wrote: > > On Wed, 2020-10-14 at 15:01 +0200, Marek Vasut wrote: > >> On 10/14/20 2:54 PM, Chunfeng Yun wrote: > >>> Set CONFIG_USB_MTU3_GADGET=y to enable device mode explicitly, > >>> try to avoid build

Re: [PATCH] video: rockchip: Add missing dpcd_write() call to link_train_ce()

2020-10-14 Thread Alper Nebi Yasak
On 14/10/2020 22:31, Tom Rini wrote: > On Wed, Oct 14, 2020 at 09:58:28PM +0300, Alper Nebi Yasak wrote: >> On 14/10/2020 18:24, Tom Rini wrote: >>> Ugh. In so far as anything can be re-licensed, who did it all >>> originally? I suspect coreboot isn't interested in 2.0+ but we can do >>>

RE: [v3 0/2] Refactor AST2500 reset control

2020-10-14 Thread ChiaWei Wang
Hi Tom, The patches has been rebased onto the up-to-date U-Boot master. A makefile error is also fixed in the revised version and verified with an AST2500 EVB. Thanks, Chiawei > -Original Message- > From: ChiaWei Wang > Sent: Thursday, October 15, 2020 10:25 AM > To:

Missing license/copyright notice in zlib.h

2020-10-14 Thread Tan, Ley Foon
Hi Mike All *.c and *.h files under https://gitlab.denx.de/u-boot/u-boot/-/blob/master/lib/zlib/ have header statement "For conditions of distribution and use, see copyright notice in zlib.h". But, there is no copyright notice in zlib.h. Are you miss adding it? Regards Ley Foon

Re: [PATCH 1/4] treewide: configs: get rid of unused CONFIG_DEFAULT_CONSOLE

2020-10-14 Thread Minkyu Kang
Dear Andre Heider, On Wed, 23 Sep 2020 at 03:59, Simon Glass wrote: > On Thu, 17 Sep 2020 at 00:52, Andre Heider wrote: > > > > These are all unused. > > > > Signed-off-by: Andre Heider > > --- > > This sets completely removes CONFIG_DEFAULT_CONSOLE from the tree. > > Only compile time

[PATCH 1/4] serial: serial_xen: print U-Boot banner and others

2020-10-14 Thread AKASHI Takahiro
At present, DM_FLAG_PRE_RELOC is set only if !OF_CONTROL. It doesn't make sense for this para-virtualized driver. With this patch applied, you will be able to see early boot messages: U-Boot 2020.10-1-ge442e71a6c52-dirty (Oct 15 2020 - 11:02:25 +0900) xenguest Xen virtual CPU Model:

[PATCH 0/4] xen: improve console outputs

2020-10-14 Thread AKASHI Takahiro
This patch series improves the behavior and functionality of console output on Xen: Patch#1: allow for U-Boot banner Patch#2-4: enable DEBUG_UART (or early printf) AKASHI Takahiro (4): serial: serial_xen: print U-Boot banner and others arch: arm/xen: add putc() for debugging xen: add

[PATCH 3/4] xen: add definitions for console_io

2020-10-14 Thread AKASHI Takahiro
Those definitions added are used with HYPERVISOR_console_io(). Signed-off-by: AKASHI Takahiro --- include/xen/interface/xen.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/xen/interface/xen.h b/include/xen/interface/xen.h index eec8ab75b9ce..a7c8ed781b34 100644 ---

[PATCH 2/4] arch: arm/xen: add putc() for debugging

2020-10-14 Thread AKASHI Takahiro
This new function, xen_debug_putc(), is intended to be used to enable CONFIG_DEBUG_UART on xen guest. Please note that the underlying functionality in Xen is available only when Xen is configured with !NDEBUG but is much simpler than a generic HYPERVISOR_console_io(). Signed-off-by: AKASHI

[PATCH 4/4] serial: serial_xen: add DEBUG_UART support

2020-10-14 Thread AKASHI Takahiro
By using a hypervisor call, we can implement DEBUG_UART on xen. This will allow us to see messages even earlier than serial_init(). Signed-off-by: AKASHI Takahiro --- drivers/serial/Kconfig | 14 +++--- drivers/serial/serial_xen.c | 20 2 files changed, 31

Re: [PATCH 1/1] espresso7420: remove unused symbol CONFIG_DEFAULT_CONSOLE

2020-10-14 Thread Minkyu Kang
Dear Heinrich Schuchardt, On Mon, 7 Sep 2020 at 14:13, Minkyu Kang wrote: > Dear Heinrich Schuchardt, > > On 07/09/2020 04:33, Heinrich Schuchardt wrote: > > On 9/6/20 9:00 PM, Andre Heider wrote: > >> On 05/09/2020 12:02, Heinrich Schuchardt wrote: > >>> Symbol CONFIG_DEFAULT_CONSOLE in

Re: [PATCH v8 2/9] dt-bindings: usb: mtu3: add bindings for MediaTek USB3 DRD

2020-10-14 Thread Bin Meng
On Wed, Oct 14, 2020 at 3:08 PM Chunfeng Yun wrote: > > Add dt-binding for MediaTek USB3 DRD Driver which it's ported which is > from the Linux kernel DTS binding: > Documentation/devicetree/bindings/usb/mediatek,mtu3.txt > Commit ID: > 34d0545978b6 ("dt-bindings: usb: mtu3: fix typo of DMA

Re: [PATCH v8 5/9] usb: add MediaTek USB3 DRD driver

2020-10-14 Thread Bin Meng
On Wed, Oct 14, 2020 at 3:08 PM Chunfeng Yun wrote: > > This patch adds support for the MediaTek USB3 DRD controller, > its host side is based on xHCI, this driver supports device mode > and host mode. > > Signed-off-by: Chunfeng Yun > --- > v8: Simplify Kconfig suggested by Bin > > v7: use xhci

Please pull u-boot-marvell/master

2020-10-14 Thread Stefan Roese
Hi Tom, please pull the first series of Marvell MVEBU related patches. Here the summary log: - Octeon TX: Add NAND driver (Suneel) - Octeon TX: Add NIC driver driver (Suneel) - Octeon TX2: Add NIC driver driver (Suneel) - Armada

Re: [PATCH] arm: mvebu: Remove old comments from configs/mvebu_armada-37xx.h file

2020-10-14 Thread Stefan Roese
On 05.10.20 12:17, Pali Rohár wrote: These comments are relict for old, now removed config options. So remove these obsoleted comments too. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- include/configs/mvebu_armada-37xx.h | 7 --- 1 file changed, 7

[PATCH 3/3] arm64: zynqmp: Add support for SHA3 command

2020-10-14 Thread Michal Simek
From: T Karthik Reddy This patch adds support for SHA3 command. It takes data blob as input and generates 48 bytes sha3 hash value. Signed-off-by: T Karthik Reddy Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- arch/arm/mach-zynqmp/include/mach/sys_proto.h | 5 ++

[PATCH 1/3] arm64: zynqmp: Add support for encryption and decryption on data blob

2020-10-14 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch adds support for encryption and decryption on a given data blob using different key sources such as userkey(KUP), device key and PUF key. Inorder to support this a new zynqmp command(zynqmp aes) has been introduced. Command: zynqmp aes srcaddr ivaddr

[PATCH 2/3] arm64: zynqmp: Add support for RSA command

2020-10-14 Thread Michal Simek
From: T Karthik Reddy This patch adds support for RSA command, performs RSA encrypt & RSA decrypt on data blob of key size. Signed-off-by: T Karthik Reddy Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- arch/arm/mach-zynqmp/include/mach/sys_proto.h | 4 ++

[PATCH 0/3] arm: zynqmp: Add zynqmp specific command for security features

2020-10-14 Thread Michal Simek
Hi, the series is adding support for security features on zynqmp devices. Thanks, Michal Siva Durga Prasad Paladugu (1): arm64: zynqmp: Add support for encryption and decryption on data blob T Karthik Reddy (2): arm64: zynqmp: Add support for RSA command arm64: zynqmp: Add support for

[PATCH] serial: pl01x: Add error value checking

2020-10-14 Thread Michal Simek
There also a need to check return values to make sure that clocks were enabled and setup properly. Signed-off-by: Michal Simek --- drivers/serial/serial_pl01x.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/serial/serial_pl01x.c

[PATCH] xilinx: zynqmp: Add support for saving sha3 key to different address

2020-10-14 Thread Michal Simek
By default 48B sha3 hash value is written to srcaddr which is not the best solution in case of that you want to use data for other operations. That's why add key_addr optional parameters which enables to write 48B sha3 hash value to specified address. Signed-off-by: Michal Simek Tested-by: Ashok

[PATCH 18/33] clk: clk_stm32f: migrate trace to dev and log macro

2020-10-14 Thread Patrick Delaunay
Change debug and pr_ macro to dev macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay --- drivers/clk/clk_stm32f.c | 39 ---

[PATCH 16/33] misc: rcc: keep the rcc device name for subnode

2020-10-14 Thread Patrick Delaunay
Update the name associated with the RCC drivers to avoid duplicated name with the driver name. With this patch the traces displayed with log macro provide a correct device name. The rcc device name before the patch is: Class Index Probed DriverName

[PATCH 17/33] clk: stm32mp1: migrate trace to dev and log macro

2020-10-14 Thread Patrick Delaunay
Change debug and pr_ macro to dev macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay --- drivers/clk/clk_stm32mp1.c | 147 ++---

[PATCH 08/33] ram: stm32mp1: migrate trace to dev or log macro

2020-10-14 Thread Patrick Delaunay
Define LOG_CATEGORY, use dev_ macro when it is possible and migrate other trace to log_ macro. Signed-off-by: Patrick Delaunay --- drivers/ram/stm32mp1/stm32mp1_ddr.c | 36 +++--- drivers/ram/stm32mp1/stm32mp1_interactive.c | 4 +- drivers/ram/stm32mp1/stm32mp1_ram.c | 37

[PATCH 24/33] spi: stm32_spi: migrate trace to dev and log macro

2020-10-14 Thread Patrick Delaunay
Change debug/pr_debug to log_debug or dev_dbg macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay --- drivers/spi/stm32_spi.c | 31

[PATCH 27/33] memory: stm32-fmc2: migrate trace to dev and log macro

2020-10-14 Thread Patrick Delaunay
Change pr_* to dev_ or log_ macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay --- drivers/memory/stm32-fmc2-ebi.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/memory/stm32-fmc2-ebi.c b/drivers/memory/stm32-fmc2-ebi.c

[PATCH 13/33] watchdog: stm32mp: migrate trace to dev macro

2020-10-14 Thread Patrick Delaunay
Change debug and pr_err to dev macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay --- drivers/watchdog/stm32mp_wdt.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/stm32mp_wdt.c b/drivers/watchdog/stm32mp_wdt.c index

[PATCH 12/33] rtc: stm32: migrate trace to log macro

2020-10-14 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay --- drivers/rtc/stm32_rtc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/rtc/stm32_rtc.c b/drivers/rtc/stm32_rtc.c index f9db318af1..e608ed982f 100644 --- a/drivers/rtc/stm32_rtc.c +++

[PATCH 19/33] clk: clk_stm32h7: migrate trace to dev and log macro

2020-10-14 Thread Patrick Delaunay
Change debug and pr_ macro to dev macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay --- drivers/clk/clk_stm32h7.c | 70 +--

Re: [PATCH v3] mtd: nand: Add NAND controller driver for OcteonTX

2020-10-14 Thread Stefan Roese
On 26.08.20 14:37, Stefan Roese wrote: From: Suneel Garapati Adds support for NAND controllers found on OcteonTX or OcteonTX2 SoC platforms. Also includes driver to support Hardware ECC using BCH HW engine found on these platforms. Signed-off-by: Aaron Williams Signed-off-by: Suneel Garapati

Re: [PATCH 1/2] arm: mvebu: Initial iEi Puzzle-M801 support

2020-10-14 Thread Luka Perkov
Hello Stefan and Tom, On Wed, Sep 23, 2020 at 8:47 AM Stefan Roese wrote: > > On 29.08.20 00:35, Luka Kovacic wrote: > > Add initial U-Boot support for the iEi Puzzle-M801 board based on the > > Marvell Armada 88F8040 SoC. > > > > Currently supported hardware: > > 1x USB 3.0 > > 4x Gigabit

Re: [PATCH 2/2] arm: mvebu: mvebu_armada-8k: Add support for initializing iEi Puzzle-M801 networking

2020-10-14 Thread Stefan Roese
On 29.08.20 00:35, Luka Kovacic wrote: Add support for the marvell,armada8040-puzzle-m801 compatible string in the board/Marvell/mvebu_armada-8k/board.c file to initialize the networking on iEi Puzzle-M801 board (2x CP1 1 Gb ports). Signed-off-by: Luka Kovacic Cc: Luka Perkov Applied to

Re: [PATCH 1/2] arm: mvebu: Initial iEi Puzzle-M801 support

2020-10-14 Thread Stefan Roese
On 29.08.20 00:35, Luka Kovacic wrote: Add initial U-Boot support for the iEi Puzzle-M801 board based on the Marvell Armada 88F8040 SoC. Currently supported hardware: 1x USB 3.0 4x Gigabit Ethernet 2x SFP+ (with NXP PCA9555 and NXP PCA9544) 1x SATA 3.0 1x M.2 type B 1x RJ45 UART 1x SPI flash 1x

Re: [PATCH v2 3/3] arm64: dts: a3720: add support for espressobin with populated emmc

2020-10-14 Thread Andre Heider
On 14/10/2020 10:21, Pali Rohár wrote: diff --git a/doc/README.marvell b/doc/README.marvell index 5416bc3035..be07f31f8c 100644 --- a/doc/README.marvell +++ b/doc/README.marvell @@ -43,8 +43,11 @@ Build Procedure In order to prevent this, the required device-tree MUST be set

Re: [PATCH v2 3/3] arm64: dts: a3720: add support for espressobin with populated emmc

2020-10-14 Thread Pali Rohár
On Wednesday 14 October 2020 10:37:57 Andre Heider wrote: > On 14/10/2020 10:21, Pali Rohár wrote: > > > > > > > diff --git a/doc/README.marvell b/doc/README.marvell > > > > index 5416bc3035..be07f31f8c 100644 > > > > --- a/doc/README.marvell > > > > +++ b/doc/README.marvell > > > > @@ -43,8

[PATCH V2 03/12] doc: board: Convert i.MX8MN EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/README | 37 --- doc/board/freescale/imx8mn_evk.rst | 57 ++

[PATCH V2 01/12] board: imx: address dd usage in README

2020-10-14 Thread Peng Fan
When using cygwin64 "dd (coreutils) 8.26 Packaged by Cygwin (8.26-2)", the last not 512bytes aligned data wat cut off and not burned into SD card. Saying the flash.bin size is 1085608 bytes, not 512bytes aligned. It only burned 1085440 bytes, the leaving 168 bytes were not burnned and cause boot

[PATCH V2 00/12] imx: doc update

2020-10-14 Thread Peng Fan
V2: Migrate README to doc/board/freescale patch 1 is not changed. Peng Fan (12): board: imx: address dd usage in README doc: board: Convert i.MX8MP EVK README to reST doc: board: Convert i.MX8MN EVK README to reST doc: board: Convert i.MX8MM EVK README to reST doc: board: Convert

[PATCH V2 07/12] doc: board: Convert i.MXRT1020 EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imxrt1020-evk/README | 31 doc/board/freescale/imxrt1020-evk.rst | 41 +++

[PATCH V2 05/12] doc: board: Convert i.MX8MQ EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imx8mq_evk/README | 37 doc/board/freescale/imx8mq_evk.rst | 56 ++

[PATCH V2 02/12] doc: board: Convert i.MX8MP EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imx8mp_evk/README | 41 doc/board/freescale/imx8mp_evk.rst | 61 ++

[PATCH V2 04/12] doc: board: Convert i.MX8MM EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/README | 37 doc/board/freescale/imx8mm_evk.rst | 56 ++

[PATCH 00/17] fs/squashfs: fix memory leaks and introduce exists() function

2020-10-14 Thread Richard Genoud
This patch series fix several memory leaks, some use of dangling pointers (leading to cpu freeze) and finally introduce the exists() function for squashfs. This function enable testing the existance of a file, which is mandatory for using the distro_bootcmd Those fixes have been cut into several

[PATCH 02/17] fs/squashfs: sqfs_opendir: fix some memory leaks and dangling pointers

2020-10-14 Thread Richard Genoud
When trying to load an non-existing file, the cpu hangs! Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 37 + 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 15208b4dab0..1fdb9ac534b 100644

[PATCH 05/17] fs/squashfs: sqfs_split_path: fix memory leak and dangling pointers

2020-10-14 Thread Richard Genoud
*file and *dir were not freed on error Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 39 +++ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 0ac922af9e7..55d183663a8 100644 ---

[PATCH 04/17] fs/squashfs: sqfs_closedir: fix memory leak

2020-10-14 Thread Richard Genoud
sqfs_dirs wasn't freed anywhere. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index b94a9715205..0ac922af9e7 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -1573,4 +1573,5 @@ void

[PATCH 07/17] fs/squashfs: sqfs_search_dir: fix dangling pointer

2020-10-14 Thread Richard Genoud
dirs->entry shouldn't be left dangling as it could be freed twice. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index c4d74fd4d6d..1df27f7b903 100644 --- a/fs/squashfs/sqfs.c +++

[PATCH 09/17] fs/squashfs: sqfs_read_inode_table: fix dangling pointer

2020-10-14 Thread Richard Genoud
inode_table should not be left dangling as it may be freed in sqfs_opendir Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index eb8851a7148..c4b7c84e9aa 100644 --- a/fs/squashfs/sqfs.c +++

[PATCH 03/17] fs/squashfs: sqfs_opendir: simplify error handling

2020-10-14 Thread Richard Genoud
Using only one label permits to prevents bugs when moving code around. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 1fdb9ac534b..b94a9715205

[PATCH 01/17] fs/squashfs: fix board hang-up when calling .exists()

2020-10-14 Thread Richard Genoud
add missing squashfs function to prevent dangling or null pointers. For exemple, when calling test [ -e somefile ], squashfs.exists may be called. Signed-off-by: Richard Genoud --- fs/fs.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/fs.c b/fs/fs.c index

Re: [PATCH v8 8/9] configs: mt8512: enable fastboot and USB host related configs

2020-10-14 Thread Bin Meng
On Wed, Oct 14, 2020 at 3:08 PM Chunfeng Yun wrote: > > Enable mtu3, xhci, tphy drivers. > Device mode: enable fastboot; > Host mode: enable USB, FAT commands, and fixed regulator, > mass storage drivers; > Due to device mode is enabled by default, comment out > the host mode config here. > >

Re: [PATCH v2 2/3] arm64: dts: armada-3720-espressobin: split common parts to .dtsi

2020-10-14 Thread Stefan Roese
On 04.09.20 17:33, Andre Heider wrote: Move most of the dts to the new common armada-3720-espressobin.dtsi file, just like Linux, but keep the current, downstream based, version. The dts itself is imported from Linux. Signed-off-by: Andre Heider Applied to u-boot-marvell/master Thanks,

Re: [PATCH v2 3/3] arm64: dts: a3720: add support for espressobin with populated emmc

2020-10-14 Thread Stefan Roese
On 04.09.20 17:33, Andre Heider wrote: Import armada-3720-espressobin-emmc.dts from Linux, but use sdhc1 for emmc, since our dtsi is still based on downstream and sdhc0 is used for the sd card. Signed-off-by: Andre Heider Applied to u-boot-marvell/master Thanks, Stefan ---

Re: [PATCH 1/2] arm: mvebu: Initial iEi Puzzle-M801 support

2020-10-14 Thread Stefan Roese
Hi Luka, On 14.10.20 10:14, Luka Perkov wrote: Hello Stefan and Tom, On Wed, Sep 23, 2020 at 8:47 AM Stefan Roese wrote: On 29.08.20 00:35, Luka Kovacic wrote: Add initial U-Boot support for the iEi Puzzle-M801 board based on the Marvell Armada 88F8040 SoC. Currently supported hardware:

Re: [PATCH v3] spi: mvebu_a3700_spi: add support for cs-gpios

2020-10-14 Thread Stefan Roese
On 30.09.20 16:28, George Hilliard wrote: The device tree has a way to specify GPIO lines as chip selects. From the binding docs: So if for example the controller has 2 CS lines, and the cs-gpios property looks like this: cs-gpios = < 0 0> <0> < 1 0> < 2 0>; Then it

Re: [PATCH v3] arm64: dts: armada-3720-espressobin: use Linux model/compatible strings

2020-10-14 Thread Stefan Roese
On 02.10.20 07:51, Andre Heider wrote: Fix the actual board vendor and ease synching dts files from Linux. Signed-off-by: Andre Heider --- v3: rebase on master Applied to u-boot-marvell/master Thanks, Stefan arch/arm/dts/armada-3720-espressobin.dts | 4 ++--

Re: [PATCH v8 8/9] configs: mt8512: enable fastboot and USB host related configs

2020-10-14 Thread Chunfeng Yun
Hi Bin, Thank you again On Wed, 2020-10-14 at 16:05 +0800, Bin Meng wrote: > On Wed, Oct 14, 2020 at 3:08 PM Chunfeng Yun > wrote: > > > > Enable mtu3, xhci, tphy drivers. > > Device mode: enable fastboot; > > Host mode: enable USB, FAT commands, and fixed regulator, > > mass storage drivers;

Re: [PATCH v8 5/9] usb: add MediaTek USB3 DRD driver

2020-10-14 Thread Chunfeng Yun
On Wed, 2020-10-14 at 10:22 +0200, Marek Vasut wrote: > On 10/14/20 9:08 AM, Chunfeng Yun wrote: > > This patch adds support for the MediaTek USB3 DRD controller, > > its host side is based on xHCI, this driver supports device mode > > and host mode. > > This one does not apply, can you rebase

[PATCH] spi: zynq_qspi: Use clk subsystem to get reference qspi clk

2020-10-14 Thread Michal Simek
From: T Karthik Reddy Remove fixed reference clk used by plat->frequency and use clk subsystem to get reference clk. As per spi dt bindings "spi-max-frequency" property should be used by the slave devices. This property is read by spi-uclass driver for the slave device. So avoid reading above

[PATCH 31/33] board: st: stm32mp1: migrate trace to dev and log macro

2020-10-14 Thread Patrick Delaunay
Change pr_* to dev_ or log_ macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 134 +-- 1 file changed, 65 insertions(+), 69 deletions(-) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c

[PATCH 33/33] configs: stm32mp15: enable LOG features

2020-10-14 Thread Patrick Delaunay
Activate the logging features in SPL and U-Boot (CONFIG_LOG and CONFIG_SPL_LOG) and the command 'log' with CONFIG_CMD_LOG. Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 1 + 2 files changed, 3 insertions(+) diff --git

[PATCH 32/33] board: st: common: migrate trace to dev and log macro

2020-10-14 Thread Patrick Delaunay
Change pr_* to dev_ or log_ macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay --- board/st/common/stm32mp_dfu.c | 3 ++- board/st/common/stm32mp_mtdparts.c | 5 +++-- board/st/common/stpmic1.c | 5 - board/st/common/stusb160x.c| 2 ++ 4 files changed, 11

[PATCH] spi: xilinx_spi: remove unused local variable

2020-10-14 Thread Michal Simek
From: T Karthik Reddy Remove unused variable 'count' which is causing warning while compilation. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- drivers/spi/xilinx_spi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/xilinx_spi.c

[PATCH v8 6/9] usb: gadget: Add bcdDevice for the MTU3 USB Gadget Controller

2020-10-14 Thread Chunfeng Yun
Add an entry in usb_gadget_controller_number() for the MTU3 gadget controller. It is used to bind the USB Ethernet driver. Signed-off-by: Chunfeng Yun Reviewed-by: Bin Meng --- v8: add Reviewed-by Bin v4~v7: no changes v3: new patch --- drivers/usb/gadget/gadget_chips.h | 8 1 file

[PATCH v8 8/9] configs: mt8512: enable fastboot and USB host related configs

2020-10-14 Thread Chunfeng Yun
Enable mtu3, xhci, tphy drivers. Device mode: enable fastboot; Host mode: enable USB, FAT commands, and fixed regulator, mass storage drivers; Due to device mode is enabled by default, comment out the host mode config here. Signed-off-by: Chunfeng Yun --- v8 changes: 1. add CONFIG_USB_XHCI_HCD

[PATCH v8 7/9] arm: dts: mt8512: add usb related nodes

2020-10-14 Thread Chunfeng Yun
Add usb, usb phy, and fixed regulators nodes Signed-off-by: Chunfeng Yun Acked-by: Bin Meng --- v8: add Acked-by Bin v5~v7: no changes v4: add host related properties, add subnode. v3: remove unused property mediatek,discth v2: no changes --- arch/arm/dts/mt8512-bm1-emmc.dts | 34

[PATCH v8 4/9] usb: common: add define of usb_speed_string()

2020-10-14 Thread Chunfeng Yun
There is only declaration of usb_speed_string(), but no definition, so add it to avoid build error when call it. Signed-off-by: Chunfeng Yun Reviewed-by: Bin Meng --- v8: add Reviewed-by Bin v7: no changes v6: modify commit message suggested by Roger v5: no changes v4: new patch ---

[PATCH v8 1/9] dt-binding: usb: add bindings for some common properties

2020-10-14 Thread Chunfeng Yun
Add bindings for common properties, include maximum-speed, dr_mode and phy_type Signed-off-by: Chunfeng Yun Reviewed-by: Bin Meng --- v8: add Reviewed-by Bin v2~v7: no changes --- doc/device-tree-bindings/usb/generic.txt | 31 1 file changed, 31 insertions(+) create

[PATCH v8 2/9] dt-bindings: usb: mtu3: add bindings for MediaTek USB3 DRD

2020-10-14 Thread Chunfeng Yun
Add dt-binding for MediaTek USB3 DRD Driver which it's ported from the Linux kernel DTS binding: Documentation/devicetree/bindings/usb/mediatek,mtu3.txt Commit ID: 34d0545978b6 ("dt-bindings: usb: mtu3: fix typo of DMA clock name") Due to Dual-Role switch is not supported in Uboot, some

[PATCH v8 0/9] Add support MediaTek USB3 DRD driver

2020-10-14 Thread Chunfeng Yun
These patches introduce the MediaTek USB3 Dual-Role Controller driver. The driver can be configured as Peripheral only and Host only (based on xHCI) modes, and it's ported from Linux Kernel 5.8-rc1 v8 changes suggested by Bin: 1. modify Kconfig and mt8512 defconfig 2. merge [v7 8/10] and

[PATCH v8 3/9] usb: add USB_SPEED_SUPER_PLUS

2020-10-14 Thread Chunfeng Yun
Add enum USB_SPEED_SUPER_PLUS for USB3.1 Signed-off-by: Chunfeng Yun Reviewed-by: Bin Meng --- v8: add Reviewed-by Bin v5~v7: no changes v4: also add it into speed_names array v2~v3: no changes --- drivers/usb/common/common.c | 1 + include/linux/usb/ch9.h | 1 + 2 files changed, 2

[PATCH v8 9/9] MAINTAINERS: add USB driver to ARM MEDIATEK

2020-10-14 Thread Chunfeng Yun
Add MediaTek USB3 Dual-Role controller driver to ARM MEDIATEK, and add myself as a maintainer for it. Signed-off-by: Chunfeng Yun Reviewed-by: Bin Meng --- v8: add Reviewed-by Bin v6~v7: no changes v5: add mtu3/, xhci-mtk.c, and myself as maintainer for MTK USB v4: new patch --- MAINTAINERS

[PATCH 06/17] fs/squashfs: sqfs_read_directory_table: fix memory leak

2020-10-14 Thread Richard Genoud
pos_list wasn't freed on every error Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 55d183663a8..c4d74fd4d6d 100644 --- a/fs/squashfs/sqfs.c

[PATCH 08/17] fs/squashfs: sqfs_search_dir: fix memory leaks

2020-10-14 Thread Richard Genoud
path, target, res, rem and sym_tokens were not free on error nor success. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 64 -- 1 file changed, 51 insertions(+), 13 deletions(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index

[PATCH 10/17] fs/squashfs: sqfs_concat_tokens: check if malloc succeeds

2020-10-14 Thread Richard Genoud
memory allocation should always be checked Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index c4b7c84e9aa..24a7680aa5c 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -242,6 +242,9

[PATCH 15/17] fs/squashfs: sqfs_read: fix memory leak

2020-10-14 Thread Richard Genoud
sqfs_closedir() should be called to free memory allocated by sqfs_opendir() Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 79d68dddb28..6cd3ba9ce10 100644 --- a/fs/squashfs/sqfs.c +++

[PATCH 12/17] fs/squashfs: sqfs_size: remove useless sqfs_closedir()

2020-10-14 Thread Richard Genoud
as sqfs_opendir failed, there's no need to call sqfs_closedir Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index c5a24450e6f..116b5160ee3 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c

[PATCH 17/17] fs/squashfs: implement exists() function

2020-10-14 Thread Richard Genoud
This permits to find a file and use the distro_bootcmd Signed-off-by: Richard Genoud --- fs/fs.c| 2 +- fs/squashfs/sqfs.c | 38 ++ include/squashfs.h | 1 + 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index

[PATCH 11/17] fs/squashfs: sqfs_size: fix dangling pointer dirs->entry

2020-10-14 Thread Richard Genoud
dirs->entry shouldn't be left dangling as it could be freed twice. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 24a7680aa5c..c5a24450e6f 100644 --- a/fs/squashfs/sqfs.c +++

[PATCH 14/17] fs/squashfs: sqfs_read: remove useless sqfs_closedir()

2020-10-14 Thread Richard Genoud
as sqfs_opendir failed, there's no need to call sqfs_closedir Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 0510ae311d1..79d68dddb28 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c

[PATCH 16/17] fs/squashfs: sqfs_read: fix another memory leak

2020-10-14 Thread Richard Genoud
data_buffer was allocated in a loop and freed only once. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 6cd3ba9ce10..82bf1faf25f 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@

[PATCH 13/17] fs/squashfs: sqfs_read: fix dangling pointer dirs->entry

2020-10-14 Thread Richard Genoud
dirs->entry shouldn't be left dangling as it could be freed twice. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 116b5160ee3..0510ae311d1 100644 --- a/fs/squashfs/sqfs.c +++

Re: [PATCH v2 3/3] arm64: dts: a3720: add support for espressobin with populated emmc

2020-10-14 Thread Pali Rohár
On Wednesday 14 October 2020 10:17:45 Stefan Roese wrote: > On 04.09.20 17:33, Andre Heider wrote: > > Import armada-3720-espressobin-emmc.dts from Linux, but use sdhc1 for > > emmc, since our dtsi is still based on downstream and sdhc0 is used for > > the sd card. > > > > Signed-off-by: Andre

[PATCH 09/33] mmc: stm32_sdmmc2: migrate trace to dev and log macro

2020-10-14 Thread Patrick Delaunay
Define LOG_CATEGORY, use dev_ macro when it is possible. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay --- drivers/mmc/stm32_sdmmc2.c | 85 -- 1 file

[PATCH 14/33] power: regulator: stm32-verfbuf: define LOG_CATEGORY

2020-10-14 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay --- drivers/power/regulator/stm32-vrefbuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/regulator/stm32-vrefbuf.c b/drivers/power/regulator/stm32-vrefbuf.c index

[PATCH 00/33] stm32: enable logging features

2020-10-14 Thread Patrick Delaunay
This patch-set migrates several stm32 drivers to API compatible with logging features (use dev_...() or log_...() function) and activate the logging features in STM32MP15 boards. The size of U-Boot increased by 19kB (933026 to 952830 on STM32MP157C-EV1 board for basic defconfig) but the boot

[PATCH 15/33] misc: rcc: migrate trace to dev macro

2020-10-14 Thread Patrick Delaunay
Change debug and pr_err to dev macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay --- drivers/misc/stm32_rcc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/misc/stm32_rcc.c b/drivers/misc/stm32_rcc.c index b82fe54c60..c1a99d78e2 100644 ---

[PATCH 03/33] arm: stm32mp: bsec: migrate trace to log macro

2020-10-14 Thread Patrick Delaunay
Define LOG_CATEGORY, change pr_debug to dev_dbg and remove "bsec:" header as it is managed by log macro (dev->name is displayed) Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/bsec.c | 38 1 file changed, 21 insertions(+), 17 deletions(-) diff

[PATCH 07/33] ram: stm32: migrate trace to log macro

2020-10-14 Thread Patrick Delaunay
Define LOG_CATEGORY, change debug to dev_dbg and remove "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) Signed-off-by: Patrick Delaunay --- drivers/ram/stm32_sdram.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH 11/33] hwspinlock: stm32: migrate trace to log macro

2020-10-14 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay --- drivers/hwspinlock/stm32_hwspinlock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwspinlock/stm32_hwspinlock.c b/drivers/hwspinlock/stm32_hwspinlock.c index 8be585a0c8..c3edca72ef

[PATCH 10/33] timer: stm32: migrate trace to log macro

2020-10-14 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay --- drivers/timer/stm32_timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/timer/stm32_timer.c b/drivers/timer/stm32_timer.c index c57fa3f557..f32b2c8925 100644 ---

[PATCH 05/33] gpio: stm32-gpio: migrate trace to dev and log macro

2020-10-14 Thread Patrick Delaunay
Change debug to dev_dbg macro and define LOG_CATEGORY. Remove dev->name as it is already displayed by dev macro. Signed-off-by: Patrick Delaunay --- drivers/gpio/stm32_gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/stm32_gpio.c

  1   2   >