[PATCH] usb: ehci-mx6: replace regulator_set_enable with *_if_allowed

2023-05-01 Thread Eugen Hristev
regulator_set_enable_if_allowed already handles cases when the regulator is already enabled, or already disabled, and does not treat these as errors. With this change, the driver can work correctly even if the regulator is already taken or already disabled by another consumer. Signed-off-by: Eugen

[PATCH 4/4] doc: signature: trim the future work list

2023-05-01 Thread Baruch Siach
Since U-Boot supports more RSA/SHA variants, as well as ECDSA, remove these items from the TODO list. Signed-off-by: Baruch Siach --- doc/uImage.FIT/signature.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index 240244b30e63..

[PATCH 1/4] doc: signature: update algorithms support description

2023-05-01 Thread Baruch Siach
U-Boot supports more hash and verification algorithms these days. Signed-off-by: Baruch Siach --- doc/uImage.FIT/signature.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index c71280b63bb6..bc123f512f7b 1006

[PATCH 3/4] doc: signature: describe how to enable ECDSA

2023-05-01 Thread Baruch Siach
Signed-off-by: Baruch Siach --- doc/uImage.FIT/signature.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index b6707417ff63..240244b30e63 100644 --- a/doc/uImage.FIT/signature.txt +++ b/doc/uImage.FIT/signature.txt @@ -439,6 +439

[PATCH 2/4] doc: signature: update algorithm addition description

2023-05-01 Thread Baruch Siach
U-Boot now uses the U_BOOT_CRYPTO_ALGO() macro. Signed-off-by: Baruch Siach --- doc/uImage.FIT/signature.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index bc123f512f7b..b6707417ff63 100644 --- a/doc/u

Re: [PATCH] env: Remove misuse of env is nowhere driver

2023-05-01 Thread Heiko Schocher
Hello Stefan, On 29.04.23 06:30, Heiko Schocher wrote: > Hello Stefan, > > On 28.04.23 15:45, Stefan Herbrechtsmeier wrote: >> From: Stefan Herbrechtsmeier >> >> When using a list of writeable variables, the initial values come from >> the built-in default environment since commit 5ab81058364b >

Re: [PATCH u-boot 0/3] pci: mpc85xx: Fixes for PCI config space

2023-05-01 Thread Heiko Schocher
Hello Pali, On 29.04.23 13:10, Pali Rohár wrote: > On Thursday 13 April 2023 22:41:43 Pali Rohár wrote: >> This patch series contains small fixes for mpc85xx old PCI Local Bus driver. >> >> Heiko: Are you able to test these changes? Has your Socrates board >> available old PCI Local Bus support? >

[PATCH 1/1] CI: treat documentation warnings as errors

2023-05-01 Thread Heinrich Schuchardt
We do not want to merge documentation that produces Sphinx warnings. scripts/kernel-doc uses environment variable KDOC_WERROR to determine if warnings should be treated as errors. Reported-by: Tom Rini Signed-off-by: Heinrich Schuchardt --- .azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2

[PATCH 1/1] dm: core: fix introduce uclass_get_device_by_of_path

2023-05-01 Thread Heinrich Schuchardt
Correct the function documentation. Fixes: ca031c082700 ("dm: core: introduce uclass_get_device_by_of_path()") Reported-by: Tom Rini Signed-off-by: Heinrich Schuchardt --- include/dm/uclass.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/uclass.h b/include/dm/uc

[PATCH 1/1] cli: avoid buffer overrun

2023-05-01 Thread Heinrich Schuchardt
Invoking the sandbox with /u-boot -c ⧵0xef⧵0xbf⧵0xbd results in a segmentation fault. Function b_getch() retrieves a character from the input stream. This character may be > 0x7f. If type char is signed, static_get() will return a negative number and in parse_stream() we will use that negati

Re: Pull request: u-boot-spi/master

2023-05-01 Thread Tom Rini
On Mon, May 01, 2023 at 10:42:08PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR for u-boot-spi. > > Summary: > - cadence-quadspi fixes (Apurva Nandan, Dhruva Gole) > - CHIP_ERASE optimization (Marek Vasut) > - fixups for s25fs512s (Takahiro Kuwano) > > CI: > https://source.denx.de

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Tom Rini
On Mon, May 01, 2023 at 10:49:37PM +0200, Marek Vasut wrote: > On 5/1/23 20:53, Tom Rini wrote: > > On Mon, May 01, 2023 at 07:40:57PM +0200, Marek Vasut wrote: > > > On 5/1/23 19:23, Tom Rini wrote: > > > > On Mon, May 01, 2023 at 06:53:52PM +0200, Marek Vasut wrote: > > > > > On 5/1/23 15:47, Tom

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Marek Vasut
On 5/1/23 20:53, Tom Rini wrote: On Mon, May 01, 2023 at 07:40:57PM +0200, Marek Vasut wrote: On 5/1/23 19:23, Tom Rini wrote: On Mon, May 01, 2023 at 06:53:52PM +0200, Marek Vasut wrote: On 5/1/23 15:47, Tom Rini wrote: On Sun, Apr 30, 2023 at 11:20:35PM +0200, Marek Vasut wrote: In case N

[PATCH 5/5] imx8mn-var-som: adjust PHY reset gpios according to hardware configuration

2023-05-01 Thread Hugo Villeneuve
From: Hugo Villeneuve For SOM with the EC configuration, the ethernet PHY is located on the SOM itself, and connected to the CPU ethernet controller. It has a reset line controlled via GPIO1_IO9. In this configuration, the PHY located on the carrier board is not connected to anything and is there

[PATCH 4/5] imx8mn-var-som: read eth MAC address from EEPROM

2023-05-01 Thread Hugo Villeneuve
From: Hugo Villeneuve Read ethernet MAC address from EEPROM located on the SOM. Signed-off-by: Hugo Villeneuve --- arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi | 13 + arch/arm/mach-imx/imx8m/Kconfig | 1 + 2 files changed, 14 insertions(+) diff --git a/arch/

[PATCH 3/5] arm: dts: imx8mn-var-som: fix PHY detection bug by adding deassert delay

2023-05-01 Thread Hugo Villeneuve
From: Hugo Villeneuve While testing the ethernet interface on a Variscite symphony carrier board using an imx8mn SOM with an onboard ADIN1300 PHY (EC hardware configuration), the ethernet PHY is not detected. The ADIN1300 datasheet indicate that the "Management interface active (t4)" state is re

[PATCH 2/5] imx8mn-var-som: fix non-applied PHY reset-gpios properties

2023-05-01 Thread Hugo Villeneuve
From: Hugo Villeneuve Select DM_ETH_PHY so that the reset-gpios property of the ethphy node can be used. Also select DM_PCA953X, which is needed for resetting the ethernet PHY on the carrier board via the PCA9534 I/O expander. Commit 4e5114daf9eb ("imx8mn: synchronise device tree with linux") d

[PATCH 0/5] imx8mn-var-som: fix ethernet for Variscite symphony board and imx8m nano SOM

2023-05-01 Thread Hugo Villeneuve
From: Hugo Villeneuve Hello, This patch series fixes bugs and add missing features related to the ethernet PHY on Variscite symphony carrier board with an imx8m nano SOM (P/N VAR-SOM-MX8M-NANO). Ethernet functionality is currently broken for the VAR-SOM-MX8M-NANO. Variscite imx8m nano SOM comes

[PATCH 1/5] imx8mn-var-som: read and print SoM infos from eeprom on startup

2023-05-01 Thread Hugo Villeneuve
From: Hugo Villeneuve Enable support to read and display configuration/manufacturing infos from 4Kbit EEPROM located on SOM board. Note: CONFIG_DISPLAY_BOARDINFO is automatically selected for ARM arch. Signed-off-by: Hugo Villeneuve --- .../dts/imx8mn-var-som-symphony-u-boot.dtsi | 4 + a

Re: [PATCH] rockchip: Pinebook Pro: Fix emmc default configuration

2023-05-01 Thread Peter Robinson
On Mon, May 1, 2023 at 8:43 AM Wolfgang Zarre wrote: > > If u-boot is installed on the internal emmc, then this will > allow to boot without failure. > > Signed-off-by: Wolfgang Zarre > --- > > configs/pinebook-pro-rk3399_defconfig | 12 ++-- > 1 file changed, 10 insertions(+), 2 deletio

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Tom Rini
On Mon, May 01, 2023 at 07:40:57PM +0200, Marek Vasut wrote: > On 5/1/23 19:23, Tom Rini wrote: > > On Mon, May 01, 2023 at 06:53:52PM +0200, Marek Vasut wrote: > > > On 5/1/23 15:47, Tom Rini wrote: > > > > On Sun, Apr 30, 2023 at 11:20:35PM +0200, Marek Vasut wrote: > > > > > > > > > In case NET

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Marek Vasut
On 5/1/23 19:23, Tom Rini wrote: On Mon, May 01, 2023 at 06:53:52PM +0200, Marek Vasut wrote: On 5/1/23 15:47, Tom Rini wrote: On Sun, Apr 30, 2023 at 11:20:35PM +0200, Marek Vasut wrote: In case NET networking is not enabled, it is not possible to compile the USB ethernet gadget. Protect the

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Tom Rini
On Mon, May 01, 2023 at 06:53:52PM +0200, Marek Vasut wrote: > On 5/1/23 15:47, Tom Rini wrote: > > On Sun, Apr 30, 2023 at 11:20:35PM +0200, Marek Vasut wrote: > > > > > In case NET networking is not enabled, it is not possible to compile > > > the USB ethernet gadget. Protect the symbols in Make

Pull request: u-boot-spi/master

2023-05-01 Thread Jagan Teki
Hi Tom, Please pull this PR for u-boot-spi. Summary: - cadence-quadspi fixes (Apurva Nandan, Dhruva Gole) - CHIP_ERASE optimization (Marek Vasut) - fixups for s25fs512s (Takahiro Kuwano) CI: https://source.denx.de/u-boot/custodians/u-boot-spi/-/pipelines/16198 The following changes since commit

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Marek Vasut
On 5/1/23 15:47, Tom Rini wrote: On Sun, Apr 30, 2023 at 11:20:35PM +0200, Marek Vasut wrote: In case NET networking is not enabled, it is not possible to compile the USB ethernet gadget. Protect the symbols in Makefile to avoid build failure. Such build failure may occur e.g. in case NET and U

Re: [PATCH 1/2] cmd: fdt: Correct checking of configuration node

2023-05-01 Thread Simon Glass
On Sun, 30 Apr 2023 at 21:35, Bin Meng wrote: > > fit_conf_get_node() returns a negative value on error. > > Signed-off-by: Bin Meng > --- > > cmd/fdt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH 2/2] spl: Correct checking of configuration node

2023-05-01 Thread Simon Glass
On Sun, 30 Apr 2023 at 21:35, Bin Meng wrote: > > Per the fit_conf_get_node() API doc, it returns configuration node > offset when found (>=0). > > Signed-off-by: Bin Meng > --- > > common/spl/spl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass > > diff --gi

Re: [PATCH 3/3] efi: Correct .efi rules

2023-05-01 Thread Simon Glass
Hi Heinrich, On Sun, 30 Apr 2023 at 09:00, Heinrich Schuchardt wrote: > > > > Am 30. April 2023 03:21:47 MESZ schrieb Simon Glass : > >These files should have both 'always' and 'targets' so that dependencies > >are detected correctly. > > > >When only 'always' is used, the target is built every t

Re: [PATCH 2/2] x86: Switch QEMU over to use the bochs driver

2023-05-01 Thread Simon Glass
Hi Heinrich, On Sat, 29 Apr 2023 at 20:38, Heinrich Schuchardt wrote: > > > > Am 30. April 2023 04:31:57 MESZ schrieb Simon Glass : > >This is more convenient since it does not require a video BIOS. Enable > >it for QEMU. > > Does this require a change in how QEMU is invoked? If so, please add a

Re: [PATCH v5 1/3] regulator: implement basic reference counter

2023-05-01 Thread Simon Glass
Hi Eugen, On Mon, 1 May 2023 at 02:12, Eugen Hristev wrote: > > On 4/30/23 21:21, Jonas Karlman wrote: > > Hi Tim, > > On 2023-04-28 18:36, Tim Harvey wrote: > >> On Fri, Apr 28, 2023 at 12:39 AM Eugen Hristev > >> wrote: > >>> > >>> On 4/28/23 02:39, Tim Harvey wrote: > On Wed, Apr 19, 202

Re: [PATCH v5 1/3] regulator: implement basic reference counter

2023-05-01 Thread Tim Harvey
On Mon, May 1, 2023 at 1:12 AM Eugen Hristev wrote: > > On 4/30/23 21:21, Jonas Karlman wrote: > > Hi Tim, > > On 2023-04-28 18:36, Tim Harvey wrote: > >> On Fri, Apr 28, 2023 at 12:39 AM Eugen Hristev > >> wrote: > >>> > >>> On 4/28/23 02:39, Tim Harvey wrote: > On Wed, Apr 19, 2023 at 6:45

Re: [PATCH] scripts/Makefile.lib: also consider $(CONFIG_SYS_BOARD)-u-boot.dtsi

2023-05-01 Thread Simon Glass
Hi Rasmus, On Mon, 1 May 2023 at 02:49, Rasmus Villemoes wrote: > > On 27/04/2023 19.31, Tom Rini wrote: > >> > >> Well, I'm not sure there's a use case for building all of the extra > >> device trees. I think what I'll do right now is fire off a CI run (or a > >> few, in the event of problems) w

[ANN] U-Boot v2023.07-rc1 released

2023-05-01 Thread Tom Rini
Hey all, It seems that I'm very hit or miss on getting -rc1 out in time. I had convinced myself that I had planned for it to be May 1 and so ignored my reminder last week, as I had just gotten back from vacation. So, here we are, and I'm just going to go short for -rc2 to get us back on track. I'

Re: [PATCH v2] arch: arm: mach-k3: Delete tifs node in DT fixup

2023-05-01 Thread Andrew Davis
On 4/26/23 9:13 AM, Kumar, Udit wrote: Hi Neha, On 4/26/2023 5:31 PM, Neha Malcom Francis wrote: Hi Udit On 26/04/23 16:09, Kumar, Udit wrote: Hi Neha, Hi Udit, [..] I do have a general doubt; why do we have only atf-sram sub-node in msmc_sram in all other devices (j721e, j7200 and am6

Re: [PATCH] cmd/fdt: fix conf node lookup failure check

2023-05-01 Thread Bin Meng
Hi, On Mon, May 1, 2023 at 4:19 PM Baruch Siach wrote: > > fit_conf_get_node() returns negative value on error. > > Signed-off-by: Baruch Siach > --- > cmd/fdt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > There is already a patch on the ML before: https://patchwork.ozlabs.org/p

Re: Pull request: u-boot-sunxi/master for 2023.07

2023-05-01 Thread Tom Rini
On Mon, May 01, 2023 at 12:18:33AM +0100, Andre Przywara wrote: > Hi Tom, > > please pull the second part of the sunxi pull request for this cycle. > Another bunch of patches that replace old-school U-Boot hacks with > proper DM based code, this time for the raw NAND flash driver, and the > USB P

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Tom Rini
On Sun, Apr 30, 2023 at 11:20:35PM +0200, Marek Vasut wrote: > In case NET networking is not enabled, it is not possible to compile > the USB ethernet gadget. Protect the symbols in Makefile to avoid build > failure. Such build failure may occur e.g. in case NET and USB ethernet > gadget is enable

RE: atmel_sdhci: SDMMC_CD pin still needed for card detection despite EMMC set to non-removable

2023-05-01 Thread Zixun Li
Hi, > Can you find some place to set this bit in the atmel sdhci driver, and not in > the core? > The MC1R register is specific to at91 device. I've overridden get_cd of the driver, below is the patch: From e186af71297e9ae6ce241a85bff64683949f0e1b Mon Sep 17 00:00:00 2001 From: Zixun LI Date:

Re: [PATCH] arm: mach-k3: am625_init: Add Erratum WA for RTC startup

2023-05-01 Thread Nishanth Menon
On 14:26-20230427, Bryan Brattlof wrote: > From: Nishanth Menon > > Add erratum i2327 work around for initialization for RTC > interrupt where interrupt is stuck for ever at startup. Unfortunately, > this workaround needs to be applied under 1 second of boot. > > Signed-off-by: Nishanth Menon >

[PATCH 1/1] MAINTAINERS: update SiFive HiFive Unmatched maintainers

2023-05-01 Thread Heinrich Schuchardt
Email account pragnesh.pa...@sifive.com does not exist anymore. Signed-off-by: Heinrich Schuchardt --- board/sifive/unmatched/MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/board/sifive/unmatched/MAINTAINERS b/board/sifive/unmatched/MAINTAINERS index 94c9510bfa..e601a0f328 10064

[PATCH 1/1] doc: correct HiFive Unmatched boot description

2023-05-01 Thread Heinrich Schuchardt
Main U-Boot is loaded by sector number, not by partition GUID type. Fixes: 70415e1e528d ("board: sifive: add HiFive Unmatched board support") Signed-off-by: Heinrich Schuchardt --- doc/board/sifive/unmatched.rst | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/board/

[PATCH 1/1] doc: fix StarFive VisionFive v2 documentation

2023-05-01 Thread Heinrich Schuchardt
The number of the partition that U-Boot SPL loads the main U-Boot from is defined as 2 by CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION=0x2. The partition type GUID is not used currently. Reword the description of the boot process to make it clearer. Fixes: 5ecf9b0b8a75 ("board: starfive: add StarFi

[PATCH] rockchip: Pinebook Pro: Fix emmc default configuration

2023-05-01 Thread Wolfgang Zarre
If u-boot is installed on the internal emmc, then this will allow to boot without failure. Signed-off-by: Wolfgang Zarre --- configs/pinebook-pro-rk3399_defconfig | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configs/pinebook-pro-rk3399_defconfig b/configs/p

Re: [PATCH v2 18/30] sandbox: Disable raw Ethernet on MSYS2

2023-05-01 Thread Bin Meng
Hi Simon, On Sun, Apr 30, 2023 at 9:30 AM Simon Glass wrote: > > This relies on Linux features so cannot be built for Windows. Drop it. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > arch/sandbox/cpu/Makefile | 2 ++ > drivers/net/Makefile | 2 ++ > 2 files changed, 4 i

Re: [PATCH v2 17/30] Kbuild: Detect including an MSYS2 path

2023-05-01 Thread Bin Meng
Hi Simon, On Sun, Apr 30, 2023 at 9:30 AM Simon Glass wrote: > > The source-tree directory is prepended to relative include paths, but this > does not work on Windows, where a path may have a drive letter like C: at > the start of it. > > This breaks SDL which includes an absolute path to the hea

Re: [PATCH v2 16/30] Makefile: Disable LTO when not building with gcc

2023-05-01 Thread Bin Meng
Hi Simon, On Sun, Apr 30, 2023 at 9:30 AM Simon Glass wrote: > > For MSYS2 this creates a lot of errors of the form: > > `__stack_chk_fail' referenced in section `.text' of ...ltrans.o: defined >in discarded section `.text' of common/stackprot.o (symbol from plugin) > > For clang it doesn't w

Re: [PATCH v2 15/30] ctype: Avoid using a symlink

2023-05-01 Thread Bin Meng
Hi Simon, On Sun, Apr 30, 2023 at 9:30 AM Simon Glass wrote: > > Windows doesn't really support symlinks so fails to build this file. Use > a single-line #include instead. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > include/ctype.h | 7 ++- > 1 file changed, 6 inserti

Re: [PATCH v2 14/30] test: Avoid strange symbols in the assembler file

2023-05-01 Thread Bin Meng
On Sun, Apr 30, 2023 at 9:30 AM Simon Glass wrote: > > This works correctly on Linux with ELF but not on Windows with PE, since > it creates assembly symbols with invalid names. > > Use the lowest/highest valid characters instead. This should still work > correctly, since we have no tests starting

Re: [PATCH] scripts/Makefile.lib: also consider $(CONFIG_SYS_BOARD)-u-boot.dtsi

2023-05-01 Thread Rasmus Villemoes
On 27/04/2023 19.31, Tom Rini wrote: >> >> Well, I'm not sure there's a use case for building all of the extra >> device trees. I think what I'll do right now is fire off a CI run (or a >> few, in the event of problems) where we just use the logic of >> 3609e1dc5f4d and see what falls down. > > So

[PATCH] cmd/fdt: fix conf node lookup failure check

2023-05-01 Thread Baruch Siach
fit_conf_get_node() returns negative value on error. Signed-off-by: Baruch Siach --- cmd/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fdt.c b/cmd/fdt.c index aae3278526c4..2401ea8b44cb 100644 --- a/cmd/fdt.c +++ b/cmd/fdt.c @@ -733,7 +733,7 @@ static int do_fdt(s

Re: [PATCH v5 1/3] regulator: implement basic reference counter

2023-05-01 Thread Eugen Hristev
On 4/30/23 21:21, Jonas Karlman wrote: Hi Tim, On 2023-04-28 18:36, Tim Harvey wrote: On Fri, Apr 28, 2023 at 12:39 AM Eugen Hristev wrote: On 4/28/23 02:39, Tim Harvey wrote: On Wed, Apr 19, 2023 at 6:45 AM Eugen Hristev wrote: Some devices share a regulator supply, when the first one wi