Re: [PATCH 10/13] board: ti: am62px: evm: Enable cache for AM62p

2025-01-22 Thread Chintan Vankar
On 07/01/25 19:53, Roger Quadros wrote: On 07/01/2025 11:38, Chintan Vankar wrote: From: Andreas Dannenberg Enable cache to support Ethernet boot for AM62p-SK. Please give more details in commit log. What happens to Ethernet boot if you don't enable cache? Is this a requirement by Ethe

[PATCH 1/2] pinctrl: qcom: add sc7280 pinctrl driver

2025-01-22 Thread Caleb Connolly
Introduce a pinctrl driver for SC7280/QCM6490, this is used by the RB3 Gen 2, FairPhone 5 and other devices. Signed-off-by: Caleb Connolly --- drivers/pinctrl/qcom/Kconfig | 7 +++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-sc7280.c | 106 +

[PATCH 0/2] Snapdragon SC7280 pinctrl

2025-01-22 Thread Caleb Connolly
Introduce and enable pinctrl support for SC7280 and QCM6490, similarly to other platforms. This was missed during RB3 Gen 2 bringup. --- Caleb Connolly (2): pinctrl: qcom: add sc7280 pinctrl driver qcom_defconfig: enable PINCTRL_QCOM_SC7280 configs/qcom_defconfig|

[PATCH 2/2] qcom_defconfig: enable PINCTRL_QCOM_SC7280

2025-01-22 Thread Caleb Connolly
Signed-off-by: Caleb Connolly --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index cd94315f1765..7a60464120dc 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -92,8 +92,9 @@ CONFIG_PINCONF=y CONFIG

Re: [PATCH 0/3] sunxi: switch three SoC families to OF_UPSTREAM

2025-01-22 Thread Andre Przywara
On Wed, 22 Jan 2025 12:03:24 +0530 Sumit Garg wrote: Hi Sumit, > On Sun, 19 Jan 2025 at 22:13, Andre Przywara wrote: > > > > This series converts boards with the Allwinner F1C100s/F1C200s, A10, A10s > > and A13s SoCs over to OF_UPSTREAM. The .dts and .dtsi files were > > identical between the k

Re: [PATCH v2 32/44] test: Drop the function for running seama tests

2025-01-22 Thread Linus Walleij
On Mon, Jan 20, 2025 at 10:27 PM Simon Glass wrote: > Use the new suite-runner to run these tests instead. > > It is not clear that these actually work, since they are not enabled on > sandbox for some reason. > > Signed-off-by: Simon Glass Acked-by: Linus Walleij Yours, Linus Walleij

[PATCH v1] arch: arm: mach-socfpga: Mailbox buffer and SDM doorbell improvement

2025-01-22 Thread alif . zakuan . yuslaimi
From: Alif Zakuan Yuslaimi The current write and notify SDM to read mechanism has a flaw where SDM is not notified enough to be able to read all the data in the buffer. This is caused by SDM doorbell will only be sent out once the command buffer overflow check is satisfied. If the command buffer

[PATCH 0/6] add support for renaming to EFI_FILE_PROTOCOL.SetInfo()

2025-01-22 Thread Gabriel Dalimonte
This series adds support for file renaming to EFI_FILE_PROTOCOL.SetInfo(). One of the use cases for renaming in EFI is to facilitate boot loader boot counting. No existing filesystems in U-Boot currently include file renaming, resulting in support for renaming at the filesystem level and a concret

[PATCH 3/6] fs: fat: add rename

2025-01-22 Thread Gabriel Dalimonte
The implementation roughly follows the POSIX specification for rename(). The ordering of operations attempting to minimize the chance for data loss in unexpected circumstances. The fatrename command is added mostly for the purpose of testing through the sandbox build. Signed-off-by: Gabriel Dalim

[PATCH 1/6] fs: fat: factor out dentry link create/delete

2025-01-22 Thread Gabriel Dalimonte
Signed-off-by: Gabriel Dalimonte --- fs/fat/fat_write.c | 122 - 1 file changed, 66 insertions(+), 56 deletions(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index ea877ee917..b86e78abc0 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write

[PATCH 2/6] fs: add rename infrastructure

2025-01-22 Thread Gabriel Dalimonte
Signed-off-by: Gabriel Dalimonte --- fs/fs.c | 47 +++ include/fs.h | 13 + 2 files changed, 60 insertions(+) diff --git a/fs/fs.c b/fs/fs.c index 99ddcc5e37..160a43c957 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -143,6 +143,12 @@ static i

Re: [PATCH 09/10] video: rockchip: Add HDMI support for RK3568

2025-01-22 Thread Chaoyi Chen
Hi Dang, On 2025/1/16 17:15, Dang Huynh wrote: HDMI on RK3568 is mostly simplified, all this does is enabling DDC for display timings and HPD. Signed-off-by: Dang Huynh --- drivers/video/rockchip/Makefile | 1 + drivers/video/rockchip/rk3568_hdmi.c | 63 +++

[PATCH 4/6] fs: fat: update parent dirs metadata on rename

2025-01-22 Thread Gabriel Dalimonte
None of the existing fat code appears to update parent dir properties however, the POSIX specification for rename() mentions that the last modified timestamp should be updated. In addition, I believe the ATTR_ARCH attribute should also be reset on the parent directories as the content of those dire

[PATCH 6/6] efi_loader: support file rename in SetInfo()

2025-01-22 Thread Gabriel Dalimonte
Following the UEFI specification. The specification did not seem to delineate if file_name was explicitly a file name only, or could include paths to move the file to a different directory. The more generous interpretation of supporting paths was selected. Signed-off-by: Gabriel Dalimonte --- l

[PATCH 5/6] efi_loader: move path out of file_handle

2025-01-22 Thread Gabriel Dalimonte
In order to support renaming via SetInfo(), path must allow for longer values than what was originally present when file_handle was allocated. Signed-off-by: Gabriel Dalimonte --- lib/efi_loader/efi_file.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/efi

Re: [PATCH 05/10] video: rockchip: Add VOP2 support

2025-01-22 Thread Chaoyi Chen
Hi Dang, On 2025/1/19 21:41, Dang Huynh wrote: Hi Andy, On Sunday, January 19, 2025 9:10:10 AM UTC Andy Yan wrote: Hi Danq, Do you have tests with this u-boot video enabled then boot a linux kernel also with drm display enabled? Yes, I booted Linux with U-Boot VOP2 and Linux VOP2 enabled wi

Re: [PATCH] spi: cadence_qspi: Add missing prototype for cadence_qspi_flash_reset

2025-01-22 Thread Michal Simek
On 1/22/25 14:53, Venkatesh Yadav Abbarapu wrote: Add missing prototype to fix the sparse warning, warning: no previous prototype for 'cadence_qspi_flash_reset' [-Wmissing-prototypes]. Fixes: 6d234a79e9 ("cadence_qspi: Refactor the flash reset functionality") Signed-off-by: Venkatesh Yadav Ab

Re: [PATCH 0/2] pinctrl: add support for X1E80100 TLMM

2025-01-22 Thread Caleb Connolly
On Fri, 15 Nov 2024 16:44:14 +0100, Neil Armstrong wrote: > Add support for TLMM in X1E80100, and enable it in qcom_defconfig > > Applied, thanks! [1/2] pinctrl: qcom: Add X1E80100 pinctrl driver https://source.denx.de/u-boot/custodians/u-boot-snapdragon/-/commit/51a142363d42 [2/2] qco

Re: [PATCH 0/2] pci: Add support for Qualcomm PCIe controller

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 10:46:15 +0100, Neil Armstrong wrote: > Add support for the DWC PCIe controllers found > on the Qualcomm SoCs, it requires introducing > pcie_dw_find_capability() to properly configure > the Host controller capabilities. > > Applied, thanks! [1/2] pci: pcie_dw_common: intr

Re: [PATCH] phy: qcom: add QMP PCIe PHY driver

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 09:54:24 +0100, Neil Armstrong wrote: > Add support for the PCIe QMP PHY on the SM8550, > SM8650 and x1e80100 SoCs. > > The driver is based on the Linux phy/qualcomm/phy-qcom-qmp-pcie.c > driver and adapted to U-Boot. > > > [...] Applied, thanks! [1/1] phy: qcom: add QMP

Re: [PATCH v2 0/3] cmd: ufetch improvements

2025-01-22 Thread Caleb Connolly
On Wed, 11 Dec 2024 23:25:24 +0100, J. Neuschäfer wrote: > Following the recent addition of the "ufetch" command, this patchset > improves it in a few ways. > > Applied, thanks! [1/3] cmd: ufetch: Fix type mismatch on 32-bit https://source.denx.de/u-boot/custodians/u-boot-snapdragon/-/

Re: [PATCH] button: qcom-pmic: add software debounce

2025-01-22 Thread Caleb Connolly
On Wed, 13 Nov 2024 05:51:03 +0100, Caleb Connolly wrote: > This helps with reliability on some platforms. We should probably also > configure the hardware debounce timer eventually. > > Applied, thanks! [1/1] button: qcom-pmic: add software debounce https://source.denx.de/u-boot/custo

Re: [PATCH 0/3] pinctrl: qcom: add clk_req functions

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 09:29:09 +0100, Neil Armstrong wrote: > Add the missing PCIe clk_req functions for the SM8550, SM8650 > and X1E80100 TLMM. > > Depends on: > - > https://lore.kernel.org/all/20241115-topic-x1e80100-pinctrl-v1-0-35f984226...@linaro.org/ > > > [...] Applied, thanks! [1/3] p

Re: [PATCH] regulator: qcom-rpmh-regulator: add support for pmc8380 regulators

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 09:24:47 +0100, Neil Armstrong wrote: > Add the PMC8380 regulator data found on the Snapdragon X Elite platforms. > The tables are imported from the Linux driver. > > Applied, thanks! [1/1] regulator: qcom-rpmh-regulator: add support for pmc8380 regulators https://s

Re: [PATCH v2 0/2] mach-snapdragon: Fix and improve /memory parsing

2025-01-22 Thread Caleb Connolly
On 22/01/2025 17:12, Caleb Connolly wrote: > > On Wed, 22 Jan 2025 10:26:52 +, Sam Day wrote: >> The first commit in this series is a fix for qcom_parse_memory, which is >> currently broken on master (since fc37a73e6679). It's an alternative to >> the patch Caleb proposed a couple of days a

Re: [PATCH 0/2] Clarify DM_FLAG_PROBE_AFTER_BIND behaviour

2025-01-22 Thread Michal Simek
On 1/17/25 08:28, Caleb Connolly wrote: In Simons series reworking autoprobe[1], a discussion came up about DM_FLAG_PROBE_AFTER_BIND, specifically that it wasn't very clear where this flag should be used. This series implements my suggestions made there to clarify the use of this flag, and fi

[PATCH] spi: cadence_qspi: Add missing prototype for cadence_qspi_flash_reset

2025-01-22 Thread Venkatesh Yadav Abbarapu
Add missing prototype to fix the sparse warning, warning: no previous prototype for 'cadence_qspi_flash_reset' [-Wmissing-prototypes]. Fixes: 6d234a79e9 ("cadence_qspi: Refactor the flash reset functionality") Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/cadence_qspi.h | 2 +- 1 file

Re: [PATCH v1 1/2] net: phy: Let gmiitorgmii converter create additional PHY

2025-01-22 Thread Michal Simek
On 1/22/25 08:31, Tapio Reijonen wrote: Hi Michal, On 2025-01-21 15:14, Michal Simek wrote: [You don't often get email from mon...@monstr.eu. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hi, čt 16. 1. 2025 v 14:07 odesílatel Tapio Reijonen napsal: Chan

[PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Quentin Schulz
From: Quentin Schulz A FIT image which is NOT using -E when created by mkimage - that is with image data within the FIT - will fail to apply FDTO if the base FDT image node does not specify a load property (which points to an address in DRAM). This is because we check that the FDT address we want

Re: [PATCH v2 1/2] net: phy: Let gmiitorgmii converter create additional PHY

2025-01-22 Thread Michal Simek
On 1/22/25 10:22, Tapio Reijonen wrote: Change the order to connect gmiitorgmii before PHY creation. The gmiitorgmii create additional in DTS configured PHY during it's configuration. This ensures, that converter sits between the MAC and the external phy MAC <==> GMII2RGMII <==> RGMII_PHY. a

Re: [PATCH v2 0/2] mach-snapdragon: Fix and improve /memory parsing

2025-01-22 Thread Caleb Connolly
On Wed, 22 Jan 2025 10:26:52 +, Sam Day wrote: > The first commit in this series is a fix for qcom_parse_memory, which is > currently broken on master (since fc37a73e6679). It's an alternative to > the patch Caleb proposed a couple of days ago > (20250117102734.3725009-2-caleb.conno...@linaro

[PULL] Please pull qcom/qcom-next

2025-01-22 Thread Caleb Connolly
Hi Tom, The highlights are: * Fixed boot regression due to broken memory parsing * Enable HW RNG and KASLR on all platforms * Add support for Snapdragon X1 Elite hardware (clk/pinctrl) * Add support for QCS9100 ride automotive development platform (clk/ufs) * Add support for PCIe on SM8550, SM865

Re: [PATCH v3 0/6] Enable QCOM QCS9100 Ride platform support

2025-01-22 Thread Caleb Connolly
On Fri, 10 Jan 2025 10:38:11 +0530, Varadarajan Narayanan wrote: > The following patch series enables support for QCOM QCS9100 based > Ride platform. The QCS9100 SoC is a derivative of SA8775p and hence > this series makes use of the SA8775p related code to enable the > QCS9100 based Ride platfor

Re: [PATCH 0/4] clk: qcom: add PCIe clocks

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 09:34:25 +0100, Neil Armstrong wrote: > Add the PCIe clocks for the SM8550, SM8650 and X1E80100 > platforms to enable support for PCIe feature. > > Depends on: > - > https://lore.kernel.org/all/20241118-topic-x1e80100-clk-v1-0-8841e87ad...@linaro.org/ > > > [...] Applied,

Re: [PATCH] MAINTAINERS: maintain qcs9100_defconfig

2025-01-22 Thread Marek Vasut
On 1/22/25 5:09 PM, Caleb Connolly wrote: Add this to ARM SNAPDRAGON maintainers entry. Signed-off-by: Caleb Connolly --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ba31f86feb6d..5a575f43277f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH v2 2/2] mach-snapdragon: support parsing memory info from external FDT

2025-01-22 Thread Sam Day
qcom_parse_memory is updated to return a -ENODATA error if the passed FDT does not contain a /memory node, or that node is incomplete (size=0) board_fdt_blob_setup first tries to call qcom_parse_memory with the internal FDT (if present+valid). If that fails, it tries again with the external FDT (a

Re: [PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Quentin Schulz
Hi Marek, On 1/22/25 3:32 PM, Marek Vasut wrote: On 1/22/25 3:21 PM, Quentin Schulz wrote: [...] @@ -2395,17 +2395,18 @@ int boot_get_fdt_fit(struct bootm_headers *images, ulong addr,   /* we need to apply overlays */   #ifdef CONFIG_OF_LIBFDT_OVERLAY -    image_start = addr; -    image_

Re: [PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Marek Vasut
On 1/22/25 4:43 PM, Quentin Schulz wrote: Hi Marek, On 1/22/25 3:32 PM, Marek Vasut wrote: On 1/22/25 3:21 PM, Quentin Schulz wrote: [...] @@ -2395,17 +2395,18 @@ int boot_get_fdt_fit(struct bootm_headers *images, ulong addr,   /* we need to apply overlays */   #ifdef CONFIG_OF_LIBFDT_O

Re: [PATCH v2 2/2] mach-snapdragon: support parsing memory info from external FDT

2025-01-22 Thread Caleb Connolly
Hi Sam, Thanks for re-spinning this, one small issue below but otherwise LGTM. I'm picking up your first patch, so you only need to re-send this one. On 22/01/2025 11:27, Sam Day wrote: > qcom_parse_memory is updated to return a -ENODATA error if the passed > FDT does not contain a /memory node,

[PATCH v4] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Quentin Schulz
cec9fff ... OK Working FDT set to ece9d000 Using 'conf-rk3588-jaguar-pre-ict-tester.dtbo' configuration Verifying Hash Integrity ... OK Trying 'fdt-rk3588-jaguar-pre-ict-tester.dtbo' fdt subimage Description: Flattened Device Tree blob Type: Flat Device Tree

[PATCH v2] led: add function naming option from linux

2025-01-22 Thread Heiko Schocher
in linux we have the option to create the name of a led optionally through the following properties: - function - color - function-enumerator This patch adds support for parsing this properties if there is no label property. To be as close as possible to linux import the following files from it:

[PATCH] configs: am62ax_evm_a53_defconfig: enable USB DFU support

2025-01-22 Thread Siddharth Vadapalli
The config fragment "am62x_a53_usbdfu.config" which adds USB DFU support for AM62x SoC is applicable to the AM62Ax SoC as well. Hence, include it in "am62ax_evm_a53_defconfig" in order to enable support for USB DFU flash and boot. Signed-off-by: Siddharth Vadapalli --- Hello, This patch is base

Re: [PATCH v3 3/6] clk/qcom: add initial clock driver for qcs9100

2025-01-22 Thread Caleb Connolly
On 10/01/2025 06:08, Varadarajan Narayanan wrote: > Add initial set of clocks and resets for enabling U-Boot on QCS9100 > based Ride platforms. > > Reviewed-by: Neil Armstrong > Signed-off-by: Varadarajan Narayanan Just a small nit: please keep the Kconfig and Makefile in alphabetical order.

[PATCH v2 2/2] net: phy: gmii2rgmii: Add support for phy ethernet id configuration

2025-01-22 Thread Tapio Reijonen
When Kconfig PHY_ETHERNET_ID is set, create external PHY using via ethernet-phy-id driver to support using strapping resistors of the external PHY. Fixes: a744a284e354 ("net: phy: Add support for ethernet-phy-id with gpio reset") Signed-off-by: Tapio Reijonen --- Changes in v2: - Fixing insid

Re: [PATCH 2/2] mach-snapdragon: support parsing memory info from external FDT

2025-01-22 Thread Sam Day
'Ello Caleb, On Tuesday, 21 January 2025 at 13:33, Caleb Connolly wrote: > > On 20/01/2025 20:43, Sam Day wrote: > > > Prior to this commit, board_fdt_blob_setup would decide which FDT to > > use, either the external one from the previous bootloader, or the > > internal one that was compiled i

Re: [PATCH 0/3] sunxi: switch three SoC families to OF_UPSTREAM

2025-01-22 Thread Sumit Garg
On Wed, 22 Jan 2025 at 16:49, Andre Przywara wrote: > > On Wed, 22 Jan 2025 12:03:24 +0530 > Sumit Garg wrote: > > Hi Sumit, > > > On Sun, 19 Jan 2025 at 22:13, Andre Przywara wrote: > > > > > > This series converts boards with the Allwinner F1C100s/F1C200s, A10, A10s > > > and A13s SoCs over to

Re: [PATCH v2 1/2] cyclic: Fix rollover every 72 min on 32 bits platforms

2025-01-22 Thread Stefan Roese
On 14.01.25 14:28, Patrice Chotard wrote: On 32 bits platforms, timer_get_us() returns an unsigned long which is a 32 bits. timer_get_us() wraps around every 72 minutes (2 ^ 32 / 100 =~ 4295 sec =~ 72 min). So the test "if time_after_eq64(now, cyclic->next_call)" is no more true when cyclic-

Re: [PATCH v2 2/2] cyclic: Fix typo in struct cyclic_info description

2025-01-22 Thread Stefan Roese
On 14.01.25 14:28, Patrice Chotard wrote: Replace delay_ns by delay_us which is the field name used into struct cyclic_info. Signed-off-by: Patrice Chotard --- Changes in v2: _ Update the comment which still references "ns" Applied to u-boot-watchdog/master Thanks, Stefan include/c

Please pull u-boot-watchdog/master

2025-01-22 Thread Stefan Roese
Hi Tom, please pull the following watchdog related patches: - cyclic: Fix rollover every 72 min on 32 bits platforms (Patrice) Here the Azure build, without any issu

[PATCH v2 1/2] mach-snapdragon: pass fdt to qcom_parse_memory

2025-01-22 Thread Sam Day
commit fc37a73e6679 ("fdt: Swap the signature for board_fdt_blob_setup()") introduced a subtle change to the Snapdragon implementation, removing the assignment to gd->fdt_blob partway through the function. This breaks qcom_parse_memory() which was also called during board_fdt_blob_setup(). The un

[PATCH v2 0/2] mach-snapdragon: Fix and improve /memory parsing

2025-01-22 Thread Sam Day
The first commit in this series is a fix for qcom_parse_memory, which is currently broken on master (since fc37a73e6679). It's an alternative to the patch Caleb proposed a couple of days ago (20250117102734.3725009-2-caleb.conno...@linaro.org). This approach results in a smaller diff, and also make

Re: [PATCH] spi: cadence_qspi: Fix OSPI DDR mode alignment issue

2025-01-22 Thread Michal Simek
On 1/6/25 10:51, Padmarao Begari wrote: If the least significant bit of the address is set to one when using the DDR protocol for data transfer then the results are indeterminate for few flash devices. To fix this the least significant bit of the address is set to zero. Signed-off-by: Padmara

Re: [PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Quentin Schulz
Hi all, On 1/22/25 2:57 PM, Quentin Schulz wrote: From: Quentin Schulz A FIT image which is NOT using -E when created by mkimage - that is with image data within the FIT - will fail to apply FDTO if the base FDT image node does not specify a load property (which points to an address in DRAM).

Re: [PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Marek Vasut
On 1/22/25 3:21 PM, Quentin Schulz wrote: [...] @@ -2395,17 +2395,18 @@ int boot_get_fdt_fit(struct bootm_headers *images, ulong addr,   /* we need to apply overlays */   #ifdef CONFIG_OF_LIBFDT_OVERLAY -    image_start = addr; -    image_end = addr + fit_get_size(fit); -    /* verify that

[PATCH v2 1/2] net: phy: Let gmiitorgmii converter create additional PHY

2025-01-22 Thread Tapio Reijonen
Change the order to connect gmiitorgmii before PHY creation. The gmiitorgmii create additional in DTS configured PHY during it's configuration. This ensures, that converter sits between the MAC and the external phy MAC <==> GMII2RGMII <==> RGMII_PHY. Fixes: a744a284e354 ("net: phy: Add support for

[PATCH v2 0/2] Fix bridge gmii2rgmii

2025-01-22 Thread Tapio Reijonen
When taken in use U-Boot v2023.04 one our board's ethernet stop to work in U-Boot, which was working in v2022.01. In v2022.01 the gmii2rgmii was called before PHY was created. This patch change back the order and fix the problem. Also the ethernet-phy-id driver is taken in use in gmii2rgmii dr

Re: [PATCH 1/8] cyclic: Prevent corruption of cyclic list on reassignment

2025-01-22 Thread Stefan Roese
Hi Marek, Hi Rasmus, On 20.01.25 10:17, Rasmus Villemoes wrote: On Sat, Jan 18 2025, Marek Vasut wrote: Make cyclic_register() return error code, 0 in case of success, -EALREADY in case the called attempts to re-register already registered struct cyclic_info. The re-registration would lead to

Re: [PATCH 2/6] fs: add rename infrastructure

2025-01-22 Thread Heinrich Schuchardt
On 22.01.25 09:10, Heinrich Schuchardt wrote: On 22.01.25 06:32, Gabriel Dalimonte wrote: Signed-off-by: Gabriel Dalimonte --- Please, add a commit message.   fs/fs.c  | 47 +++   include/fs.h | 13 +   2 files changed, 60 insertion

Re: [PATCH v2] led: add function naming option from linux

2025-01-22 Thread Tom Rini
On Wed, Jan 22, 2025 at 01:12:01PM +0100, Heiko Schocher wrote: > in linux we have the option to create the name of a led > optionally through the following properties: > > - function > - color > - function-enumerator > > This patch adds support for parsing this properties if there > is no label

[PATCH] tools: check result of lseek

2025-01-22 Thread Maks Mishin
Return value of function 'lseek', called at pblimage.c:211, is not checked, but it is usually checked for this function. This trigger was found using the Svace static analyzer. Signed-off-by: Maks Mishin --- tools/pblimage.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff -

[PATCH] MAINTAINERS: maintain qcs9100_defconfig

2025-01-22 Thread Caleb Connolly
Add this to ARM SNAPDRAGON maintainers entry. Signed-off-by: Caleb Connolly --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ba31f86feb6d..5a575f43277f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -630,8 +630,9 @@ R: Sumit Garg L: u-boot

[PATCH 09/21] efi_loader: efi_net: Let efi_net_obj store pointers to efi_simple_network, efi_simple_network_mode, and the efi handle

2025-01-22 Thread Adriano Cordova
This way the protocol and the handle can be externally provided. This comes in preparation to support ConnectController. Signed-off-by: Adriano Cordova --- lib/efi_loader/efi_net.c | 117 +-- 1 file changed, 74 insertions(+), 43 deletions(-) diff --git a/lib/

[PATCH 10/21] efi_net: efi_loader: Add efi_netobj_alloc to allocate an efi_net_obj

2025-01-22 Thread Adriano Cordova
For clarity, put the allocation of an efi_net_obj in efi_netobj_alloc Signed-off-by: Adriano Cordova --- lib/efi_loader/efi_net.c | 122 ++- 1 file changed, 83 insertions(+), 39 deletions(-) diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c ind

[PATCH 08/21] efi_loader: efi_net: Reuse efi_net_obj's

2025-01-22 Thread Adriano Cordova
When an efi_net_obj gets unregistered, save it and try to recycle it Signed-off-by: Adriano Cordova --- lib/efi_loader/efi_net.c | 81 +--- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c inde

[PATCH 12/21] eth_uclass: Add eth_create_device to create a net udevice

2025-01-22 Thread Adriano Cordova
Create an ETH_UCLASS udevice and bind it to a driver Signed-off-by: Adriano Cordova --- include/net-common.h | 2 ++ net/eth-uclass.c | 32 2 files changed, 34 insertions(+) diff --git a/include/net-common.h b/include/net-common.h index 1d507b13b0..ba343af4

[PATCH 13/21] efi_driver: efi_net: UCLASS_ETH "efi_netdev" U-Boot driver

2025-01-22 Thread Adriano Cordova
UCLASS_ETH "efi_netdev" U-Boot driver. This driver can control a handle with a simple_network_protocol installed and working. See efi_netdev_create. Signed-off-by: Adriano Cordova --- include/efi_loader.h| 13 +++ lib/efi_driver/efi_net_device.c | 159 +++

[PATCH 16/21] efi_loader: efi_net: Add functions to [un]register http and ip4_config2 protocols, and add pxe protocol on demand

2025-01-22 Thread Adriano Cordova
Add efi_ipconfig_[un]register and efi_http_[un]register to [un]register the ip4_config2 and the http_service_binding protocol. And add the pxe protocol only if a dhcp_ack was received. The latter makes sense as pxe is otherwise not currently implemented. Signed-off-by: Adriano Cordova --- includ

[PATCH 11/21] efi_loader: efi_net: Manage EFI net objects with efi_[dis]connect_controller

2025-01-22 Thread Adriano Cordova
Call [dis]connect_controller for the efi_net_objs corresponding to U-Boot udevices Signed-off-by: Adriano Cordova --- include/efi_loader.h| 2 +- lib/efi_driver/efi_net_device.c | 2 +- lib/efi_loader/efi_net.c| 38 - 3 files changed, 25 ins

Re: [PATCH v2 00/22] vbe: Series part F

2025-01-22 Thread Tom Rini
On Wed, 15 Jan 2025 18:27:01 -0700, Simon Glass wrote: > This includes various patches towards implementing the VBE abrec > bootmeth in U-Boot. It mostly focuses on introducing a relocating > SPL-loader so that VBE can run in the limited amount of SRAM available > on many devices. > > Another min

Re: [PATCH 0/2] Update my email address

2025-01-22 Thread Tom Rini
On Wed, 15 Jan 2025 10:32:57 +, Christopher Obbard wrote: > Update my email address for various locations in the U-Boot project. > This will (hopefully) stop any mails from going to /dev/null. > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] spi: cadence-quadspi: fix potential malfunction after ~49 days uptime

2025-01-22 Thread Tom Rini
On Wed, 11 Dec 2024 21:51:04 +0100, Ronald Wahl wrote: > The get_timer function returns an unsigned long which may be calculated > from the ARM system counter. This counter is reset only on a cold reset. > U-boot divides this counter down to a 1000 Hz counter that will cross > the 32bit barrier af

Re: [PATCH] vexpress64: Fix bootargs when building without NET

2025-01-22 Thread Tom Rini
On Thu, 16 Jan 2025 00:31:48 +0900, Chanho Park wrote: > When building without DHCP/PXE configurations (NET disabled), > compilation errors may occur due to mismatched bootargs. > Ensure bootargs related to DHCP/PXE are not enabled if the > corresponding commands are disabled. > > include/config_

Re: [PATCH v2 0/2] spi: Collected fixes

2025-01-22 Thread Tom Rini
On Wed, 15 Jan 2025 17:16:19 +0100, Alexander Dahl wrote: > two patches for header issues I came across when working on (Q)SPI > drivers for atmel boards. > > Greets > Alex > > v1: > - implicit, not a series but a single patch no one reacted to > - Link: > https://lore.kernel.org/u-boot/2024121

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

2025-01-22 Thread Minda Chen
USB PHY maybe need to set PHY mode in different USB dr mode. So translate USB PHY mode to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- drivers/usb/cdns3/drd.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/

[PATCH 3/4] env: ti: am64x: set rproc_fw_binaries

2025-01-22 Thread Judith Mendez
From: Hari Nagalla Set remote proc FW binaries for u-boot loading of remote cores. Signed-off-by: Hari Nagalla --- board/ti/am64x/am64x.env | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/ti/am64x/am64x.env b/board/ti/am64x/am64x.env index 8ad805a613c..43e557b8ec7 100644 --- a/

[PATCH v6 6/8] spl: starfive: visionfive2: Disable USB overcurrent pin by default.

2025-01-22 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 in spl stage. Signed-off-by: Minda Chen Tested-by: E Shattow --- arch/riscv/include/asm/arch-jh7110/gpio.h | 5 + board/starfive/visionfi

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

2025-01-22 Thread Minda Chen
Add Starfive JH7110 USB 2.0 PHY driver, which is generic PHY driver. Signed-off-by: Minda Chen Reviewed-by: Roger Quadros --- drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/starfive/Kconfig | 14 ++ driver

[PATCH v6 0/8] Add Starfive JH7110 Cadence USB driver

2025-01-22 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. The Starfive JH7110 has enable CONFIG_OF_UPSTRE

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

2025-01-22 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 | 239 +

[PATCH v6 5/8] usb: cdns: starfive: Add cdns USB driver

2025-01-22 Thread Minda Chen
Add Starfive cdns USB3 wrapper driver. Signed-off-by: Minda Chen --- drivers/usb/cdns3/Kconfig | 7 ++ drivers/usb/cdns3/Makefile | 1 + drivers/usb/cdns3/cdns3-starfive.c | 182 + 3 files changed, 190 insertions(+) create mode 100644 drivers/usb

[PATCH v6 7/8] configs: starfive: Add visionfive2 cadence USB configuration

2025-01-22 Thread Minda Chen
Add cadence USB confiuration. Signed-off-by: Minda Chen --- configs/starfive_visionfive2_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index c3f2142ae1b..c2be9ffae27 100644 --- a/configs/

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

2025-01-22 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 d

[PATCH 4/4] configs: am64x_evm_a53_defconfig: Enable R5F and M4 remote proc support

2025-01-22 Thread Judith Mendez
From: Hari Nagalla Add support for R5F and M4 remoteproc drivers. Signed-off-by: Hari Nagalla --- configs/am64x_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig index e6e3e018da6..4630c424775 100644 --- a/

[PATCH 2/4] remoteproc: k3-r5: Add support for R5F cores on AM64x SoCs

2025-01-22 Thread Judith Mendez
From: Hari Nagalla AM64x SoCs have two R5F clusters in the main power domain. Extend support for R5F remote proc driver on AM64x with compatible strings. Signed-off-by: Hari Nagalla --- drivers/remoteproc/ti_k3_r5f_rproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remotepro

[PATCH 1/4] remoteproc: k3-m4: Introduce K3 remote proc driver for M4 subsystem

2025-01-22 Thread Judith Mendez
From: Hari Nagalla Some K3 devices like AM64, AM62 devices have a M4 processor in MCU voltage domain. Add a remote proc driver to support this subsystem to be able to load and boot the M4 core. Signed-off-by: Hari Nagalla [Judith: Fixed comments explaining local resets] Signed-off-by: Judith M

[PATCH 0/4] Introduce K3 remoteproc driver for M4 subsystem

2025-01-22 Thread Judith Mendez
Some K3 devices like am62x and am64x have a M4 processor in the MCU voltage domain. This patch series introduces remoteproc M4 driver which will be used to load firmware into and start the M4 remote core. This series also adds support for R5F cores on am64x SoCs in patch 2/4, sets up environment t

[PATCH v6 4/8] usb: cdns: starfive: Get dr mode from wrapper device dts node

2025-01-22 Thread Minda Chen
Cdns core driver also get dr mode from wrapper devcie dts node to make it is same with Starfive cdns USB Linux kernel driver, Starfive 7110 OF_UPSTREAM is enabled Signed-off-by: Minda Chen --- drivers/phy/starfive/phy-jh7110-pcie.c | 2 +- drivers/usb/cdns3/core.c | 3 +++ 2 files

Pull request: u-boot-sunxi/master for 2025.04

2025-01-22 Thread Andre Przywara
Hi Tom, please pull sunxi changes for this cycle: Following the move of the H616 family to OF_UPSTREAM in the last cycle, now some older SoCs with identical DTs follow the lead: the F1C100s, A10, A10s, A13. The remaining SoCs suffer from that IRQ cells incompatiblity, breaking support for Linux <

[PATCH 06/21] efi_loader: efi_net: Add support for multiple efi_net_obj

2025-01-22 Thread Adriano Cordova
Add support for multiple efi_net_obj structs Signed-off-by: Adriano Cordova --- include/efi_loader.h | 28 +- lib/efi_loader/efi_bootbin.c | 2 +- lib/efi_loader/efi_device_path.c | 4 +- lib/efi_loader/efi_http.c| 6 +- lib/efi_loader/efi_ipconfig.c| 5 +- l

[PATCH 05/21] efi_loader: efi_device_path: Let network device paths receive the net udevice as an argument

2025-01-22 Thread Adriano Cordova
Support setting the device path with efi_dp_from_eth, efi_dp_from_ipv4, and efi_dp_from_http to an ethernet device other than the current ethernet udevice. Calling eth_dp_from_eth with eth_get_dev() as the argument recovers the pevious functionality. Signed-off-by: Adriano Cordova --- include/ef

[PATCH 04/21] efi_loader: efi_net: Add efi_net_do_start() to efi_net.c

2025-01-22 Thread Adriano Cordova
This gets called each time a payload is to get executed by bootefi. For now this only updates the PXE IP address. Signed-off-by: Adriano Cordova --- include/efi_loader.h | 1 + lib/efi_loader/efi_net.c | 31 --- lib/efi_loader/efi_setup.c | 3 +++ 3 files ch

Re: AW: secure boot, mkimage with external signing server

2025-01-22 Thread Rasmus Villemoes
On Wed, Jan 22 2025, "Rosenschild, Klaus" wrote: > Hi Rasmus, > thank you for pointing to this solution. > I think this is the best way to do this. > > However, our signing server is very well protected and making changes there > is a long and complex process. > Right now, it only provides the f

[PATCH 20/21] py/tests: test_efi_selftest: Add test for removing EFI netdevices

2025-01-22 Thread Adriano Cordova
unbind ethernet udevices and count them to check that were properly removed also from the EFI network stack Signed-off-by: Adriano Cordova --- test/py/tests/test_efi_selftest.py | 24 1 file changed, 24 insertions(+) diff --git a/test/py/tests/test_efi_selftest.py b/te

[PATCH 21/21] efi_selftest: Add test for efi_netdev driver

2025-01-22 Thread Adriano Cordova
Test the 'efi_netdev' driver. Take an existing and working snp protocol, create a handle and install the interface in the handle, and call connect_controller. Signed-off-by: Adriano Cordova --- lib/efi_selftest/Makefile | 2 +- lib/efi_selftest/efi_selftest_net_driver.c | 310

[PATCH 14/21] efi_driver: efi_uclass: Add unbind method to efi_driver_ops

2025-01-22 Thread Adriano Cordova
This way when the stop() method of the EFI driver gets called whatever bind() did can be cleaned up. Signed-off-by: Adriano Cordova --- include/efi_driver.h| 4 lib/efi_driver/efi_uclass.c | 4 2 files changed, 8 insertions(+) diff --git a/include/efi_driver.h b/include/efi_dr

[PATCH 18/21] efi_selftest: Add selftest for counting EFI netdevices

2025-01-22 Thread Adriano Cordova
Count the number of simple_network_protocol's Signed-off-by: Adriano Cordova --- lib/efi_selftest/Makefile | 2 +- lib/efi_selftest/efi_selftest_net_device.c | 65 ++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 lib/efi_selftest/efi_s

[PATCH 19/21] py/tests: test_efi_selftest: Add test for counting EFI netdevices

2025-01-22 Thread Adriano Cordova
check that the number of ethernet udevices matches the number of simple network protocols Signed-off-by: Adriano Cordova --- test/py/tests/test_efi_selftest.py | 21 + 1 file changed, 21 insertions(+) diff --git a/test/py/tests/test_efi_selftest.py b/test/py/tests/test_efi_

[PATCH 15/21] efi_driver: efi_net: Add efi_net_unbind_drv method to efi_net driver

2025-01-22 Thread Adriano Cordova
In case the handle was controlled by the "efi_netdev" driver, unlink the handle from the udevice and remove the udevice. Signed-off-by: Adriano Cordova --- lib/efi_driver/efi_net_device.c | 44 + 1 file changed, 44 insertions(+) diff --git a/lib/efi_driver/efi_ne

[PATCH 03/21] efi_loader: efi_setup: Add efi_start_obj_list() to efi_setup.c

2025-01-22 Thread Adriano Cordova
The coomand bootefi calls efi_init_obj_list to do the efi set up before launching an .efi payload, but efi_init_obj_list is called only once. There are some initializations which depend on the environment and should be done each time a payload gets launched and not only once. A motivation for this

[PATCH 01/21] legacy-net: wget: fix wget_info handling after new tcp legacy stack

2025-01-22 Thread Adriano Cordova
Check wget_info->buffer_size for overflow and do not clean the wget_info struct on failure, let the owner of the struct handle the error. The latter is necessary, e.g., for when a request fails because the provided buffer was too small. Signed-off-by: Adriano Cordova --- net/wget.c | 18

  1   2   >