RE: Missing license/copyright notice in zlib.h

2020-10-15 Thread Tan, Ley Foon
> -Original Message- > From: Tom Rini > Sent: Friday, October 16, 2020 6:00 AM > To: Tan, Ley Foon > Cc: Mike Frysinger ; See, Chin Liang > ; u-boot@lists.denx.de > Subject: Re: Missing license/copyright notice in zlib.h > > On Thu, Oct 15, 2020 at 03:33:20AM +, Tan, Ley Foon wrot

Re: [PATCH 04/12] x86: zimage: Quieten down the zimage boot process

2020-10-15 Thread Bin Meng
On Mon, Sep 28, 2020 at 8:46 AM Simon Glass wrote: > > Much of the output is not very useful. The bootm command is quite a bit > quieter. Convert some output to use log_debug(). > > Signed-off-by: Simon Glass > --- > > arch/x86/lib/zimage.c | 11 ++- > 1 file changed, 6 insertions(+), 5

Re: [PATCH 03/12] x86: zimage: Sanity-check the kernel version before printing it

2020-10-15 Thread Bin Meng
On Mon, Sep 28, 2020 at 8:46 AM Simon Glass wrote: > > With Chrome OS the kernel setup block is stored in a separate place from > the kernel, so it is not possible to access the kernel version string. > At present, garbage is printed. > > Add a sanity check to avoid this. > > Signed-off-by: Simon

Re: [PATCH 02/12] x86: zimage: Add a little more logging

2020-10-15 Thread Bin Meng
Hi Simon, On Mon, Sep 28, 2020 at 8:46 AM Simon Glass wrote: > > Add logging for each part of the boot process, using a new using a new category? > > Signed-off-by: Simon Glass > --- > > arch/x86/lib/zimage.c | 6 ++ > common/log.c | 1 + > include/log.h | 1 + > 3 files

[PATCH v3 1/5] i2c: mediatek: add basic driver support

2020-10-15 Thread mingming lee
From: Mingming Lee Add MediaTek I2C basic driver Reviewed-by: Heiko Schocher Signed-off-by: Mingming Lee --- Changes for v3: - fixed code veriew note in v2 - optimize the dma read/write flow in mtk_i2c_do_transfer() Changes for v2: - using error number defined in include/linux/errno.

[PATCH v3 0/5] Add i2c support for MediaTek mt8512

2020-10-15 Thread mingming lee
From: Mingming Lee This patch series adds basic i2c support for MediaTek MT8512 EMMC boards. --- Changes for v3: - fixed code veriew note in v2. - optimize the dma read/write flow in mtk_i2c_do_transfer(). - add Reviewed-by info. Changes for v2: - using error number defined in inclu

[PATCH v3 5/5] MAINTAINERS: add i2c driver to ARM MEDIATEK

2020-10-15 Thread mingming lee
From: Mingming Lee add Mediatek i2c controller driver to ARM MEDIATEK. Reviewed-by: Simon Glass Signed-off-by: Mingming Lee --- Changes for v3: - just add Reviewed-by info --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 889a73f..cc78561

[PATCH v3 2/5] ARM: dts: Mediatek: add i2c node support for mt8512

2020-10-15 Thread mingming lee
From: Mingming Lee add i2c dts node support for mt8512 Reviewed-by: Heiko Schocher Reviewed-by: Simon Glass Signed-off-by: Mingming Lee --- Changes for v3: - just add Reviewed-by info. --- arch/arm/dts/mt8512-bm1-emmc.dts | 12 arch/arm/dts/mt8512.dtsi | 38 ++

[PATCH v3 4/5] dt-binding: i2c: add bindings for mediatek i2c driver

2020-10-15 Thread mingming lee
From: Mingming Lee add bindings for mediatek i2c driver Reviewed-by: Simon Glass Signed-off-by: Mingming Lee --- Changes for v3: - just add Reviewed-by info --- doc/device-tree-bindings/i2c/i2c-mtk.txt | 39 1 file changed, 39 insertions(+) create mode 100

[PATCH v3 3/5] configs: mt8512: Enable I2C related configs

2020-10-15 Thread mingming lee
From: Mingming Lee Enable MTK I2C Enable I2C basic command Reviewed-by: Heiko Schocher Reviewed-by: Simon Glass Signed-off-by: Mingming Lee --- Changes for v3: - fixed the config order - add Reviewed-by info --- configs/mt8512_bm1_emmc_defconfig | 8 +++- 1 file changed, 7 insertio

[PATCH 1/2] mmc: fsl_esdhc: set sysctl register for clock initialization

2020-10-15 Thread Yangbo Lu
The initial clock setting should be through sysctl register only, while the mmc_set_clock() will call mmc_set_ios() introduce other configurations like bus width, mode, and so on. Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 0/2] mmc: fsl_esdhc: fix up for eMMC HS400

2020-10-15 Thread Yangbo Lu
This patch-set provides fix up for eMMC HS400 for a potential DLL lock issue during mmc rescan. Yangbo Lu (2): mmc: fsl_esdhc: set sysctl register for clock initialization mmc: fsl_esdhc: make sure delay chain locked for HS400 drivers/mmc/fsl_esdhc.c | 30 ++ incl

[PATCH 2/2] mmc: fsl_esdhc: make sure delay chain locked for HS400

2020-10-15 Thread Yangbo Lu
For eMMC HS400 mode, the DLL reset is a required step for mmc rescan. This step has not been documented in reference manual, but the RM will be fixed sooner or later. This patch is to add the step of DLL reset, and make sure delay chain locked for HS400. Fixes: db8f93672b42 ("mmc: fsl_esdhc: supp

RE: [PATCH] mmc: mtk-sd: change some dev_err into dev_dbg

2020-10-15 Thread Peng Fan
> Subject: [PATCH] mmc: mtk-sd: change some dev_err into dev_dbg > > dev_err has been used for debugging and a few dev_err message are printed > for normal code execution. Make them dev_dbg instead. > > Signed-off-by: Fabien Parent > --- > drivers/mmc/mtk-sd.c | 6 +++--- > 1 file changed, 3 in

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

2020-10-15 Thread Chunfeng Yun
On Thu, 2020-10-15 at 14:28 +0200, Marek Vasut wrote: > On 10/15/20 3:49 AM, Chunfeng Yun wrote: > > Hi Marek, > > Hi, > > > 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

Re: RPi3: serial console

2020-10-15 Thread Ricardo Salveti
On Tue, Oct 13, 2020 at 11:04 AM Peter Robinson wrote: > > > >> Hello Matthias, > > >> > > >> I have upgraded the Raspberry 3 firmware from raspi3-firmware > > >> (1.20190215-1+deb10u4) to raspi-firmware (1.20200601-3) > > >> [https://packages.debian.org/bullseye/raspi-firmware]. > > >> > > >> Aft

Re: [PATCH v2 2/3] allow positional arguments with "run" command

2020-10-15 Thread Rasmus Villemoes
On 15/10/2020 17.05, Simon Glass wrote: > Hi Rasmus, > > On Mon, 12 Oct 2020 at 01:06, Rasmus Villemoes > wrote: >> >> On 12/10/2020 05.34, Simon Glass wrote: >>> On Wed, 7 Oct 2020 at 01:21, Rasmus Villemoes >>> wrote: cmd/Kconfig| 10 ++ cmd/nvedit.c | 7

Re: Missing license/copyright notice in zlib.h

2020-10-15 Thread Tom Rini
On Thu, Oct 15, 2020 at 03:33:20AM +, Tan, Ley Foon wrote: > 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

Re: [PATCH v2 3/5] pinctrl: renesas: r8a77965: Add R8A774B1 PFC support

2020-10-15 Thread Marek Vasut
On 10/14/20 1:29 PM, Biju Das wrote: Hi, [...] Check with the linux maintainers please, surely there should be some way to separate the extras in a way that's not too hard to maintain, and thus reduce the resulting binary size. For U-Boot, that is quite important already, I t

Re: [PATCH v3 2/2] clk: renesas: Add R8A774E1 clock tables

2020-10-15 Thread Marek Vasut
On 10/14/20 7:17 PM, Biju Das wrote: > This sync's the RZ/G2H clock tables with mainline linux 5.9 commit > bbf5c979011a ("Linux 5.9"). Applied, thanks.

Re: [PATCH v3 1/2] clk: renesas: Add R8A774B1 clock tables

2020-10-15 Thread Marek Vasut
On 10/14/20 7:17 PM, Biju Das wrote: > This sync's the RZ/G2N clock tables with mainline linux 5.9 commit > bbf5c979011a ("Linux 5.9"). Applied, thanks.

Re: [PATCH v3] pinctrl: renesas: pfc-r8a77990: Sync PFC tables with Linux 5.9

2020-10-15 Thread Marek Vasut
On 10/14/20 5:45 PM, Lad Prabhakar wrote: > Sync the R8A77990 SoC PFC tables with Linux 5.9 , commit bbf5c979011a. Applied, thanks.

[PATCH v9 1/2] board: kontron: add sl28 support

2020-10-15 Thread Michael Walle
Add basic support for the Kontron SMARC-sAL28 board. This includes just the bare minimum to be able to bring up the board and boot linux. For now, the Single and Dual PHY variant is supported. Other variants will fall back to the basic variant. In particular, there is no watchdog support for now.

[PATCH v9 2/2] board: sl28: add board specific nvm command

2020-10-15 Thread Michael Walle
The board supports 16 configuration bits which can be manipulated with this command. See the board's README for a detailed explanation on each bit. Signed-off-by: Michael Walle Tested-by: Heiko Thiery --- board/kontron/sl28/Makefile | 2 +- board/kontron/sl28/cmds.c | 178 ++

[PATCH v9 0/2] Basic Kontron SMARC-sAL28 board support

2020-10-15 Thread Michael Walle
Add basic board support for the Kontron SMARC-sAL28 board. Please note, that this board doesn't support TF-a (yet). Therefore, the u-boot SPL is the first code which is run and it has to set up the RAM. changes since v8: - enable HS400 mode which is supported since the last mmc updates - enable

Re: Please pull mmc-2020-10-14

2020-10-15 Thread Tom Rini
On Thu, Oct 15, 2020 at 06:14:41AM +, Peng Fan wrote: > Hi Tom, > > Please pull mmc-2020-10-14 > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 00/27] Add DM support for omap PWM backlight

2020-10-15 Thread Dario Binacchi
Hi Felix, > Il 15/10/2020 10:53 Felix Brack ha scritto: > > > Hello Dario, > > On 14.10.20 23:22, Dario Binacchi wrote: > > > >> Il 14/10/2020 10:22 Felix Brack ha scritto: > >> > >> > >> On 11.10.20 14:13, Dario Binacchi wrote: > >>> The series was born from the need to manage the PWM ba

Re: SMBIOS entry point

2020-10-15 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Thu, 15 Oct 2020 19:18:21 +0200 > > According to > > DSP0134, 3.4.0, System Management BIOS (SMBIOS) Reference Specification > https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.4.0.pdf > > our struct smbios_entry is an SMBIOS 2.1 (32-bit)

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

2020-10-15 Thread Tom Rini
On Wed, Oct 14, 2020 at 11:39:40PM +0300, Alper Nebi Yasak wrote: > 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 > >>> origina

Re: [PATCH] usb: dwc2: add "u-boot,force-vbus-detection" for stm32

2020-10-15 Thread Marek Vasut
On 10/15/20 6:52 PM, Patrick DELAUNAY wrote: Hi, [...] >> On 10/15/20 2:49 PM, Patrick Delaunay wrote: >>> On some board, the ID pin is not connected so the B session must be >>> overridden with "u-boot,force_b_session_valid" but the VBus sensing >>> must continue to be handle. >>> >>> To manage

SMBIOS entry point

2020-10-15 Thread Heinrich Schuchardt
According to DSP0134, 3.4.0, System Management BIOS (SMBIOS) Reference Specification https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.4.0.pdf our struct smbios_entry is an SMBIOS 2.1 (32-bit) Entry Point structure. This structure requires that the SMBIOS table is located bel

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

2020-10-15 Thread Alper Nebi Yasak
On 15/10/2020 10:19, Arnaud Patard (Rtp) wrote: > Alper Nebi Yasak writes: >> I'm not sure re-porting is a great idea from the technical perspective. >> I've been reading both drivers to compare them, there are also things in >> U-Boot that're missing from coreboot. Things like DM integration are

RE: [PATCH] usb: dwc2: add "u-boot,force-vbus-detection" for stm32

2020-10-15 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: jeudi 15 octobre 2020 15:08 > > On 10/15/20 2:49 PM, Patrick Delaunay wrote: > > On some board, the ID pin is not connected so the B session must be > > overridden with "u-boot,force_b_session_valid" but the VBus sensing > > must continue to be handle. > > >

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

2020-10-15 Thread Miquel Raynal
Hi Richard, Richard Genoud wrote on Thu, 15 Oct 2020 18:29:45 +0200: > Hi Miquel ! > Thanks for your feedback. > > Le 15/10/2020 à 15:54, Miquel Raynal a écrit : > > Hi Richard, > > > > Richard Genoud wrote on Wed, 14 Oct 2020 > > 10:06:11 +0200: > > > >> pos_list wasn't freed on every err

[PATCH] mmc: mtk-sd: change some dev_err into dev_dbg

2020-10-15 Thread Fabien Parent
dev_err has been used for debugging and a few dev_err message are printed for normal code execution. Make them dev_dbg instead. Signed-off-by: Fabien Parent --- drivers/mmc/mtk-sd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-s

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

2020-10-15 Thread Richard Genoud
Hi Miquel ! Thanks for your feedback. Le 15/10/2020 à 15:54, Miquel Raynal a écrit : Hi Richard, Richard Genoud wrote on Wed, 14 Oct 2020 10:06:11 +0200: pos_list wasn't freed on every error Signed-off-by: Richard Genoud Same comment here (and probably after as well) as in patch 05/17, n

Speed/mode setting via "sf probe" command

2020-10-15 Thread Ralph Siemsen
Hi, The "sf probe" command is documented to take optional speed/mode args: sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus and chip select This worked correctly in older u-boot versions, but as of 2019.07 the speed/mode arguments appear to

Re: [PATCH v3 2/2] spl: fdt: Record load/entry fit-images entries in 64bit format

2020-10-15 Thread Michal Simek
On 15. 10. 20 17:05, Simon Glass wrote: > On Mon, 12 Oct 2020 at 01:51, Michal Simek wrote: >> >> The commit 9f45aeb93727 ("spl: fit: implement fdt_record_loadable") which >> introduced fdt_record_loadable() state there spl_fit.c is not 64bit safe. >> Based on my tests on Xilinx ZynqMP zcu102 p

Re: [PATCH] serial: pl01x: Add error value checking

2020-10-15 Thread Michal Simek
Hi, On 15. 10. 20 17:09, André Przywara wrote: > On 14/10/2020 09:42, Michal Simek wrote: > > Hi, > >> There also a need to check return values to make sure that clocks were >> enabled and setup properly. > > is that just clean-up or is there a particular problem that's fixed? > > I am asking

RE: [PATCH 00/33] stm32: enable logging features

2020-10-15 Thread Patrick DELAUNAY
Hi Simon, > From: Simon Glass > Sent: jeudi 15 octobre 2020 17:06 > > Hi Patrick, > > On Wed, 14 Oct 2020 at 03:16, Patrick Delaunay > wrote: > > > > > > This patch-set migrates several stm32 drivers to API compatible with > > logging features (use dev_...() or log_...() function) and activate

[PATCH] spi: migrate trace to dev and log macro in spi uclass

2020-10-15 Thread Patrick Delaunay
Define LOG_CATEGORY and change printf and pr_* to dev_ (when dev is available) or log_ macro. This patch adds the support of logging feature with log command (filtering, display of device name in trace) and allows to suppress traces via the syslog driver. Signed-off-by: Patrick Delaunay --- dr

Re: [PATCH] serial: pl01x: Add error value checking

2020-10-15 Thread André Przywara
On 14/10/2020 09:42, Michal Simek wrote: Hi, > There also a need to check return values to make sure that clocks were > enabled and setup properly. is that just clean-up or is there a particular problem that's fixed? I am asking because I am not sure how useful debug output in a console driver

Re: [PATCH] serial: pl01x: Add error value checking

2020-10-15 Thread Simon Glass
On Wed, 14 Oct 2020 at 02:42, Michal Simek wrote: > > 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(-)

Re: [PATCH 00/33] stm32: enable logging features

2020-10-15 Thread Simon Glass
Hi Patrick, On Wed, 14 Oct 2020 at 03:16, Patrick Delaunay wrote: > > > 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 (

Re: [PATCH 1/3] dm: core: Add support for getting node from aliases

2020-10-15 Thread Simon Glass
On Wed, 14 Oct 2020 at 07:56, Michal Simek wrote: > > Add support for getting a node/property from aliases. > The similar functionality is provided for chosen node and this > implemenatation is copy of it. > > Signed-off-by: Michal Simek > --- > > drivers/core/ofnode.c | 22 +

Re: [v3 14/16] arm: socfpga: dts: soc64: Add binman node of FIT image with ATF support

2020-10-15 Thread Simon Glass
On Thu, 15 Oct 2020 at 06:30, Siew Chin Lim wrote: > > Add binman node to device tree to generate the FIT image for u-boot > (u-boot.itb) and OS kernel (kernel.itb). > > u-boot.itb contains arm trusted firmware (ATF), u-boot proper and > u-boot device tree for ATF u-boot flow. > > kernel.itb conta

Re: [PATCH 1/3] rockchip: efuse: add support for RK3288 non-secure efuse

2020-10-15 Thread Simon Glass
Hi Jonas, On Tue, 13 Oct 2020 at 14:21, Jonas Karlman wrote: > > From: Francis Fan > > Extend rockchip efuse driver with support for RK3288 non-secure efuse. > > Signed-off-by: Francis Fan > Signed-off-by: Cody Xie > Signed-off-by: Jonas Karlman > --- > drivers/misc/rockchip-efuse.c | 91 +++

Re: [PATCH 3/3] rockchip: dts: rk3288: enable efuse node

2020-10-15 Thread Simon Glass
On Tue, 13 Oct 2020 at 14:21, Jonas Karlman wrote: > > Enable efuse node so that boards can use cpu id in efuse as a source for > serial# and ethaddr. > > Signed-off-by: Jonas Karlman > --- > arch/arm/dts/rk3288.dtsi | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Simon G

Re: [PATCH 2/3] rockchip: efuse: add support for RK3328 non-secure efuse

2020-10-15 Thread Simon Glass
Hi Jonas, On Tue, 13 Oct 2020 at 14:21, Jonas Karlman wrote: > > From: Joseph Chen > > Extend rockchip efuse driver with support for RK3328 non-secure efuse. > > Signed-off-by: Joseph Chen > Signed-off-by: Jonas Karlman > --- > drivers/misc/rockchip-efuse.c | 67 ++

Re: [PATCH v3 2/2] spl: fdt: Record load/entry fit-images entries in 64bit format

2020-10-15 Thread Simon Glass
On Mon, 12 Oct 2020 at 01:51, Michal Simek wrote: > > The commit 9f45aeb93727 ("spl: fit: implement fdt_record_loadable") which > introduced fdt_record_loadable() state there spl_fit.c is not 64bit safe. > Based on my tests on Xilinx ZynqMP zcu102 platform there shouldn't be a > problem to record

Re: [PATCH 1/2] dm: core: Add late driver remove option

2020-10-15 Thread Simon Glass
Hi Marek, On Mon, 12 Oct 2020 at 02:31, Marek Vasut wrote: > > On 10/12/20 5:35 AM, Simon Glass wrote: > > Hi Marek, > > > > On Sun, 11 Oct 2020 at 10:03, Marek Vasut wrote: > >> > >> Add another flag to the DM core which could be assigned to drivers and > >> which makes those drivers call their

Re: [PATCH] Remove default value of CONFIG_PREBOOT for CONFIG_USB_STORAGE

2020-10-15 Thread Simon Glass
On Mon, 12 Oct 2020 at 01:48, Patrick Delaunay wrote: > > Remove the default value "usb start" for CONFIG_USB_STORAGE as the USB > storage boot initialization is correctly managed by distro boot command > ('usb_boot' defined in include/config_distro_bootcmd.h already include > the command 'usb s

Re: [PATCH v2] drivers: serial: probe all uart devices

2020-10-15 Thread Simon Glass
Hi, On Wed, 14 Oct 2020 at 06:47, Stefan Roese wrote: > > Hi Vabhav, > > On 14.10.20 13:15, Vabhav Sharma (OSS) wrote: > > Hi Stefan, > > Sorry for delayed reply, Occupied with high priority task > > > >> -Original Message- > >> From: Stefan Roese > >> Sent: Wednesday, September 30, 2020

Re: [PATCH v2 2/3] allow positional arguments with "run" command

2020-10-15 Thread Simon Glass
Hi Rasmus, On Mon, 12 Oct 2020 at 01:06, Rasmus Villemoes wrote: > > On 12/10/2020 05.34, Simon Glass wrote: > > On Wed, 7 Oct 2020 at 01:21, Rasmus Villemoes > > wrote: > >> > >> cmd/Kconfig| 10 ++ > >> cmd/nvedit.c | 7 ++- > >> common/cli.c | 44

Bootable image for imx8qxp

2020-10-15 Thread Matthias Weißer
Hi I currently try to create a bootable image of u-boot for the imx8qxp eval board. If I follow the instruction in I see the following output on the serial debug port: U-Boot SPL 2020.10 (Oct 15 2020 - 15:54:37 +0200) Normal Boot Trying to boot from MMC2_2 Load image from MMC/SD 0x53800 And then

Re: fatal error: Python.h: No such file or directory

2020-10-15 Thread Tom Rini
On Thu, Oct 15, 2020 at 09:32:52AM +, Peng Fan wrote: > All: > > When select BINMAN, I met error. > fatal error: Python.h: No such file or directory > > I am using openSUSE, python files are installed under /usr/include/python3.8 > > After I " export C_INCLUDE_PATH=/usr/include/python3.8",

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

2020-10-15 Thread Miquel Raynal
Hi Richard, Richard Genoud wrote on Wed, 14 Oct 2020 10:06:11 +0200: > pos_list wasn't freed on every error > > Signed-off-by: Richard Genoud Same comment here (and probably after as well) as in patch 05/17, not sure this is actually relevant for the community but I prefer this: bar

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

2020-10-15 Thread Miquel Raynal
Hi Richard, Thank you very much for this entire series, so far I'm fine with all your changes, but perhaps this patch needs some editions. Richard Genoud wrote on Wed, 14 Oct 2020 10:06:10 +0200: > *file and *dir were not freed on error > > Signed-off-by: Richard Genoud > --- > fs/squashfs/s

Re: [PATCH] usb: dwc2: add "u-boot,force-vbus-detection" for stm32

2020-10-15 Thread Marek Vasut
On 10/15/20 2:49 PM, Patrick Delaunay wrote: > On some board, the ID pin is not connected so the B session must be > overridden with "u-boot,force_b_session_valid" but the VBus sensing > must continue to be handle. > > To managed it, this patch adds a new DT field > "u-boot,force-vbus-detection" t

Re: CONFIG_UPDATE_TFTP

2020-10-15 Thread Marek Vasut
On 10/15/20 2:48 PM, Heinrich Schuchardt wrote: > On 15.10.20 14:40, Marek Vasut wrote: >> On 10/15/20 8:30 AM, Heinrich Schuchardt wrote: >>> Hello Tom, Marek, Nobuhiro, >> >> Hi, >> >>> in v2020.10 the following lines do not exist: >>> >>> configs/r8a77990_ebisu_defconfig:20:CONFIG_UPDATE_TFTP=y

[PATCH 1/3] reset: stm32: Add support of MCU HOLD BOOT

2020-10-15 Thread Patrick Delaunay
Handle the register RCC_MP_GCR without SET/CLR registers but with a direct access to bit BOOT_MCU: - deassert => set the bit: The MCU will not be in HOLD_BOOT - assert => clear the bit: The MCU will be set in HOLD_BOOT With this patch the RCC driver handles the MCU_HOLD_BOOT_R value added in bindi

[PATCH 2/3] remoteproc: stm32: use reset for hold boot

2020-10-15 Thread Patrick Delaunay
Use the reset function to handle the hold boot bit in RCC with device tree handle with MCU_HOLD_BOOT identifier. This generic reset allows to remove the two specific properties: - st,syscfg-holdboot - st,syscfg-tz This patch prepares alignment with kernel device tree. Signed-off-by: Patrick Dela

[PATCH 3/3] remoteproc: stm32: update error management in stm32_copro_start

2020-10-15 Thread Patrick Delaunay
The coprocessor is running as soon as the hold boot is de-asserted. So indicate this running state and save the resource table even if the protective assert, to avoid autonomous reboot, is failed. This error case should never occurs. Cc: Fabien DESSENNE Cc: Arnaud POULIQUEN Signed-off-by: Pat

[PATCH] board: stm32mp1: no MTD partitions fixup for serial boot

2020-10-15 Thread Patrick Delaunay
Remove the update of the MTD partitions in kernel device tree for serial boot (USB / UART), and the kernel will use the MTD partitions define in the loaded DTB because U-Boot can't known the expected flash layout in this case. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 1

[PATCH] phy: stm32: usbphyc: manage optional vbus regulator on phy_power_on/off

2020-10-15 Thread Patrick Delaunay
This patch adds support for optional vbus regulator. It is managed on phy_power_on/off calls and may be needed for host mode. Signed-off-by: Patrick Delaunay --- .../phy/phy-stm32-usbphyc.txt | 2 ++ drivers/phy/phy-stm32-usbphyc.c | 33 +-- 2 file

[PATCH] usb: dwc2: add "u-boot,force-vbus-detection" for stm32

2020-10-15 Thread Patrick Delaunay
On some board, the ID pin is not connected so the B session must be overridden with "u-boot,force_b_session_valid" but the VBus sensing must continue to be handle. To managed it, this patch adds a new DT field "u-boot,force-vbus-detection" to use with "u-boot,force_b_session_valid" Signed-off-by:

Re: CONFIG_UPDATE_TFTP

2020-10-15 Thread Heinrich Schuchardt
On 15.10.20 14:40, Marek Vasut wrote: > On 10/15/20 8:30 AM, Heinrich Schuchardt wrote: >> Hello Tom, Marek, Nobuhiro, > > Hi, > >> in v2020.10 the following lines do not exist: >> >> configs/r8a77990_ebisu_defconfig:20:CONFIG_UPDATE_TFTP=y >> configs/r8a77995_draak_defconfig:19:CONFIG_UPDATE_TFTP=

[PATCH] configs: stm32mp15: activate CMD_ELF

2020-10-15 Thread Patrick Delaunay
Activate CONFIG_CMD_ELF to accept the command "bootelf". This patch simplifies the file stm32mp defconfig, as we have no reason to deactivate this command. Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 - configs/stm32mp15_trusted_defconfig | 1 - 2 files changed,

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

2020-10-15 Thread Marek Vasut
On 10/15/20 3:52 AM, Chunfeng Yun wrote: > 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 mo

Re: [PATCH 13/13] usb: ehci-mx6: Improve the bind function

2020-10-15 Thread Marek Vasut
On 10/15/20 11:45 AM, Peng Fan wrote: Hi, [...] >> Subject: Re: [PATCH 13/13] usb: ehci-mx6: Improve the bind function >> >> On 9/16/20 2:57 PM, peng@nxp.com wrote: >> [...] >>> +++ b/drivers/usb/host/ehci-mx6.c >>> @@ -735,13 +735,16 @@ static int ehci_usb_bind(struct

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

2020-10-15 Thread Marek Vasut
On 10/15/20 3:49 AM, Chunfeng Yun wrote: > Hi Marek, Hi, > 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 t

Re: CONFIG_UPDATE_TFTP

2020-10-15 Thread Marek Vasut
On 10/15/20 8:30 AM, Heinrich Schuchardt wrote: > Hello Tom, Marek, Nobuhiro, Hi, > in v2020.10 the following lines do not exist: > > configs/r8a77990_ebisu_defconfig:20:CONFIG_UPDATE_TFTP=y > configs/r8a77995_draak_defconfig:19:CONFIG_UPDATE_TFTP=y > configs/rcar3_salvator-x_defconfig:18:CONFIG

[PATCH 1/2] configs: stm32mp15: activate CMD_IMPORTENV

2020-10-15 Thread Patrick Delaunay
Activate CONFIG_CMD_IMPORTENV to accept the command "env import". This command is useful in script to include some variable. Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 - configs/stm32mp15_trusted_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/co

[PATCH 2/2] configs: stm32mp15: activate CMD_EXPORTENV

2020-10-15 Thread Patrick Delaunay
Activate CONFIG_CMD_EXPORTENV to accept the command "env export". Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 - configs/stm32mp15_trusted_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/stm32mp15_basic_defconfig b/configs/stm32mp15_basic_

[v3 08/16] net: designware: socfpga: Add ATF support for MAC driver

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang In non-secure mode (EL2), MAC driver calls the SMC/PSCI services provided by ATF to setup the PHY interface. Signed-off-by: Chee Hong Ang Signed-off-by: Siew Chin Lim --- drivers/net/dwmac_socfpga.c | 30 ++ 1 file changed, 26 insertions(+), 4 d

[v3 13/16] arm: socfpga: soc64: Skip handoff data access in SSBL

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang SPL already setup the Clock Manager with the handoff data from OCRAM. When the Clock Manager's driver get probed again in SSBL, it shall skip the handoff data access in OCRAM. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/wrap_pll_config_s10.c | 3 ++- 1 file chang

[v3 14/16] arm: socfpga: dts: soc64: Add binman node of FIT image with ATF support

2020-10-15 Thread Siew Chin Lim
Add binman node to device tree to generate the FIT image for u-boot (u-boot.itb) and OS kernel (kernel.itb). u-boot.itb contains arm trusted firmware (ATF), u-boot proper and u-boot device tree for ATF u-boot flow. kernel.itb contains Linux Image and Linux device tree. Signed-off-by: Siew Chin L

[v3 16/16] configs: socfpga: Add defconfig for Agilex and Stratix 10 with ATF support

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang Booting Agilex and Stratix 10 with ATF support. SPL now loads ATF (BL31), U-Boot proper and DTB from FIT image. The new boot flow with ATF support is as follow: SPL -> ATF (BL31) -> U-Boot proper -> OS (Linux) U-Boot proper now starts at 0x20 (CONFIG_SYS_TEXT_BASE). ATF

[v3 15/16] arm: socfpga: soc64: Enable FIT image generation using binman

2020-10-15 Thread Siew Chin Lim
Add new build target "fit-itb" for FIT image generation. In preparation to support Vendor Authorized Boot (VAB) for Intel SOC64 device in near future. With VAB, u-boot proper, dtb and arm trusted firmware need to be signed before FIT image generation. To align user experience for ATF boot with an

[v3 03/16] arm: socfpga: soc64: Override 'lowlevel_init' to support ATF

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang Override 'lowlevel_init' to make sure secondary CPUs trapped in ATF instead of SPL. After ATF is initialized, it will signal the secondary CPUs to jump from SPL to ATF waiting to be 'activated' by Linux OS via PSCI call. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpg

[v3 02/16] arm: socfpga: soc64: Load FIT image with ATF support

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang Instead of loading u-boot proper image (u-boot.img), SPL now loads FIT image (u-boot.itb) which includes u-boot proper, ATF and u-boot proper's DTB. For OS, u-boot now loads FIT images (kernel.itb) which includes Linux Image and Linux's DTB. Signed-off-by: Chee Hong Ang Sig

[v3 11/16] arm: socfpga: mailbox: Add 'SYSTEM_RESET' PSCI support to mbox_reset_cold()

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang mbox_reset_cold() will invoke ATF's PSCI service when running in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/mailbox_s10.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-socfpga/mailbox_s10.c b/arch/arm/mach-socfpga

[v3 06/16] arm: socfpga: soc64: Define SMC function identifiers for PSCI SiP services

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang This header file defines the Secure Monitor Call (SMC) message protocol for ATF (BL31) PSCI runtime services. It includes all the PSCI SiP function identifiers for the secure runtime services provided by ATF. The secure runtime services include System Manager's registers acces

[v3 07/16] mmc: dwmmc: socfpga: Add ATF support for MMC driver

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang In non-secure mode (EL2), MMC driver calls the SMC/PSCI services provided by ATF to set SDMMC's DRVSEL and SMPLSEL. Signed-off-by: Chee Hong Ang Signed-off-by: Siew Chin Lim --- drivers/mmc/socfpga_dw_mmc.c | 17 + 1 file changed, 17 insertions(+) diff --g

[v3 12/16] arm: socfpga: soc64: SSBL shall not setup stack on OCRAM

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang Since SSBL is running in DRAM, it shall setup the stack in DRAM instead of OCRAM which is occupied by SPL and handoff data. Signed-off-by: Chee Hong Ang --- include/configs/socfpga_soc64_common.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/socfp

[v3 10/16] arm: socfpga: soc64: Add ATF support for FPGA reconfig driver

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang In non-secure mode (EL2), FPGA reconfiguration driver calls the SMC/PSCI services provided by ATF to configure the FPGA. Signed-off-by: Chee Hong Ang --- drivers/fpga/intel_sdm_mb.c | 139 1 file changed, 139 insertions(+) diff

[v3 00/16] Enable ARM Trusted Firmware for U-Boot

2020-10-15 Thread Siew Chin Lim
This is the 3rd version of patchset to enable ARM Trusted Firmware for U-Boot for Intel Stratix10 and Agilex platform. New U-boot flow with ARM Trusted Firmware (ATF) support: SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1) SPL loads the u-boot.itb which consist of: 1) u-boot-no

[v3 09/16] arm: socfpga: soc64: Add ATF support for Reset Manager driver

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang In non-secure mode (EL2), Reset Manager driver calls the SMC/PSCI service provided by ATF to enable/disable the SOCFPGA bridges. Signed-off-by: Chee Hong Ang Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/reset_manager_s10.c | 13 + 1 file changed, 13 i

[v3 05/16] arm: socfpga: soc64: Add SMC helper function for Intel SOCFPGA (64bits)

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang invoke_smc() allow U-Boot proper running in non-secure mode (EL2) to invoke SMC call to ATF's PSCI runtime services such as System Manager's registers access, 2nd phase bitstream FPGA reconfiguration, Remote System Update (RSU) and etc. smc_send_mailbox() is a send mailbox co

[v3 04/16] arm: socfpga: Disable "spin-table" method for booting Linux

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang Standard PSCI function "CPU_ON" provided by ATF is now used by Linux kernel to bring up the secondary CPUs to enable SMP booting in Linux on SoC 64bits platform. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --gi

[v3 01/16] arm: socfpga: Add function for checking description from FIT image

2020-10-15 Thread Siew Chin Lim
From: Chee Hong Ang Add board_fit_config_name_match() for matching board name with device tree files in FIT image. This will ensure correct DTB file is loaded for different board type. Currently, we are not supporting multiple device tree files in FIT image therefore this function basically do no

[PATCH] stm32mp: stm32prog: accept device without partition

2020-10-15 Thread Patrick Delaunay
When partitions are not available on a device the command stm32prog raises an error but a device can have no partition to check in init_device() and the command need to continue to the next part_id. This patch correct an issue for ram0 target, when block_dev and mtd are NULL. For example with the

Re: [PATCH v3 00/27] Add DM support for omap PWM backlight

2020-10-15 Thread Felix Brack
Hello Dario, On 14.10.20 23:22, Dario Binacchi wrote: > >> Il 14/10/2020 10:22 Felix Brack ha scritto: >> >> >> On 11.10.20 14:13, Dario Binacchi wrote: >>> The series was born from the need to manage the PWM backlight of the >>> display connected to my beaglebone board. To hit the target, I h

Re: [PATCH v3 00/27] Add DM support for omap PWM backlight

2020-10-15 Thread Dario Binacchi
> Il 14/10/2020 10:22 Felix Brack ha scritto: > > > On 11.10.20 14:13, Dario Binacchi wrote: > > The series was born from the need to manage the PWM backlight of the > > display connected to my beaglebone board. To hit the target, I had to > > develop drivers for PWM management which in turn

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

2020-10-15 Thread Peng Fan
> Subject: [PATCH 09/33] mmc: stm32_sdmmc2: migrate trace to dev and log > macro > > 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 De

Re: STM32MP1: Adding TF-A causes kernel errors

2020-10-15 Thread Jan Kiszka
On 13.10.20 16:26, Jan Kiszka wrote: > On 13.10.20 13:06, Patrick DELAUNAY wrote: >> Hi Jan, >> >>> From: Jan Kiszka >>> Sent: mardi 13 octobre 2020 00:02 >>> >>> On 05.10.20 08:07, Jan Kiszka wrote: On 01.10.20 11:52, Jan Kiszka wrote: > On 30.09.20 11:51, Jan Kiszka wrote: >> [BCC'e

RE: [PATCH 13/13] usb: ehci-mx6: Improve the bind function

2020-10-15 Thread Peng Fan
Marek, > Subject: Re: [PATCH 13/13] usb: ehci-mx6: Improve the bind function > > On 9/27/20 4:38 AM, Peng Fan wrote: > > Hi Marek, > > > >> Subject: Re: [PATCH 13/13] usb: ehci-mx6: Improve the bind function > >> > >> On 9/16/20 3:56 PM, Peng Fan wrote: > >>> Hi Marek, > >> > >> Hi, > >> > S

[PATCH] power: regulator: add dummy helper

2020-10-15 Thread Peng Fan
Add dummy helper to enabling the header could be included when DM REGULATOR not enabled. Signed-off-by: Peng Fan --- include/power/regulator.h | 114 ++ 1 file changed, 114 insertions(+) diff --git a/include/power/regulator.h b/include/power/regulator.h index

[PATCH] phy: nop-phy: add clk bulk

2020-10-15 Thread Peng Fan
Add clk bulk for nop-phy driver. Signed-off-by: Peng Fan --- drivers/phy/nop-phy.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/phy/nop-phy.c b/drivers/phy/nop-phy.c index a5eed20f3f..fbfbe33e4e 100644 --- a/drivers/phy/nop-phy.c +++ b/drivers/p

fatal error: Python.h: No such file or directory

2020-10-15 Thread Peng Fan
All: When select BINMAN, I met error. fatal error: Python.h: No such file or directory I am using openSUSE, python files are installed under /usr/include/python3.8 After I " export C_INCLUDE_PATH=/usr/include/python3.8", I met another issue: " /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_

  1   2   >