[PATCH v2 7/8] dts: starfive: Add JH7110 Cadence USB dts node

2024-07-03 Thread Minda Chen
Add Jh7110 Cadence USB dts node, Visionfive2 default setting is USB 2.0 device. Signed-off-by: Minda Chen --- .../dts/jh7110-starfive-visionfive-2.dtsi | 5 ++ arch/riscv/dts/jh7110.dtsi| 52 +++ 2 files changed, 57 insertions(+) diff --git

[PATCH v2 2/8] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2024-07-03 Thread Minda Chen
Add Starfive JH7110 USB 2.0 PHY driver, which is generic PHY driver. Signed-off-by: Minda Chen --- drivers/phy/Kconfig| 1 + drivers/phy/Makefile | 1 + drivers/phy/starfive/Kconfig | 14 +++ drivers/phy/starfive/Makefile | 6 ++

[PATCH v2 8/8] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-07-03 Thread Minda Chen
Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index

[PATCH v2 6/8] configs: starfive: Add visionfive2 cadence USB configuration

2024-07-03 Thread Minda Chen
Add cadence USB confiuration. Signed-off-by: Minda Chen --- configs/starfive_visionfive2_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index 174ac24dc7..35137eec59 100644 ---

[PATCH v2 4/8] usb: cdns: starfive: Add cdns USB driver

2024-07-03 Thread Minda Chen
Add cdns USB3 wrapper driver. Signed-off-by: Minda Chen --- drivers/usb/cdns3/Kconfig | 7 ++ drivers/usb/cdns3/Makefile | 2 + drivers/usb/cdns3/cdns3-starfive.c | 183 + 3 files changed, 192 insertions(+) create mode 100644

[PATCH v2 5/8] pinctrl: starfive: Setup USB default disable overcurrent pin

2024-07-03 Thread Minda Chen
For some JH7110 boards, USB host overcurent pin is not reserved, To make USB host work, overcurrent pin must be disabled. So set the pin default disabled. Signed-off-by: Minda Chen --- drivers/pinctrl/starfive/pinctrl-jh7110-sys.c | 11 +-- 1 file changed, 9 insertions(+), 2

[PATCH v2 3/8] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2024-07-03 Thread Minda Chen
Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic PHY driver and can be used as USB 3.0 driver. Signed-off-by: Minda Chen --- drivers/phy/starfive/Kconfig | 7 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-pcie.c | 202

[PATCH v2 1/8] usb: cdns3: Set USB PHY mode in cdns3_core_init_role()

2024-07-03 Thread Minda Chen
USB PHY maybe need to set PHY mode in different USB dr mode. So translate to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen --- drivers/usb/cdns3/core.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/usb/cdns3/core.c

[PATCH v2 0/7] Add Starfive JH7110 Cadence USB driver

2024-07-03 Thread Minda Chen
Add Starfive JH7110 Cadence USB driver and related PHY driver. So the codes can be used in visionfive2 and star64 7110 board. The driver is almost the same with kernel driver. Test with Star64 JH7110 board USB 3.0 + USB 2.0 host. The code can work. - Star64 using USB 3.0 and USB 2.0 host must

Re: [PATCH 0/4] fs: ubifs: Fix crash and add safeguards

2024-07-03 Thread Heiko Schocher
Hello Alexander, On 03.07.24 12:12, Alexander Dahl wrote: Hei hei, filesystem handling is different in U-Boot and beyond that UBI/UBIFS is different from other filesystems in U-Boot. There's UBI and UBIFS code ported from Linux (quite old already now, maybe someone wants to update that?), and

Re: [PATCH v5 4/6] configs: am62x_evm_*: Enable USB and DFU support

2024-07-03 Thread Jon Humphreys
Martyn Welch writes: > On Thu, 2024-05-23 at 15:08 -0500, Jon Humphreys wrote: >> Martyn Welch writes: >> >> > From: Sjoerd Simons >> > >> > Provide config fragments to enable USB host as well as USB gadget >> > and DFU >> > support for a53 and r5. This relevant fragment is included into the

Re: (subset) [PATCH 0/3] cmd: avoid duplicate weak functions

2024-07-03 Thread Tom Rini
On Sun, 16 Jun 2024 19:31:02 +0200, Heinrich Schuchardt wrote: > If we have multiple weak implementations of functions, the linker might > choose any of these. > > ARM and RISC-V already provide a weak implementation of flush_dcache_all() > but cmd/cache.c provides another implementation. Add an

Re: [PATCH 1/7] m68k: Implement a default flush_dcache_all

2024-07-03 Thread Tom Rini
On Wed, 19 Jun 2024 15:27:53 -0600, Tom Rini wrote: > Implement a weak default version of flush_dcache_all which is based on > the ARM default, which is to flush the entire range via > flush_dcache_range(...). > > Applied to u-boot/master, thanks! -- Tom

[PATCH] bootstash: Do not provide a default address for all

2024-07-03 Thread Tom Rini
A valid memory location to stash bootstage information at will be architecture dependent. Move the existing defaults to the main Kconfig file for this option and set 0x0 as the default only for sandbox. Signed-off-by: Tom Rini --- Cc: Simon Glass --- arch/arm/mach-stm32mp/Kconfig.13x | 3 ---

[PATCH] test/py/tests/test_fpga.py: Correct check for legacy image format support

2024-07-03 Thread Tom Rini
The build option to support images of type 'IMAGE_FORMAT_LEGACY' is CONFIG_LEGACY_IMAGE_FORMAT so update the pytest to check for the correct option. Signed-off-by: Tom Rini --- test/py/tests/test_fpga.py | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

Re: Please pull u-boot-ubi

2024-07-03 Thread Tom Rini
On Wed, Jul 03, 2024 at 11:12:52AM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-ubi.git master > > The following changes since commit 65fbdab27224ee3943a89496b21862db83c34da2: > > Merge branch 'next' (2024-07-01 15:00:56 -0600) > > are available in the Git

Re: Please pull u-boot-dm

2024-07-03 Thread Tom Rini
On Wed, Jul 03, 2024 at 09:07:58AM +0100, Simon Glass wrote: > Hi Tom, > > This one is for -master and I dropped the offending commit. It will > have to wait until someone responds on the MX9 bug. > >

Re: [PATCH] msc_sm2s_imx8mp: Adjust the initrd_addr location

2024-07-03 Thread Tom Rini
On Wed, Jul 03, 2024 at 03:07:47PM -0300, Fabio Estevam wrote: > Hi Tom, > > On Wed, Jul 3, 2024 at 3:03 PM Tom Rini wrote: > > > Shouldn't fdt_addr_r change too? This is making me suspect the whole map > > is too small for safety, how much memory does the platform have at > > minimum? > > It

Re: [PATCH] msc_sm2s_imx8mp: Adjust the initrd_addr location

2024-07-03 Thread Fabio Estevam
Hi Tom, On Wed, Jul 3, 2024 at 3:03 PM Tom Rini wrote: > Shouldn't fdt_addr_r change too? This is making me suspect the whole map > is too small for safety, how much memory does the platform have at > minimum? It has 2GB of RAM. Changing only initrd_addr and keeping fdt_addr_r unchanged

Re: [PATCH] msc_sm2s_imx8mp: Adjust the initrd_addr location

2024-07-03 Thread Tom Rini
On Wed, Jul 03, 2024 at 02:57:27PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Booting an initramfs with the current address may lead to initramfs > corruption and boot failure. > > Move it 0x4800 which avoids initramfs overlap and allows a > successful initramfs boot. > >

[PATCH] msc_sm2s_imx8mp: Adjust the initrd_addr location

2024-07-03 Thread Fabio Estevam
From: Fabio Estevam Booting an initramfs with the current address may lead to initramfs corruption and boot failure. Move it 0x4800 which avoids initramfs overlap and allows a successful initramfs boot. Signed-off-by: Fabio Estevam --- include/configs/msc_sm2s_imx8mp.h | 2 +- 1 file

Re: [PATCH 0/9] Generalize PHYTEC Overlay Handling

2024-07-03 Thread Wadim Egorov
Am 03.07.24 um 07:41 schrieb Daniel Schultz: The overlays are specified in the bootenv.txt file that is loaded into the environment. Then these overlays get loaded and applied via a script. These scripts for loading and applying devicetree overlays are identical for many phytec boards. Create

Re: [PATCH 0/9] Generalize PHYTEC Overlay Handling

2024-07-03 Thread Tom Rini
On Tue, Jul 02, 2024 at 10:41:53PM -0700, Daniel Schultz wrote: > The overlays are specified in the bootenv.txt file that is loaded into > the environment. Then these overlays get loaded and applied via a script. > These scripts for loading and applying devicetree overlays are identical > for

Re: [PATCH 08/12] net/httpd: add httpd common code

2024-07-03 Thread Tom Rini
On Wed, Jul 03, 2024 at 06:06:52AM +0400, Mikhail Kshevetskiy wrote: > > On 7/1/24 19:54, Peter Robinson wrote: > > Hi Mikhail, > > > >> This patch adds HTTP/1.1 compatible web-server that can be used > >> by other. Server supports GET, POST, and HEAD requests. On client > >> request it will call

Re: [PATCH v2 0/2] scripts/Makefile.lib: EFI: Use capsule CRT instead of ESL

2024-07-03 Thread Ilias Apalodimas
On Fri, Jun 14, 2024 at 11:54:41AM -0500, Jon Humphreys wrote: > Ilias Apalodimas writes: > > > Hi Jonathan > > > > On Thu, 13 Jun 2024 at 23:28, Jonathan Humphreys wrote: > >> > >> Use the capsule's public key certificate rather than a prebuilt ESL > >> generated from the certificate. The ESL

Re: [PATCH] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present

2024-07-03 Thread Michael Nazzareno Trimarchi
Hi all Working on the clock now. I have done a different implementation clk-mux, clk-gate I have added a clk_generic_set_rate that is a stub that propagate to the parent, I think that should work the same but wihout this while and even on preparation on more changes I need. Can be work on your

Re: [PATCH 2/2] clk: imx: add mux ops for i.MX8M composite clk

2024-07-03 Thread Michael Nazzareno Trimarchi
Hi Fabio On Wed, Jul 3, 2024 at 3:44 PM Fabio Estevam wrote: > > Hi Michael, > > On Wed, Jul 3, 2024 at 6:15 AM Michael Trimarchi > wrote: > > > > Upstream Linux commit f90b68d6c8b0. > > > > The CORE/BUS root slice has following design, simplied graph: > > The difference is core not have

Re: [PATCH v4 02/29] mbedtls: Add script to update MbedTLS subtree

2024-07-03 Thread Raymond Mao
Hi Jerome, On Wed, 3 Jul 2024 at 03:16, Jerome Forissier wrote: > > > On 7/2/24 22:56, Tom Rini wrote: > > On Tue, Jul 02, 2024 at 11:22:38AM -0700, Raymond Mao wrote: > > > >> lib/mbedtls/update-mbedtls-subtree.sh is a wrapper of git subtree > >> commands. > >> Usage from U-Boot top directory,

Re: [PATCH v4 02/29] mbedtls: Add script to update MbedTLS subtree

2024-07-03 Thread Raymond Mao
Hi Tom, On Tue, 2 Jul 2024 at 16:57, Tom Rini wrote: > On Tue, Jul 02, 2024 at 11:22:38AM -0700, Raymond Mao wrote: > > > lib/mbedtls/update-mbedtls-subtree.sh is a wrapper of git subtree > > commands. > > Usage from U-Boot top directory, run: > > > > $ ./lib/mbedtls/update-mbedtls-subtree.sh

Re: [PATCH V3 0/4] Low Power Mode: Pakage TIFS Stub on BeaglePlay

2024-07-03 Thread Sebin Francis
On 01/07/24 20:54, Nishanth Menon wrote: On 15:25-20240701, Sebin Francis wrote: For HS-FS device we need to sign the fs-stub with customer key. DM firmware cannot have a component which is signed using customer key. Please explain please why DM cannot have a component signed using a

Re: [PATCH 1/2] led: Implement software led blinking

2024-07-03 Thread Rasmus Villemoes
Mikhail Kshevetskiy writes: > + > +static int led_sw_set_period(struct udevice *dev, int period_ms) > +{ > + struct led_uc_plat *uc_plat = dev_get_uclass_plat(dev); > + struct cyclic_info *cyclic = uc_plat->cyclic; > + struct led_ops *ops = led_get_ops(dev); > + char

[PATCH] arm: mediatek: split config into separate options for the board and SoC

2024-07-03 Thread Leith Bade
The current MediaTek Kconfig layout prevents the addition of new board targets that require the existing SoC drivers. By making the SoC drivers depend on new CONFIG_MT variables, it becomes possible to select these drivers when adding new boards to the board selection list. The existing

[PATCH 9/9] board: phytec: phycore_am64x: Use k3_mmc.env logic

2024-07-03 Thread Daniel Schultz
Use our common environment file to implement MMC boot. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am64x/phycore_am64x.env | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/board/phytec/phycore_am64x/phycore_am64x.env

[PATCH 8/9] board: phytec: phycore_am62x: Use k3_mmc.env logic

2024-07-03 Thread Daniel Schultz
Use our common environment file to implement MMC boot. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am62x/phycore_am62x.env | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/board/phytec/phycore_am62x/phycore_am62x.env

[PATCH 7/9] include: env: phytec: k3_mmc: Apply overlays during boot

2024-07-03 Thread Daniel Schultz
Include the overlays.env file and run the apply routine before booting the Kernel. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_mmc.env | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env index e1208a6eea1..3d3595ceb7e

[PATCH 6/9] include: env: phytec: Add common mmc boot for K3 SoMs

2024-07-03 Thread Daniel Schultz
This environment include can be used to boot from a MMC device for PHYTEC's K3-based SoMs. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_mmc.env | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 include/env/phytec/k3_mmc.env diff --git

[PATCH 5/9] include: env: phytec: renaming of variables according to bootstd doc

2024-07-03 Thread Daniel Schultz
From: Benjamin Hahn Rename existing environment variables according to the bootstd doc. Renamed variables are fdto_addr, bootenv_addr, fdt_addr. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz --- include/env/phytec/overlays.env | 19 ++- 1 file changed, 10

[PATCH 4/9] board: phytec: renaming of variables according to bootstd doc

2024-07-03 Thread Daniel Schultz
From: Benjamin Hahn Rename existing environment variables according to the bootstd doc. Renamed variables are fdto_addr, bootenv_addr, fdt_addr and fdt_file. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz --- .../phytec/phycore_imx8mp/phycore_imx8mp.env | 20 +--

[PATCH 3/9] phycore_imx93: include common overlays.env

2024-07-03 Thread Daniel Schultz
From: Benjamin Hahn Include the common overlays env file for phycore_imx93. The common overlays env file supports disabling loading overlays by setting the no_overlays variable. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz --- board/phytec/phycore_imx93/phycore_imx93.env | 25

[PATCH 2/9] phycore-imx8mp: Add overlay and bootenv.txt support

2024-07-03 Thread Daniel Schultz
From: Benjamin Hahn Add support for loading bootenv.txt as well as loading and applying overlays during boot from mmc and net. ${no_bootenv}: Prevent loading external bootenv.txt environment. Use ${overlays} variable directly from u-boot environment. ${no_overlay}: Do not load

[PATCH 1/9] include: env: phytec: Create env file for loading and applying overlays

2024-07-03 Thread Daniel Schultz
From: Benjamin Hahn The env scripts for loading and applying overlays are identical for many PHYTEC Boards. Create a common env that can be included. The env variables bootenv_addr and fdto_addr are board specific and need to be set in the board specific file. The env variable get_cmd also

[PATCH 0/9] Generalize PHYTEC Overlay Handling

2024-07-03 Thread Daniel Schultz
The overlays are specified in the bootenv.txt file that is loaded into the environment. Then these overlays get loaded and applied via a script. These scripts for loading and applying devicetree overlays are identical for many phytec boards. Create a common overlays.env that can be included. Add

Re: [PATCH 2/2] clk: imx: add mux ops for i.MX8M composite clk

2024-07-03 Thread Fabio Estevam
Hi Michael, On Wed, Jul 3, 2024 at 6:15 AM Michael Trimarchi wrote: > > Upstream Linux commit f90b68d6c8b0. > The CORE/BUS root slice has following design, simplied graph: > The difference is core not have pre_div block. > A composite core/bus clk has 8 inputs for mux to select, saying

[PATCH] configs: phycore-imx8mp: Disable CONFIG_ANDROID_BOOT_IMAGE

2024-07-03 Thread Benjamin Hahn
CONFIG_FIT_EXTERNAL_OFFSET=0x3000 CONFIG_SPL_LOAD_FIT=y --- base-commit: 65fbdab27224ee3943a89496b21862db83c34da2 change-id: 20240703-wip-bhahn-disable_config_android_boot_image-326ea0921a03 Best regards, -- Benjamin Hahn

Re: [PATCH v1] board: mpfs_icicle: implement board_fdt_blob_setup()

2024-07-03 Thread Conor Dooley
On Tue, Jun 25, 2024 at 10:08:06AM +0100, Conor Dooley wrote: > The firmware on the Icicle is capable of providing a devicetree in a1 to > U-Boot, but until now the devicetree has been packaged in a "payload" [1] > alongside U-Boot (or other bootloaders/RTOSes) and appended to the image. > The

Re: [PATCH v4 29/29] configs: enable MbedTLS as default setting

2024-07-03 Thread Ilias Apalodimas
On Tue, 2 Jul 2024 at 21:35, Raymond Mao wrote: > > Enable MbedTLS as default setting for qemu arm64 > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - None. > Changes in v3 > - None. > Changes in v4 > - removed the unused CONFIG_MBEDTLS_LIB_TLS. > > configs/qemu_arm64_defconfig | 4

Re: [PATCH v4 17/29] mbedtls: add public key porting layer

2024-07-03 Thread Ilias Apalodimas
On Tue, 2 Jul 2024 at 21:30, Raymond Mao wrote: > > Add porting layer for public key on top of MbedTLS X509 library. > Introduce _LEGACY and _MBEDTLS kconfigs for public key legacy and > MbedTLS implementations respectively. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Move the

[PATCH v2 2/2] bootstd: cros: store partition type in an efi_guid_t

2024-07-03 Thread Vincent Stehlé
The scan_part() function uses a struct uuid to store the little-endian partition type GUID, but this structure should be used only to contain a big-endian UUID. Use an efi_guid_t instead and use guidcmp() for the comparison. Suggested-by: Heinrich Schuchardt Signed-off-by: Vincent Stehlé Cc:

[PATCH v2 1/2] efi: move guid helper functions to efi.h

2024-07-03 Thread Vincent Stehlé
Move the guidcmp() and guidcpy() functions to efi.h, near the definition of the efi_guid_t type those functions deal with. Signed-off-by: Vincent Stehlé Cc: Heinrich Schuchardt Cc: Ilias Apalodimas Cc: Tom Rini --- include/efi.h| 10 ++ include/efi_loader.h | 10 -- 2

[PATCH v2 0/2] Respin bootstd cros patch into a series of two

2024-07-03 Thread Vincent Stehlé
Hi, This is a respin of this patch [1] after discussion [2]. Thanks to Simon and Heinrich for their reviews. To use the guidcmp() function, as suggested by Heinrich, we need to make it available to bootmeth_cros.c and I think that the cleanest way to do that is (arguably) to move the guid helper

Re: [PATCH v4 09/29] makefile: add mbedtls include directories

2024-07-03 Thread Ilias Apalodimas
On Tue, 2 Jul 2024 at 21:27, Raymond Mao wrote: > > Add the mbedtls include directories into the build system. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - None. > Changes in v3 > - Remove changes for PLATFORM_CPPFLAGS. > Changes in v4 > - Fix errors when building without "O=". > -

Re: [PATCH v4 14/29] public_key: move common functions to public key helper

2024-07-03 Thread Ilias Apalodimas
Hi Raymond On Tue, 2 Jul 2024 at 21:29, Raymond Mao wrote: > > Move public_key_free and public_key_signature_free as helper > functions that can be shared by legacy crypto lib and MbedTLS > implementation. > > Signed-off-by: Raymond Mao > --- > Changes in v4 > - Initial patch. > >

[PATCH 4/4] fs: ubifs: Add volume mounted check

2024-07-03 Thread Alexander Dahl
Safety guard in the U-Boot filesystem glue code, because these functions are called from different parts of the codebase. For generic filesystem handling this should have been checked in blk_get_device_part_str() already. Commands from cmd/ubifs.c should also check this before calling those

[PATCH 3/4] fs: ubifs: Make k(z)alloc/kfree symmetric

2024-07-03 Thread Alexander Dahl
Although kfree() is in fact only a slim wrapper to free() in U-Boot, use kfree() here, because those structs where allocated with kalloc() or kzalloc(). Signed-off-by: Alexander Dahl --- fs/ubifs/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ubifs/super.c

[PATCH 1/4] fs: ubifs: Fix memleak and double free in u-boot wrapper functions

2024-07-03 Thread Alexander Dahl
When mounting ubifs e.g. through command 'ubifsmount' one global static superblock 'ubifs_sb' is used _and_ the requested volume is opened (like in Linux). The pointer returned by 'ubifs_open_volume()' is stored in that superblock struct and freed later on cmd 'ubifsumount' or another call to

[PATCH 2/4] fs: ubifs: Set pointers to NULL after free

2024-07-03 Thread Alexander Dahl
Global superblock pointer 'ubifs_sb' and volume pointer 'ubi' of type struct ubi_volume_desc in private member sb->s_fs_info of type struct ubifs_info, can be allocated and freed at runtime, and allocated and freed again, depending which console or script commands are run. In some cases ubifs_sb

[PATCH 0/4] fs: ubifs: Fix crash and add safeguards

2024-07-03 Thread Alexander Dahl
Hei hei, filesystem handling is different in U-Boot and beyond that UBI/UBIFS is different from other filesystems in U-Boot. There's UBI and UBIFS code ported from Linux (quite old already now, maybe someone wants to update that?), and there's "glue code" or "wrapper code" to interface with

Re: [PATCH RFC] gpio: Fix probing of gpio-hogs

2024-07-03 Thread Chris Webb
Chris Webb wrote: Tom Rini wrote: Adding Marek, as the author of commit 48b3ecbedf82 ("gpio: Get rid of gpio_hog_probe_all()"). Thanks! I don't claim this is the correct way to fix this, just that it works. Specifically, the two things I found that got gpio-hog working were (a)

Re: [PATCH v4 15/29] x509: move common functions to x509 helper

2024-07-03 Thread Ilias Apalodimas
On Tue, 2 Jul 2024 at 21:29, Raymond Mao wrote: > > Move x509_check_for_self_signed as a common helper function > that can be shared by legacy crypto lib and MbedTLS implementation. > > Signed-off-by: Raymond Mao > --- > Changes in v4 > - Initial patch. > > lib/crypto/Makefile | 1 + >

Re: [PATCH v4 16/29] pkcs7: move common functions to PKCS7 helper

2024-07-03 Thread Ilias Apalodimas
Hi Raymond On Tue, 2 Jul 2024 at 21:30, Raymond Mao wrote: > > Move pkcs7_get_content_data as a helper function that can be > shared by legacy crypto lib and MbedTLS implementation. > > Signed-off-by: Raymond Mao > --- > Changes in v4 > - Initial patch. > > lib/crypto/Makefile | 1 + >

Re: [PATCH] arm: mediatek: split config into separate options for the board and SoC

2024-07-03 Thread 高惟杰
Hi Leith, I have a better example for reference: arch/mips/mach-mtmips ARCH_MTMIPS is defined for the entire MediaTek MIPS platform, same as ARCH_MEDIATEK. The mtmips then defined its SoC families: SOC_MT7620, SOC_MT7621 and SOC_MT7628 Each SoC has its own folder and Kconfig, e.g.:

Please pull u-boot-ubi

2024-07-03 Thread Heiko Schocher
Hello Tom, please pull from u-boot-ubi.git master The following changes since commit 65fbdab27224ee3943a89496b21862db83c34da2: Merge branch 'next' (2024-07-01 15:00:56 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-ubi.git

Re: [PATCH] bootstd: cros: store partition type in an efi_guid_t

2024-07-03 Thread Vincent Stehlé
On Thu, Jun 27, 2024 at 09:28:04PM +0200, Heinrich Schuchardt wrote: > Hi Heinrich, Thanks for your review. My comments below. Best regards, Vincent. > > Am 27. Juni 2024 19:06:29 MESZ schrieb "Vincent Stehlé" > : > >The scan_part() function uses a struct uuid to store the little-endian >

[PATCH 2/2] clk: imx: add mux ops for i.MX8M composite clk

2024-07-03 Thread Michael Trimarchi
Upstream Linux commit f90b68d6c8b0. The CORE/BUS root slice has following design, simplied graph: The difference is core not have pre_div block. A composite core/bus clk has 8 inputs for mux to select, saying clk[0-7]. It support target(smart) interface and normal interface. Target interface is

[PATCH 1/2] clk: clk-mux: Make public the clk_fetch_parent_index

2024-07-03 Thread Michael Trimarchi
Make public the clk_fetch_parent_index and rename it. This allow us to be reused in driver specialization Signed-off-by: Michael Trimarchi --- drivers/clk/clk-mux.c| 5 ++--- include/linux/clk-provider.h | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 0/2] Support imx8m composite mux

2024-07-03 Thread Michael Trimarchi
The mux ops for i.MX8M composite clk needs to be specialized. In order to reduce the code duplication we need to make public some interface and write a specific function in the mux ops. Those patches implement the behavior Michael Trimarchi (2): clk: clk-mux: Make public the

Re: [PATCH v4 08/29] hash: integrate hash on mbedtls

2024-07-03 Thread Ilias Apalodimas
Hi Raymond On Tue, 2 Jul 2024 at 21:27, Raymond Mao wrote: > > Integrate common/hash.c on the hash shim layer so that hash APIs > from mbedtls can be leveraged by boot/image and efi_loader. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Use the original head files instead of creating

Re: [PATCH 0/2] Import environment variables from FIT configuration

2024-07-03 Thread Lukas Funke
Hi Quentin, On 02.07.2024 15:05, Quentin Schulz wrote: Hi Lukas, On 7/2/24 2:58 PM, Lukas Funke wrote: Hi Quentin, On 02.07.2024 13:37, Quentin Schulz wrote: Hi Lukas, On 7/2/24 1:01 PM, Lukas Funke wrote: Hi Quentin, On 02.07.2024 11:16, Quentin Schulz wrote: Hi Lukas, On 7/2/24 8:48

Re: [PATCH 2/2] led: Add dts property to specify blinking of the led

2024-07-03 Thread Simon Glass
Hi Mikhail, On Wed, 3 Jul 2024 at 02:02, Mikhail Kshevetskiy wrote: > > From: Michael Polyntsov > > The standard property > > linux,default-trigger = "pattern"; > > used to get an effect. No blinking parameters can be set yet. > > Signed-off-by: Michael Polyntsov > Signed-off-by: Mikhail

Re: [PATCH 1/2] led: Implement software led blinking

2024-07-03 Thread Simon Glass
Hi Mikhail, On Wed, 3 Jul 2024 at 02:02, Mikhail Kshevetskiy wrote: > > From: Michael Polyntsov > > If hardware (or driver) doesn't support leds blinking, it's > now possible to use software implementation of blinking instead. > This relies on cyclic functions. > > v2 changes: > * Drop

Please pull u-boot-dm

2024-07-03 Thread Simon Glass
Hi Tom, This one is for -master and I dropped the offending commit. It will have to wait until someone responds on the MX9 bug. https://source.denx.de/u-boot/custodians/u-boot-dm/-/commit/c85a05a5d87ce6f077c41d7e63a4a7953ddb351c The following changes since commit

Re: Please pull u-boot-dm/next

2024-07-03 Thread Simon Glass
Hi Tom, On Tue, 2 Jul 2024 at 20:04, Tom Rini wrote: > > On Tue, Jul 02, 2024 at 04:51:30PM +0100, Simon Glass wrote: > > > Hi Tom, > > > > This is for -next but we need to figure out the patch I just sent > > first. I can redo the pull if that patch is acceptable, or you can > > pick that up

Re: [PATCH v4 06/29] sha1: Remove sha1 non-watchdog API

2024-07-03 Thread Ilias Apalodimas
On Tue, 2 Jul 2024 at 21:26, Raymond Mao wrote: > > We don't need an API specially for non-watchdog since sha1_csum_wd > supports it by disabling CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG. > Set 0x1 as default chunk size for SHA1. > > Signed-off-by: Raymond Mao > --- > Changes in v4 > - Initial

Re: [PATCH v4 02/29] mbedtls: Add script to update MbedTLS subtree

2024-07-03 Thread Jerome Forissier
On 7/2/24 22:56, Tom Rini wrote: > On Tue, Jul 02, 2024 at 11:22:38AM -0700, Raymond Mao wrote: > >> lib/mbedtls/update-mbedtls-subtree.sh is a wrapper of git subtree >> commands. >> Usage from U-Boot top directory, run: >> >> $ ./lib/mbedtls/update-mbedtls-subtree.sh pull >> $