[PATCH v2 3/4] test: unit tests for strstr() and strnstr()

2025-01-31 Thread Heinrich Schuchardt
Add unit tests for the library functions. Signed-off-by: Heinrich Schuchardt Acked-by: Ilias Apalodimas --- v2: no change --- lib/string.c | 2 +- test/lib/string.c | 40 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/lib/st

[PATCH v2 4/4] net: use strnstr() for lwip_strnstr()

2025-01-31 Thread Heinrich Schuchardt
Using strstr() instead of strnstr() creates a security concern. Fixes: 1c41a7afaa15 ("net: lwip: build lwIP") Signed-off-by: Heinrich Schuchardt Reviewed-by: Jerome Forissier --- v2: no change --- lib/lwip/u-boot/arch/cc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH v2 2/4] lib: implement strnstr()

2025-01-31 Thread Heinrich Schuchardt
Implement library function strnstr(). Implement strstr() using strnstr(). Sort the includes. Signed-off-by: Heinrich Schuchardt --- v2: no change --- include/linux/string.h | 3 +++ lib/string.c | 49 +- 2 files changed, 37 insertions(+)

[PATCH v2 0/4] net: use strnstr() for lwip_strnstr()

2025-01-31 Thread Heinrich Schuchardt
Using strstr() instead of strnstr() creates a security concern. * Implement missing library function strnstr() and add unit tests. * Use it for lwIP. * Fix function find_option() which is used to find the TFTP blocksize. v2: New patch for find_option() Heinrich Schuchardt (4): net: lwi

[PATCH v2 1/4] net: lwip: tftp: fix find_option()

2025-01-31 Thread Heinrich Schuchardt
Find_option() is used to retrieve the block size value in an option acknowledgment in response to a request containing a block size option according to RFC2348. The format of an OACK response is described in RFC2347 as +---+---~~---+---+---~~---+---+---~~---+---+---~~---+---+ | opc | opt1

Re: Enabling test/py/tests/test_spi.py more?

2025-01-31 Thread Tom Rini
On Fri, Jan 31, 2025 at 02:00:07PM -0600, Tom Rini wrote: > Hey, > > Can you please confirm that this test currently functions on your > platforms? And then can we please enable it in > https://source.denx.de/u-boot/u-boot-test-hooks as both a functional > example, and testing of the SPI framework

Re: [PATCH] sifive_unleashed: Rename "spi-nor_qemu" variant to "spi_nor_qemu"

2025-01-31 Thread Tom Rini
On Fri, Jan 31, 2025 at 04:04:20PM -0600, Tom Rini wrote: > Given how files are searched and parsed, > py/travis-ci/u_boot_boardenv_sifive_unleashed_spi-nor_qemu.py was not > being used due to the dash in the name. Use an underbar for consistency. > > Signed-off-by: Tom Rini > --- > ..._unleash

Re: make tests skips the DM tests

2025-01-31 Thread Tom Rini
On Thu, Jan 30, 2025 at 12:54:52PM -0700, Simon Glass wrote: > Hi Heinrich, > > On Thu, 30 Jan 2025 at 01:32, Heinrich Schuchardt wrote: > > > > On 1/30/25 08:08, Heinrich Schuchardt wrote: > > > Hello Simon, > > > > > > when running 'make tests' locally I get: > > > > > > test/py/tests/test_dm.p

Re: [PATCH] cmd: Fix Kconfig coding style

2025-01-31 Thread Tom Rini
On Wed, 29 Jan 2025 16:24:32 +0100, Michal Simek wrote: > Some entries are not using tabs for indentation and also help should use > two spaces indentation. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] net: mediatek: fix coding style of AN8855 switch driver

2025-01-31 Thread Tom Rini
On Fri, 24 Jan 2025 16:04:28 +0800, Weijie Gao wrote: > This patch fixed the following coding style suggested by checkpatch.pl: > 1. Use tab instead of space > 2. Use BIT() instead of << > 3. Use mdelay for long time delay > 4. Remove useless parenthesises > > > [...] Applied to u-boot/master,

Re: [PATCH] pinctrl: mediatek: update mt7981 pinctrl driver based on upstream kernel

2025-01-31 Thread Tom Rini
On Fri, 24 Jan 2025 11:39:02 +0800, Weijie Gao wrote: > Update mt7981 pinctrl driver based on upstream kernel > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] configs/am62x_r5_usbdfu.config: More completely disable MMC

2025-01-31 Thread Tom Rini
On Tue, 14 Jan 2025 20:07:29 -0600, Tom Rini wrote: > As this fragment turns off MMC in both SPL and full U-Boot, we can turn > the whole symbol off rather than just the MMC driver. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] scsi: do not fill the LUN in the second CDB byte

2025-01-31 Thread Tom Rini
On Fri, 24 Jan 2025 03:01:48 +0100, Neil Armstrong wrote: > The SCSI specification originally required that the second > Command Data Byte contain the LUN value in its high-order bits, > but this field has been marked as reserved since the SCSI-3 spec > from 1996. > > Some vendors uses this byte

Re: [PATCH v3 1/2] board: phytec: common: Add product information to FTD

2025-01-31 Thread Tom Rini
On Thu, 23 Jan 2025 06:43:49 -0800, Daniel Schultz wrote: > ft_board_setup inside the board code allows to alter > device-tree during the boot process. > > Introduce a new function for the PHYTEC SOM detection > to read the product name and part number from the EEPROM > content and include both i

Re: [PATCH v1] toradex: tdx-cfg-block: fix switch to user partition

2025-01-31 Thread Tom Rini
On Fri, 24 Jan 2025 16:14:30 +0100, Stefan Eichenberger wrote: > The Toradex configuration block is stored in the first boot partition of > the eMMC. After reading the configuration block, U-Boot switches back to > the user partition. Currently, this operation always targets mmc device > 0, even w

[PATCH] CI: sifive_unleashed: Rename "spi-nor_qemu" variant to "spi_nor_qemu"

2025-01-31 Thread Tom Rini
Given how files are searched and parsed, we need to use the "spi_nor_qemu" variant name not "spi-nor_qemu". Signed-off-by: Tom Rini --- .azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines

[PATCH] sifive_unleashed: Rename "spi-nor_qemu" variant to "spi_nor_qemu"

2025-01-31 Thread Tom Rini
Given how files are searched and parsed, py/travis-ci/u_boot_boardenv_sifive_unleashed_spi-nor_qemu.py was not being used due to the dash in the name. Use an underbar for consistency. Signed-off-by: Tom Rini --- ..._unleashed_spi-nor_qemu => conf.sifive_unleashed_spi_nor_qemu} | 0 ...r_qemu.py

Enabling test/py/tests/test_spi.py more?

2025-01-31 Thread Tom Rini
Hey, Can you please confirm that this test currently functions on your platforms? And then can we please enable it in https://source.denx.de/u-boot/u-boot-test-hooks as both a functional example, and testing of the SPI framework? I'm asking in part because I've attempted to enable it on two TI K3

Re: [PULL] Pull request for u-boot master / v2025.04 = u-boot-stm32-20250131

2025-01-31 Thread Tom Rini
On Fri, 31 Jan 2025 11:57:04 +0100, Patrice CHOTARD wrote: > Please pull the STM32 related patches for u-boot/master, v2025.04 = > u-boot-stm32-20250131 > > CI status: > https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/24410 > > The following

Re: [PATCH] net: phy: Add RGMII RX/TX delay handling to DP83822 PHY

2025-01-31 Thread Tom Rini
On Sun, 29 Dec 2024 21:53:26 +0100, Marek Vasut wrote: > The TI DP83822 does have support for configurable RGMII RX/TX clock > shift, add support for parsing DT properties which describe the RX/TX > clock shift configuration and configuration of the matching bits in > RCSR register. > > The shift

Re: [RFC PATCH v2 1/3] Introduce coroutines framework

2025-01-31 Thread Yao Zi
On Tue, Jan 28, 2025 at 11:19:15AM +0100, Jerome Forissier wrote: > Adds the COROUTINES Kconfig symbol which introduces a new internal API > for coroutines support. As explained in the Kconfig file, this is meant > to provide some kind of cooperative multi-tasking with the goal to > improve perform

[PATCH] rockchip: nanopi-r4s: Enable second usb port and fix crash

2025-01-31 Thread Justin Klaassen
The patch enables the second USB3.0 Type-A USB port on the NanoPi R4S board, which prevents a crash when initializing the usb system in U-Boot and allows both Type-A USB ports to be used for booting. => usb start starting USB... Bus usb@fe38: USB EHCI 1.00 Bus usb@fe3c: "Synchronous Abort"

Re: dtc: "syntax error" linked to &{label/subnode} syntax

2025-01-31 Thread Tom Rini
On Fri, Jan 31, 2025 at 03:41:37PM +0100, Patrice CHOTARD wrote: > > > On 1/29/25 23:01, Tom Rini wrote: > > On Tue, Jan 28, 2025 at 09:04:26AM -0600, Tom Rini wrote: > >> On Tue, Jan 28, 2025 at 08:04:56AM -0600, Tom Rini wrote: > >>> On Tue, Jan 28, 2025 at 08:47:37AM +0100, Patrice CHOTARD wro

Re: dtc: "syntax error" linked to &{label/subnode} syntax

2025-01-31 Thread Patrice CHOTARD
On 1/29/25 23:01, Tom Rini wrote: > On Tue, Jan 28, 2025 at 09:04:26AM -0600, Tom Rini wrote: >> On Tue, Jan 28, 2025 at 08:04:56AM -0600, Tom Rini wrote: >>> On Tue, Jan 28, 2025 at 08:47:37AM +0100, Patrice CHOTARD wrote: On 1/15/25 15:44, Tom Rini wrote: > On Wed, Jan 15, 2

Re: [PATCH 2/4] rng: msm: don't enable PRNG if it's already enabled

2025-01-31 Thread Sam Day
Hello (again) Neil, Fabio, On Friday, 31 January 2025 at 15:40, Sam Day wrote: > > Hi Neil, Fabio, > > On Friday, 31 January 2025 at 12:04, Sam Day m...@samcday.com wrote: > > > I'd love to take credit, but actually it was Stephan Gerhold who spotted > > this when we were debugging the issue

Re: [PATCH 3/3] mbedtls: refactor mbedtls build for XPL

2025-01-31 Thread Raymond Mao
Hi Ilias, On Fri, 31 Jan 2025 at 08:52, Ilias Apalodimas wrote: > > Hi Raymond, Tom > > This config seems reasonable to me and we can now build a combination > of SPL + older crypto + mbedTLS for u-boot proper which was always the > goal. > > I do still think the naming is a bit confusing. > > On

Re: [PATCH 2/4] rng: msm: don't enable PRNG if it's already enabled

2025-01-31 Thread Sam Day
Hi Neil, Fabio, On Friday, 31 January 2025 at 12:04, Sam Day wrote: > I'd love to take credit, but actually it was Stephan Gerhold who spotted > this when we were debugging the issue together :) > I got myself very confused here :) Stephan Gerhold helped me identify the issue fixed in patch #1

Re: [PATCH 1/3] mbedtls: fix incorrect kconfig dependencies on mbedtls

2025-01-31 Thread Raymond Mao
Hi Ilias, On Fri, 31 Jan 2025 at 08:40, Ilias Apalodimas wrote: > > Hi Raymond > > On Mon, 27 Jan 2025 at 17:17, Raymond Mao wrote: > > > > Currently building with WGET_HTTPS,NET_LWIP and MBEDTLS_LIB failed > > due to a few incorrect kconfig dependencies. > > Fix these and clarify what is the pu

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

2025-01-31 Thread Bauer, Markus
>>   >> +config PINCTRL_QCOM_SC7280 >> + bool "Qualcomm SC7280/QCM6490 GCC" >> + select PINCTRL_QCOM > >Hi! > >And again, no, this is not GCC, this block is called TLMM. >GCC is for clock controller. Hi! This is correct. I tested the pinctrl driver, it needed some changes but now I have S

Re: u-boot in restricted environment: networking over serial

2025-01-31 Thread Ferenc Fejes
On Thu, 2025-01-30 at 11:04 -0600, Tom Rini wrote: > On Thu, Jan 30, 2025 at 02:55:53PM +0100, Ferenc Fejes wrote: > > > Hi, > > > > Is it possible to use the serial port for u-boot networking? For example, > > given > > a restricted environment where the FIT image is available with ethernet > >

[PATCH] tools: imximage: Fix potential memory leak

2025-01-31 Thread Maks Mishin
Dynamic memory, referenced by 'line', is allocated at imximage.c:761 by calling function 'getline' and lost at imximage.c:793. Signed-off-by: Maks Mishin --- tools/imximage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/imximage.c b/tools/imximage.c index 467d9f27d2..55231caf8f 100

[PATCH] feat: Add CONFIG_BOOTCOUNT_ALTBOOTCMD to Kconfig

2025-01-31 Thread Tomas Peterka
Add CONFIG_BOOTCOUNT_ALTBOOTCMD so the developer is able to add custom altbootcmd via Kconfig when they enable BOOTCOUNT. --- drivers/bootcount/Kconfig | 3 +++ include/env_default.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig i

Re: [PATCH 00/14] pinctrl: rockchip: fix editing const struct + constify rockchip_pin_ctrl

2025-01-31 Thread Ilias Apalodimas
Hi Jonas, On Thu, 30 Jan 2025 at 23:20, Jonas Karlman wrote: > > Hi Quentin, > > On 2025-01-30 15:16, Quentin Schulz wrote: > > Hi Jonas, > > > > On 1/29/25 3:20 PM, Jonas Karlman wrote: > >> Hi Quentin, > >> > >> On 2025-01-29 13:42, Quentin Schulz wrote: > >>> While testing some WIP work done b

Re: [PATCH 3/3] mbedtls: refactor mbedtls build for XPL

2025-01-31 Thread Ilias Apalodimas
Hi Raymond, Tom This config seems reasonable to me and we can now build a combination of SPL + older crypto + mbedTLS for u-boot proper which was always the goal. I do still think the naming is a bit confusing. On Mon, 27 Jan 2025 at 17:17, Raymond Mao wrote: > > Refactor the entire kconfig pag

Re: [PATCH 2/3] mbedtls: access mbedtls private members in mscode and pkcs7 parser

2025-01-31 Thread Ilias Apalodimas
On Mon, 27 Jan 2025 at 17:17, Raymond Mao wrote: > > U-Boot requires to access x509_internal.h, mbedtls_sha256_context and > mbedtls_sha1_context in the porting layer, and this requires to > enable MBEDTLS_ALLOW_PRIVATE_ACCESS. > > Enable it to mscode and pkcs7_parser to fix a mbedtls internal bui

Re: [PATCH 1/3] mbedtls: fix incorrect kconfig dependencies on mbedtls

2025-01-31 Thread Ilias Apalodimas
Hi Raymond On Mon, 27 Jan 2025 at 17:17, Raymond Mao wrote: > > Currently building with WGET_HTTPS,NET_LWIP and MBEDTLS_LIB failed > due to a few incorrect kconfig dependencies. > Fix these and clarify what is the purpose of MBEDTLS_LIB_CRYPTO_ALT. > > Signed-off-by: Raymond Mao > --- > cmd/Kco

Re: [PATCH 2/4] rng: msm: don't enable PRNG if it's already enabled

2025-01-31 Thread Sam Day
Hello Fabio, On Friday, 31 January 2025 at 12:29, Fabio Estevam wrote: > > On Fri, Jan 31, 2025 at 8:10 AM Sam Day m...@samcday.com wrote: > > > I'd love to take credit, but actually it was Stephan Gerhold who spotted > > this when we were debugging the issue together :) > > > Maybe you could

Re: [PATCH 2/4] rng: msm: don't enable PRNG if it's already enabled

2025-01-31 Thread Fabio Estevam
On Fri, Jan 31, 2025 at 8:10 AM Sam Day wrote: > I'd love to take credit, but actually it was Stephan Gerhold who spotted > this when we were debugging the issue together :) Maybe you could add a Suggested-by tag.

Re: [PATCH 2/4] rng: msm: don't enable PRNG if it's already enabled

2025-01-31 Thread Sam Day
Hi Neil, On Friday, 31 January 2025 at 10:42, Neil Armstrong wrote: > > > On 27/01/2025 08:49, Sam Day wrote: > > > msm_rng_enable is supposed to skip writing to LFSR_CFG + CONFIG > > registers in the PRNG_ block if PRNG_CONFIG_HW_ENABLE is already set. > > The logic to test for this was inv

[PULL] Pull request for u-boot master / v2025.04 = u-boot-stm32-20250131

2025-01-31 Thread Patrice CHOTARD
Hi Tom Please pull the STM32 related patches for u-boot/master, v2025.04 = u-boot-stm32-20250131 CI status: https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/24410 The following changes since commit a517796cfa5d8f4ca2f0c11c78c24a08a102c047: Prepare v2025.04-rc1 (2025-01-27 16

[PATCH v2 13/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RV1108

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rv1108.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1

[PATCH v2 12/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3399

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk3399.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 11/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3368

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk3368.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 08/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3288

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 10/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3328

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk3328.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 09/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3308

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk3308.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 04/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3066

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk3066.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 07/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3228

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk322x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 06/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3188

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk3188.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 02/13] pinctrl: rockchip: constify rockchip_pin_ctrl for PX30

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-px30.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.

[PATCH v2 05/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3128

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk3128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 03/13] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3036

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz --- drivers/pinctrl/rockchip/pinctrl-rk3036.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3

[PATCH v2 00/13] pinctrl: rockchip: fix editing const struct + constify rockchip_pin_ctrl

2025-01-31 Thread Quentin Schulz
While testing some WIP work done by Ilias Apalodimas on guaranteeing read-only memory areas truly are handled as read-only[1], my RK3588 Tiger couldn't reach U-Boot CLI anymore because of the pinctrl driver modifying a const struct rockchip_pin_ctrl, triggering a CPU abort. Instead of going the la

[PATCH v2 01/13] pinctrl: rockchip: fix bank's pin_base computing

2025-01-31 Thread Quentin Schulz
From: Quentin Schulz The logic in the core reads the nr_pins of the controller and uses it as the index of the first pin in the bank (pin_base) it currently parses. It then increments the number of pins in the controller before going to the next bank. This works "fine" for controllers where nr_p

Re: [PATCH v2 5/7] pinctrl: at91: Bind GPIO driver to the pinctrl DT node

2025-01-31 Thread Eugen Hristev
On 1/30/25 05:51, Manikandan Muralidharan wrote: > In Linux DT,the pinctrl node acts as parent nodes with all other > gpio banks as child nodes and a single driver in Linux handles both > pinctrl settings and gpio requests.Current U-Boot DT maintains both > pinctrl and gpio nodes as separate nod

Re: [PATCH 1/4] clk/qcom: apq8016: add PRNG_AHB_CLK

2025-01-31 Thread Neil Armstrong
On 27/01/2025 08:48, Sam Day wrote: This clock needs to be enabled for the msm-rng driver to work on MSM8916, otherwise accessing the PRNG register block causes a data abort. Signed-off-by: Sam Day --- drivers/clk/qcom/clock-apq8016.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-

Re: [PATCH 2/4] rng: msm: don't enable PRNG if it's already enabled

2025-01-31 Thread Neil Armstrong
On 27/01/2025 08:49, Sam Day wrote: msm_rng_enable is supposed to skip writing to LFSR_CFG + CONFIG registers in the PRNG_ block if PRNG_CONFIG_HW_ENABLE is already set. The logic to test for this was inverted. Without this fix, the driver was causing SError aborts on my MSM8916 device. Stephan

Re: LwIP and multiple network interfaces

2025-01-31 Thread E Shattow
Hi, On 1/30/25 02:23, Jerome Forissier wrote: [snip] Please check [1] and let me know if it works for you. [1] https://lists.denx.de/pipermail/u-boot/2025-January/578982.html Thanks, Confirmed. I tested each of two network ports on the same Pine64 Star64 board and it is now working as ex

Re: [PATCH 1/2] stm32mp: Fix board_get_usable_ram_top()

2025-01-31 Thread Patrice CHOTARD
On 1/30/25 11:51, Patrick DELAUNAY wrote: > Hi, > > On 1/9/25 11:21, Patrice Chotard wrote: >> mmu_set_region_dcache_behaviour() parameters must be aligned >> which is not always the case. >> For example for STM32MP2, we stayed stuck inside >> mmu_set_region_dcache_behaviour() in an infinite lo

Re: [PATCH 2/2] ARM: dts: stm32: Update ck_flexgen_08 frequency.

2025-01-31 Thread Patrice CHOTARD
On 1/30/25 11:52, Patrick DELAUNAY wrote: > Hi, > > On 1/9/25 11:21, Patrice Chotard wrote: >> Spurious characters are displayed on U-Boot console. >> Usart2 clock is ck_flexgen_08 and its frequency is set >> to an incorrect value. >> >> Update ck_flexgen_08 frequency from 100MHz to 64MHz. >> >

Re: [PATCH 2/2] configs: stm32f469-disco: Set CYCLIC_MAX_CPU_TIME_US to 50000 for stm32f469-disco

2025-01-31 Thread Patrice CHOTARD
On 1/8/25 19:53, Patrick DELAUNAY wrote: > Hi, > > On 12/11/24 09:09, Patrice Chotard wrote: >> Updating the framebuffer takes quite a long time on this slow patform, >> set CYCLIC_MAX_CPU_TIME_US to 5 for stm32f469-disco to avoid >> following cyclic warning: >> >> "cyclic function video_in

Re: [PATCH 1/2] configs: stm32f769-disco: Set CYCLIC_MAX_CPU_TIME_US to 8000 for stm32f769-disco

2025-01-31 Thread Patrice CHOTARD
On 1/8/25 19:53, Patrick DELAUNAY wrote: > Hi, > > On 12/11/24 09:09, Patrice Chotard wrote: >> Updating the framebuffer takes quite a long time on this slow patform, >> set CYCLIC_MAX_CPU_TIME_US to 8000 for stm32f769-disco to avoid >> following cyclic warning: >> >> "cyclic function video_ini

Re: [PATCH] board: st: stm32mp1: Clean env_get_location()

2025-01-31 Thread Patrice CHOTARD
On 12/5/24 13:48, Patrick DELAUNAY wrote: > Hi, > > On 11/29/24 13:48, Patrice Chotard wrote: >> ENV_IS_IN_EXT4 flag is no more used in any STM32 defconfig, >> remove the related code. >> >> Signed-off-by: Patrice Chotard >> --- >> >>   board/st/stm32mp1/stm32mp1.c | 2 -- >>   1 file changed,

Re: [PATCH] ARM: dts: stm32mp13: Add support of ck_usbo_48m in pre-reloc stage

2025-01-31 Thread Patrice CHOTARD
On 1/8/25 19:51, Patrick DELAUNAY wrote: > Hi, > > On 11/29/24 13:33, Patrice Chotard wrote: >> From: Patrick Delaunay >> >> The clock ck_usbo_48m is a clock source for RCC, so the ck_usbo_48m >> clock provided by usbphyc need to be probed when RCC clock driver is >> required, in pre-reloc sta

Re: [PATCH v1 6/6] configs: stm32mp25: enable CONFIG_SYS_64BIT_LBA

2025-01-31 Thread Patrice CHOTARD
On 1/8/25 19:50, Patrick DELAUNAY wrote: > Hi, > > On 11/29/24 13:27, Patrice Chotard wrote: >> In arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c, in init_device(), >> in case of RAW_IMAGE, part->size = block_dev->lba * block_dev->blksz. >> >>    _ part->size is declared as u64. >>    _ block_

Re: [PATCH v1 5/6] configs: stm32mp15: enable CONFIG_SYS_64BIT_LBA

2025-01-31 Thread Patrice CHOTARD
On 1/8/25 19:49, Patrick DELAUNAY wrote: > Hi, > > On 11/29/24 13:27, Patrice Chotard wrote: >> In arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c, in init_device(), >> in case of RAW_IMAGE, part->size = block_dev->lba * block_dev->blksz. >> >>    _ part->size is declared as u64. >>    _ block_

Re: [PATCH v1 3/6] arm: stm32mp: stm32prog: update multiplier is part-size is above SZ_1G

2025-01-31 Thread Patrice CHOTARD
On 1/8/25 19:49, Patrick DELAUNAY wrote: > Hi > > On 11/29/24 13:27, Patrice Chotard wrote: >> Set multiplier to 'G' if part->size if above SZ_1G. >> >> Signed-off-by: Patrice Chotard >> --- >> >>   arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 5 - >>   1 file changed, 4 insertions(+),

Re: [PATCH v1 4/6] configs: stm32mp13: enable CONFIG_SYS_64BIT_LBA

2025-01-31 Thread Patrice CHOTARD
On 1/8/25 19:49, Patrick DELAUNAY wrote: > Hi, > > On 11/29/24 13:27, Patrice Chotard wrote: >> In arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c, in init_device(), >> in case of RAW_IMAGE, part->size = block_dev->lba * block_dev->blksz. >> >>    _ part->size is declared as u64. >>    _ block_

Re: [PATCH v1 1/6] fastboot: Fix warning when CONFIG_SYS_64BIT_LBA is enable

2025-01-31 Thread Patrice CHOTARD
On 1/8/25 19:48, Patrick DELAUNAY wrote: > Hi, > > On 11/29/24 13:27, Patrice Chotard wrote: >> If CONFIG_SYS_64BIT_LBA is enable, following compilation warning is >> triggered: >> >>   CC  drivers/fastboot/fb_mmc.o >> ../drivers/fastboot/fb_mmc.c: In function 'fb_mmc_erase_mmc_hwpart': >>

Re: [PATCH v1 2/6] arm: stm32mp: stm32prog: fix warning when CONFIG_SYS_64BIT_LBA is enable

2025-01-31 Thread Patrice CHOTARD
On 1/8/25 19:48, Patrick DELAUNAY wrote: > Hi, > > On 11/29/24 13:27, Patrice Chotard wrote: >> If CONFIG_SYS_64BIT_LBA flag is enable, following warning is triggered: >> >> ../arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c: In function >> 'init_device': >> ../arch/arm/mach-stm32mp/cmd_stm32p