Re: [PATCH v2 1/2] usb: dwc3-generic: set "mode" based on caller of dwc3_generic_probe()

2024-12-03 Thread Siddharth Vadapalli
On Wed, Dec 04, 2024 at 09:32:23AM +0200, Roger Quadros wrote: > > > On 04/12/2024 07:16, Siddharth Vadapalli wrote: > > On Tue, Dec 03, 2024 at 09:23:11PM +0200, Roger Quadros wrote: [...] > >>> +++ b/drivers/usb/dwc3/dwc3-generic.c > >>> @@ -51,7 +51,8 @@ struct dwc3_generic_host_priv { > >>>

Re: [PATCH v2 1/2] usb: dwc3-generic: set "mode" based on caller of dwc3_generic_probe()

2024-12-03 Thread Roger Quadros
On 04/12/2024 07:16, Siddharth Vadapalli wrote: > On Tue, Dec 03, 2024 at 09:23:11PM +0200, Roger Quadros wrote: > > Hello Roger, > >> Hi Siddharth, >> >> >> On 03/12/2024 11:37, Siddharth Vadapalli wrote: >>> There are only two callers of "dwc3_generic_probe()", namely: >>> 1. dwc3_generic_pe

Re: [PATCH v2 1/4] fdt: add support for adding pmem nodes

2024-12-03 Thread Sughosh Ganu
On Wed, 4 Dec 2024 at 01:15, Simon Glass wrote: > > Hi Sughosh, > > On Tue, 3 Dec 2024 at 09:36, Sughosh Ganu wrote: > > > > From: Masahisa Kojima > > > > One of the problems OS installers face, when running in EFI, is that > > the mounted ISO after calling ExitBootServices goes away. For some >

[PATCH v3] usb: onboard-hub: Update the bind function based on peer-hub property

2024-12-03 Thread Venkatesh Yadav Abbarapu
As the "peer-hub" property is optional, don't error out just skip the bind function. Fixes: 57e30b09fc ("usb: onboard-hub: Bail out if peer hub is already probed") Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Removed the peer_hub variable and used the return value. Changes in v3:

Re: [PATCH v2] usb: onboard-hub: Update the bind function based on peer-hub property

2024-12-03 Thread Michal Simek
+Patrice On 12/4/24 05:39, Venkatesh Yadav Abbarapu wrote: As the "peer-hub" property is optional, don't error out just skip the bind function. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Removed the peer_hub variable and used the return value. --- common/usb_onboard_hub.c |

RE: [PATCH v2] mtd: spi-nor: Enable mt35xu512aba_fixups for all mt35xx flashes

2024-12-03 Thread Abbarapu, Venkatesh
> -Original Message- > From: Tudor Ambarus > Sent: Tuesday, December 3, 2024 6:37 PM > To: Abbarapu, Venkatesh ; u-boot@lists.denx.de; > j-humphr...@ti.com > Cc: Simek, Michal ; ja...@amarulasolutions.com; > vigne...@ti.com; u-kum...@ti.com; tr...@konsulko.com; sean...@gmail.com; > caleb

Re: [PATCH v2 1/2] usb: dwc3-generic: set "mode" based on caller of dwc3_generic_probe()

2024-12-03 Thread Siddharth Vadapalli
On Tue, Dec 03, 2024 at 09:23:11PM +0200, Roger Quadros wrote: Hello Roger, > Hi Siddharth, > > > On 03/12/2024 11:37, Siddharth Vadapalli wrote: > > There are only two callers of "dwc3_generic_probe()", namely: > > 1. dwc3_generic_peripheral_probe() > > 2. dwc3_generic_host_probe() > > Current

[PATCH v2] usb: onboard-hub: Update the bind function based on peer-hub property

2024-12-03 Thread Venkatesh Yadav Abbarapu
As the "peer-hub" property is optional, don't error out just skip the bind function. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Removed the peer_hub variable and used the return value. --- common/usb_onboard_hub.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH v7 14/14] efi_selftest: add test for IPv4 Config2 protocol

2024-12-03 Thread Adriano Cordova
Add a test for the EFI_IP4_CONFIG2_PROTOCOL. The test sets the ip policy to static, adds an ip address, and then reads the current ip address and checks for it to be the same as the one that was set. Signed-off-by: Adriano Cordova --- Changes in v7: - Fixed sizeof() calls when possible - When set

[PATCH v7 13/14] efi_selftest: add test for HTTP protocol

2024-12-03 Thread Adriano Cordova
Add a test for the EFI_HTTP_PROTOCOL and EFI_SEVICE_BINDING_PROTOCOL. Signed-off-by: Adriano Cordova --- Changes in v7: - Fixed sizeof() calls when possible - When setting up the test, check if any handle was found before looping through the handles. (no changes since v2) lib/efi_selftest/Mak

[PATCH v7 12/14] lib: uuid: display HTTP and IPV4 Config II protocols

2024-12-03 Thread Adriano Cordova
From: Heinrich Schuchardt Add long texts for * EFI HTTP Protocol * EFI HTTP Service Binding Protocol * EFI IPv4 Configuration II Protocol to the uuid library. Signed-off-by: Heinrich Schuchardt Signed-off-by: Adriano Cordova Reviewed-by: Ilias Apalodimas --- (no changes since v2) lib/uuid

[PATCH v7 10/14] efi_loader: efi_net: add EFI_IP4_CONFIG2_PROTOCOL

2024-12-03 Thread Adriano Cordova
Add an implementation of the EFI_IP4_CONFIG2_PROTOCOL. The protocol is attached to the handle of the efi network device. This is the same handle where snp and pxe are attached to. Signed-off-by: Adriano Cordova --- Changes in v7: - Changed some EFI_INVALID_PARAMETER for EFI_BAD_BUFFER_SIZE (no ch

[PATCH v7 11/14] efi_loader: efi_net: add EFI_HTTP_PROTOCOL

2024-12-03 Thread Adriano Cordova
Add an EFI HTTP driver. This commit implements the EFI_HTTP_PROTOCOL and the EFI_HTTP_SERVICE_BINDING_PROTOCOL. The latter is attached to the handle of th efi network device. This is the same handle where snp, pxe, and ipconfig are attached to. Signed-off-by: Adriano Cordova --- (no changes since

[PATCH v7 09/14] efi_loader: net: add support to send http requests and parse http headers

2024-12-03 Thread Adriano Cordova
Add network-stack agnostic way to send an http request and parse http headers from efi drivers. This uses wget as a backend and communicates with it via efi_wget_info. The function efi_net_do_request allocates a buffer on behalf of an efi application using efi_alloc and passes it to wget to receiv

[PATCH v7 08/14] efi_loader: net: set EFI bootdevice device path to HTTP when loaded from wget

2024-12-03 Thread Adriano Cordova
Set the device path of the efi boot device to an HTTP device path (as formed by efi_dp_from_http) when the next boot stage is loaded using wget (i.e., when wget is used with wget_info.set_bootdev=1). When loaded from HTTP, the device path should account for it so that the next boot stage is aware

[PATCH v7 07/14] efi_loader: device_path: add support for HTTP device path

2024-12-03 Thread Adriano Cordova
Add efi_dp_from_http to form a device path from HTTP. The device path is the concatenation of the device path returned by efi_dp_from_ipv4 together with an URI node and an END node. Signed-off-by: Adriano Cordova Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas --- include/efi_lo

[PATCH v7 06/14] efi_loader: efi_net: add efi_net_set_addr, efi_net_get_addr

2024-12-03 Thread Adriano Cordova
Add the functions efi_net_set_addr and efi_net_get_addr to set and get the ip address from efi code in a network agnostic way. This could also go in net_common, or be compiled conditionally for each network stack. Signed-off-by: Adriano Cordova Reviewed-by: Heinrich Schuchardt --- (no changes s

[PATCH v7 05/14] efi_api: add definitions for HTTP and IP4_CONFIG2 protocols

2024-12-03 Thread Adriano Cordova
Add EFI definitions for EFI_IP4_CONFIG2_PROTOCOL, EFI_HTTP_SERVICE_BINDING_PROTOCOL, and EFI_HTTP_PROTOCOL. According to UEFI spec 2.10. Signed-off-by: Adriano Cordova Reviewed-by: Ilias Apalodimas --- include/efi_api.h | 203 ++ 1 file changed, 203 i

[PATCH v7 04/14] efi_loader: add IPv4() to device path to text protocol

2024-12-03 Thread Adriano Cordova
From: Heinrich Schuchardt Implement Ipv4() node support in the device path to text protocol. Signed-off-by: Heinrich Schuchardt Signed-off-by: Adriano Cordova Reviewed-by: Ilias Apalodimas --- lib/efi_loader/efi_device_path_to_text.c | 23 +++ 1 file changed, 23 insertion

[PATCH v7 03/14] efi_loader: device_path: add efi_dp_from_ipv4

2024-12-03 Thread Adriano Cordova
Add efi_dp_from_ipv4 to form a device path from an ipv4 address. Signed-off-by: Adriano Cordova Reviewed-by: Ilias Apalodimas --- lib/efi_loader/efi_device_path.c | 47 1 file changed, 47 insertions(+) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loa

[PATCH v7 02/14] efi_loader: device_path: add definition of DEVICE_PATH_SUB_TYPE_MSG_IPV4

2024-12-03 Thread Adriano Cordova
Add definition for DEVICE_PATH_SUB_TYPE_MSG_IPV4 device path subtype. Signed-off-by: Adriano Cordova Reviewed-by: Ilias Apalodimas --- include/efi_api.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/efi_api.h b/include/efi_api.h index f07d074f93..99ee749522 1006

[PATCH v7 01/14] net: wget: let wget_with_dns work with dns disabled

2024-12-03 Thread Adriano Cordova
This was marked as TODO in the code: - Enable use of wget_with_dns even if CMD_DNS is disabled if the given uri has the ip address for the http server. - Move the check for CMD_DNS inside wget_with_dns. - Rename wget_with_dns to wget_do_request Signed-off-by: Adriano Cordova Reviewed-by: He

Re: [PATCH] dwmac_socfpga: Add RGMII-ID support

2024-12-03 Thread Marek Vasut
On 12/4/24 12:30 AM, Rufus Segar wrote: From: Rufus Segar This patch adds support for the "rgmii-id", "rgmii-rxid", and "rgmii-txid" modes for the dwmac_socfpga driver. Signed-off-by: Rufus Segar --- drivers/net/dwmac_socfpga.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

Re: [PATCH] usb: onboard-hub: Update the bind function based on "peer_hub" property

2024-12-03 Thread Marek Vasut
On 12/3/24 6:02 PM, Michal Simek wrote: On 12/3/24 17:24, Marek Vasut wrote: On 12/3/24 2:44 PM, Michal Simek wrote: On 12/3/24 05:49, Venkatesh Yadav Abbarapu wrote: Add the bool variable "peer_hub" and set this only for the hubs which have the "peer-hub" property in their DT nodes. Skip

Applying patches to mainline (Was: Re: [PATCH v2 0/7] efi_loader: Add support for logging to a buffer)

2024-12-03 Thread Tom Rini
On Mon, Dec 02, 2024 at 05:21:05PM -0700, Simon Glass wrote: > From my side I'd like to change the conversation a little, to how to > land code, rather than why we should bother. "Code needs to land" > should be the motto. If someone has taken the time to create > something, our bias should be tow

Re: [GIT PULL] xilinx patches for v2025.04-rc1

2024-12-03 Thread Tom Rini
On Tue, Dec 03, 2024 at 08:42:36AM +0100, Michal Simek wrote: > Hi Tom, > > please pull these patches to your next branch. The biggest change is to > start to use binman instead of arch/arm/mach-zynqmp/mkimage_fit_atf.sh > script. > > Thanks, > Michal > > The following changes since commit 6222

RE: [PATCH 01/11] gpio: imx_rgpio2p: Move 8ulp_data to data section

2024-12-03 Thread Peng Fan
> Subject: Re: [PATCH 01/11] gpio: imx_rgpio2p: Move 8ulp_data to data > section > > On Tue, Dec 3, 2024 at 11:37 AM Peng Fan (OSS) > wrote: > > > > From: Peng Fan > > > > have_dual_base is set to false, so the 8ulp_data will be put in BSS > > section which conflicts with the area of u-boot.dtb

Re: [PATCH v4 2/2] doc: spacemit: bananapi_f3: document Banana Pi F3 board

2024-12-03 Thread Yixun Lan
Hi Marcel, Huan On 18:52 Tue 03 Dec , Marcel Ziswiler wrote: > Hi Huan Zhou > > On Fri, 2024-11-29 at 13:37 +0800, Huan Zhou wrote: > > From: Kongyang Liu > > > > Add document for Banana Pi F3 board which based on SpacemiT's K1 SoC. > > > > Signed-off-by: Kongyang Liu > > Signed-off-by:

Re: [PATCH v2 00/41] pxe: Support read_all() for extlinux and PXE

2024-12-03 Thread Simon Glass
Hi Tom, On Tue, 3 Dec 2024 at 17:12, Tom Rini wrote: > > On Tue, Dec 03, 2024 at 05:03:26PM -0700, Simon Glass wrote: > > Hi, > > > > On Tue, 3 Dec 2024 at 16:46, Simon Glass wrote: > > > > > > This series implements read_all() so that it is possible to read all the > > > files relating to a boo

RE: [PATCH v7 03/12] mmc: dw_mmc: Add "starfive, jh7110-mmc" compatible to match upstream DT

2024-12-03 Thread Jaehoon Chung
> -Original Message- > From: U-Boot On Behalf Of Hal Feng > Sent: Tuesday, December 3, 2024 12:04 PM > To: Leo ; Tom Rini ; Sumit Garg > ; > Rick Chen ; Heinrich Schuchardt ; H > Bell > ; E Shattow ; Conor Dooley > ; Nam > Cao ; Bo Gan > Cc: Emil Renner Berthing ; Minda Chen > ; Hal

RE: [PATCH v1 3/3] configs: th1520_lpi4a: enable mmc controller support

2024-12-03 Thread Jaehoon Chung
> -Original Message- > From: biguncle...@gmail.com > Sent: Monday, December 2, 2024 12:07 AM > > From: Maksim Kiselev > > Enable driver for DesignWare MSHC. TH1520 supports all > speed modes up to HS400ES and UHS SDR105. > > Also enable ADMA and mmc command. > > Signed-off-by: Maksim K

RE: [PATCH v1 2/3] riscv: dts: t-head: Add sdhci and emmc nodes

2024-12-03 Thread Jaehoon Chung
> -Original Message- > From: biguncle...@gmail.com > Sent: Monday, December 2, 2024 12:07 AM > > From: Maksim Kiselev > > Add SDHCI and EMMC controlles nodes on TH-1520 SoC. And enable them for > Lichee module 4A. > > Signed-off-by: Maksim Kiselev Reviewed-by: Jaehoon Chung Best Re

[PATCH v2 32/41] bootmeth_extlinux: Move pxe_context into plat

2024-12-03 Thread Simon Glass
Move this struct into the plat data so that we can use it multiple times during the boot process. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootmeth_extlinux.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/boot/bootmeth_extlinux.c b/boot/bootmeth_ex

Re: [PATCH v2 00/41] pxe: Support read_all() for extlinux and PXE

2024-12-03 Thread Tom Rini
On Tue, Dec 03, 2024 at 05:03:26PM -0700, Simon Glass wrote: > Hi, > > On Tue, 3 Dec 2024 at 16:46, Simon Glass wrote: > > > > This series implements read_all() so that it is possible to read all the > > files relating to a bootflow, make adjustments and then boot. > > > > Unfortunately quite a f

Re: [PATCH v2 00/41] pxe: Support read_all() for extlinux and PXE

2024-12-03 Thread Simon Glass
Hi, On Tue, 3 Dec 2024 at 16:46, Simon Glass wrote: > > This series implements read_all() so that it is possible to read all the > files relating to a bootflow, make adjustments and then boot. > > Unfortunately quite a few things stand in the way, so this series > finishes off several pending ite

[PATCH v2 36/41] bootmeth_extlinux: Move boot code into common file

2024-12-03 Thread Simon Glass
The extlinux and PXE code for booting is almost the same. Move it into the common file so it is easier to keep it in sync. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootmeth_extlinux.c | 24 +++- boot/bootmeth_pxe.c | 19 +-- boot/ext_px

[PATCH v2 30/41] test: Update bootm test to restore silent_console

2024-12-03 Thread Simon Glass
Unset this environment variable at the end of bootm_test_silent() et al to avoid affecting subsequent tests. Signed-off-by: Simon Glass --- (no changes since v1) test/boot/bootm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/test/boot/bootm.c b/test/boot/bootm.c index 9455f44884c

[PATCH] dwmac_socfpga: Add RGMII-ID support

2024-12-03 Thread Rufus Segar
From: Rufus Segar This patch adds support for the "rgmii-id", "rgmii-rxid", and "rgmii-txid" modes for the dwmac_socfpga driver. Signed-off-by: Rufus Segar --- drivers/net/dwmac_socfpga.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/dwmac_socfpga.c b/drivers/net/dwmac_soc

[PATCH v2 41/41] bootmeth_extlinux: Refactor extlinux to split boot

2024-12-03 Thread Simon Glass
Add a new extlinux_setup() function which sets things up so that the bootflow can either be booted, or just probed. Provide a readall() method so that images can be read into memory, without booting the OS. Adjust the boot() method so that it can boot, after any changes have been made by the user.

[PATCH v2 40/41] pxe_utils: Refactor to separate reading from booting

2024-12-03 Thread Simon Glass
It is useful to be able to select a bootflow and read its images, without actually doing the boot. This allows adjusting the bootargs, for example. Provide support for this in the pxe_utils module, by adding a 'probe' method which selects a label and saves its settings, so it can be booted later,

[PATCH v2 38/41] pxe: Collect the FDT in the bootflow

2024-12-03 Thread Simon Glass
Move processing of the FDT so that it happens before booting. Add a test to check that the FDT is now visible. Signed-off-by: Simon Glass --- (no changes since v1) boot/pxe_utils.c | 22 +- test/boot/bootflow.c | 6 +- 2 files changed, 18 insertions(+), 10 deletion

[PATCH v2 39/41] pxe: Deal with a missing FDT in the bootflow

2024-12-03 Thread Simon Glass
Move processing of a missing FDT so that it happens before booting, so we can see the result in the bootflow. Signed-off-by: Simon Glass --- (no changes since v1) boot/pxe_utils.c | 34 ++ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/boot/pxe_

[PATCH v2 37/41] bootstd: Update extlinux and pxe to allow boot interruption

2024-12-03 Thread Simon Glass
It is useful to be able to inspect things before the OS is actually booted, perhaps to check that all is well or to adjust the kernel command-line. Implement the 'read_all()' method to allow this. Provide a simple test to check that the images are found. For now it is not possible to actually con

[PATCH v2 34/41] bootmeth_pxe: Implement the fallback option

2024-12-03 Thread Simon Glass
Provide this feature in PXE, so that it matches extlinux. Use plat data for this, just like extlinux. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootmeth_pxe.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/boot/bootmeth_pxe.c b/boot/bootmeth_px

[PATCH v2 35/41] bootmeth_pxe: Drop the driver-private data

2024-12-03 Thread Simon Glass
Since this driver's plat-data already contains a PXE context, use that. Drop the priv-data. Use the extlinux_info which is in there, as well. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootmeth_pxe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/boot/boot

[PATCH v2 31/41] bootmeth_extlinux: Move extlinux_info into plat

2024-12-03 Thread Simon Glass
Move this struct into the plat data so that we can use it multiple times during the boot process. This struct is missing a comment, so add one. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootmeth_extlinux.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions

[PATCH v2 33/41] bootmeth: Refactor to put options in a common file

2024-12-03 Thread Simon Glass
The fallback feature is implemented for extlinux but not for PXE. Move the code into common files so we can keep both pieces in sync. Tidy up the comment for set_property() while we are here, fixing the return value and some missing hyphens. Signed-off-by: Simon Glass --- (no changes since v1)

[PATCH v2 29/41] pxe: Allow skipping the boot

2024-12-03 Thread Simon Glass
Provide a way to skip booting the OS and just return. This will allow bootstd to read out useful information. Add debugging to help figure out the flow. Signed-off-by: Simon Glass --- (no changes since v1) boot/pxe_utils.c| 12 ++-- include/pxe_utils.h | 4 +++- 2 files changed,

[PATCH v2 28/41] pxe: Record the bootflow in the PXE context

2024-12-03 Thread Simon Glass
At present the only option with PXE is to boot it and see what happens. Provide a bootflow, when available, so that PXE will eventually be able to add some useful information to it. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootmeth_extlinux.c | 2 +- boot/bootmeth_pxe.c

RE: [PATCH v2 2/2] power: regulator: replace dev_dbg() by dev_err() in regulator_post_bind()

2024-12-03 Thread Jaehoon Chung
> -Original Message- > From: Patrice Chotard > Sent: Tuesday, December 3, 2024 7:06 PM > To: u-boot@lists.denx.de > Cc: Patrice CHOTARD ; Patrick DELAUNAY > ; U- > Boot STM32 ; Jaehoon Chung > ; Jonas > Karlman ; Marek Vasut ; Quentin Schulz > ; > Simon Glass ; Tom Rini > Subject: [

[PATCH v2 26/41] boot: Avoid using the cmdline in bootmeth_pxe and pxe cmd

2024-12-03 Thread Simon Glass
Use the new netboot_run() function to avoid building a command line, when running these network operations. For the one board which uses lwip, it is not quite clear how to avoid using the cmdline interface, so produce an error, for now. This can be figured out later. Signed-off-by: Simon Glass -

[PATCH v2 27/41] pxe: Drop the cmdline parameter

2024-12-03 Thread Simon Glass
Now that PXE can operate without the command line, drop the parameter throughout the code. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootmeth_extlinux.c | 5 ++--- boot/bootmeth_pxe.c | 4 +--- boot/pxe_utils.c | 8 +++- cmd/pxe.c| 9 ---

[PATCH v2 25/41] net: Provide a function to run network operations

2024-12-03 Thread Simon Glass
Add a new netboot_run() function which can be used for simple network operations, such as loading a file. Put the implementation in an internal function, used by the existing code. Place this function into the net/ code, so that it does not need the command line to be available. Document which ne

[PATCH v2 22/41] net: Return the size from parse_args()

2024-12-03 Thread Simon Glass
Rather than setting global variables, return the size, if provided. For tftput, use the addr argument to store the save address, to avoid adding yet another parameter. Signed-off-by: Simon Glass --- (no changes since v1) cmd/net.c | 22 ++ 1 file changed, 14 insertions(+),

[PATCH v2 24/41] net: Drop #ifdef in parse_args()

2024-12-03 Thread Simon Glass
Use IS_ENABLED() to avoid an extra build path. Signed-off-by: Simon Glass Acked-by: Ilias Apalodimas --- (no changes since v1) cmd/net.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/net.c b/cmd/net.c index f980448e0ef..6d1c6374f76 100644 --- a/cmd/net.c

[PATCH v2 23/41] net: Refactor part of netboot_common() into a function

2024-12-03 Thread Simon Glass
Move the core code for starting an netboot operation into a separate function, so that we can (with additional work) move towards calling it from outside the file. Signed-off-by: Simon Glass --- (no changes since v1) cmd/net.c | 62 +-- 1 fil

[PATCH v2 20/41] net: Return the load address from parse_args()

2024-12-03 Thread Simon Glass
Rather than updating the global, update the value of a parameter, so the action of the function is simpler. Signed-off-by: Simon Glass --- (no changes since v1) cmd/net.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/net.c b/cmd/net.c index cc7d14eb082..d1

[PATCH v2 21/41] net: Return the address and size from parse_addr_size()

2024-12-03 Thread Simon Glass
Rather than updating the global, update the value of some parameters, so the action of the function is simpler. Signed-off-by: Simon Glass --- (no changes since v1) cmd/net.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/cmd/net.c b/cmd/net.c index d15d344

[PATCH v2 15/41] pxe_utils: Simplify default fdt in label_run_boot()

2024-12-03 Thread Simon Glass
Tidy up this code a little to avoid two calls to env_get() for both fdt_addr and fdtcontroladdr Signed-off-by: Simon Glass Suggested-by: Quentin Schulz --- Changes in v2: - Add new patch to simplify the code reading fdtcontroladdr and fdt_addr boot/pxe_utils.c | 14 -- 1 file chan

[PATCH v2 19/41] net: Simplify parse_args()

2024-12-03 Thread Simon Glass
This function repeats the same code in a few places, namely setting net_boot_file_name_explicit and copying of the filename to net_boot_file_name Move these two operations to the caller, with just the filename (or NULL) returned by parse_args() This makes things a little easier to follow. Signed

[PATCH v2 18/41] net: Tidy up the comments to parse_args()

2024-12-03 Thread Simon Glass
This function is a bit vague as to what it does. Expand the comment a little, to specify which args are provided and which variables are updated. Signed-off-by: Simon Glass Acked-by: Ilias Apalodimas --- (no changes since v1) cmd/net.c | 13 +++-- 1 file changed, 11 insertions(+), 2 d

[PATCH v2 16/41] boot: pxe: Refactor label_run_boot() to avoid cmdline

2024-12-03 Thread Simon Glass
Adjust the remaining call in this function to use the bootm API. This will allow PXE to work without the command line. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/zimage.c | 27 +++ boot/pxe_utils.c | 13 + include/bootm.h |

[PATCH v2 17/41] net: Keep the bootstage functions together

2024-12-03 Thread Simon Glass
Move the bootstage_mark() function just before net_loop(), so that the IPv6 code is not in the way. Signed-off-by: Simon Glass --- (no changes since v1) cmd/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/net.c b/cmd/net.c index 79525f73a51..deebd5b710f 100644

[PATCH v2 13/41] bootm: Allow building bootm.c without CONFIG_SYS_BOOTM_LEN

2024-12-03 Thread Simon Glass
This code cannot be compiled by boards which don't have this option. Add an accessor in the header file to avoid another #ifdef Signed-off-by: Simon Glass Reviewed-by: Quentin Schulz --- (no changes since v1) boot/bootm.c| 8 include/bootm.h | 8 2 files changed, 12 inse

[PATCH v2 14/41] boot: pxe: Use bootm_...() functions where possible

2024-12-03 Thread Simon Glass
Rather than building a command line for each operation, use the functions provided by the bootm API. Make sure that the bootm functions are available if pxe_utils is used. Since SYS_BOOTM_LEN is not present for the tools-only build, adjust the code to handle that. Signed-off-by: Simon Glass Rev

[PATCH v2 12/41] boot: Pass just the FDT argument to label_process_fdt()

2024-12-03 Thread Simon Glass
Since this function only adjusts one element of the bootm command, pass just that. This will make it easier to refactor things to remove the bootm command. Signed-off-by: Simon Glass Reviewed-by: Quentin Schulz --- (no changes since v1) boot/pxe_utils.c | 14 +++--- 1 file changed, 7

[PATCH v2 11/41] boot: Split pxe label_run_boot() into two parts

2024-12-03 Thread Simon Glass
This function is quite long. Split out the FDT processing into its own function. Add a function comment for the new label_process_fdt() function. Signed-off-by: Simon Glass Reviewed-by: Quentin Schulz --- Changes in v2: - Rebase on earlier change boot/pxe_utils.c | 100 ++

[PATCH v2 10/41] boot: Split pxe label_boot() into two parts

2024-12-03 Thread Simon Glass
This function is far too long. Split out the part which builds and runs the bootm/i/z commands into its own function. Add a function comment for the new label_run_boot() function. Signed-off-by: Simon Glass Reviewed-by: Quentin Schulz --- Changes in v2: - Move strlcpy() change into an earlier

[PATCH v2 08/41] x86: Drop the unnecessary base_ptr argument to zboot_dump()

2024-12-03 Thread Simon Glass
This value is include the bootm_info, so drop the unnecessary parameter. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/zimage.c | 5 +++-- cmd/bootflow.c| 3 ++- cmd/x86/zboot.c | 8 +++- include/bootm.h | 7 ++- 4 files changed, 10 insertions(+)

[PATCH v2 09/41] boot: Use strlcpy() in label_boot()

2024-12-03 Thread Simon Glass
This function is recommended instead of strncpy() since it always terminates the string. Signed-off-by: Simon Glass --- Changes in v2: - Split out strlcpy() change into new patch boot/pxe_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/pxe_utils.c b/boot/pxe_ut

[PATCH v2 06/41] x86: Move the bootm state for zimage into cmd/

2024-12-03 Thread Simon Glass
Rather than holding the state in the implementation code, move it to the command code. The state is now passed to the implementation functions and can there (with future work) be pass in from bootstd, without going through the commands. Signed-off-by: Simon Glass --- (no changes since v1) arch

[PATCH v2 07/41] bootstd: Correct display of kernel version

2024-12-03 Thread Simon Glass
The address of the bzImage is not recorded in the bootflow, so we cannot actually locate the version at present. Handle this case, to avoid showing invalid data. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/zimage.c | 13 - cmd/bootflow.c| 2 ++ 2 file

[PATCH v2 05/41] x86: Rename state to bmi

2024-12-03 Thread Simon Glass
Use the common name for the struct, in preparation for passing it around between functions. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/zimage.h | 2 +- arch/x86/lib/zimage.c | 48 +-- cmd/x86/zboot.c | 4 +--

[PATCH v2 04/41] x86: Move x86 zboot state into struct bootm_info

2024-12-03 Thread Simon Glass
This structure is supposed to handle any type of booting programmatically, i.e. without needing a command to be executed. Move the x86-specific members into it and use it instead of struct zboot_state. Provide a macro so access is possible without adding lots of #ifdefs to the code. This will allo

[PATCH v2 03/41] x86: Drop duplicate definition of zimage_dump()

2024-12-03 Thread Simon Glass
This is now defined in bootm.h so drop the duplicate in the x86 code. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/zimage.h | 8 cmd/x86/zboot.c | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/x86/include/asm/zimage.

[PATCH v2 02/41] x86: Rename zboot_run() to zboot_run_args()

2024-12-03 Thread Simon Glass
Rename this function so we can (later) create a zboot_run() function which looks the same as bootm_run() Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/zimage.c | 4 ++-- boot/bootmeth_cros.c | 6 +++--- include/bootm.h | 6 +++--- 3 files changed, 8 insertions(+), 8

[PATCH v2 00/41] pxe: Support read_all() for extlinux and PXE

2024-12-03 Thread Simon Glass
This series implements read_all() so that it is possible to read all the files relating to a bootflow, make adjustments and then boot. Unfortunately quite a few things stand in the way, so this series finishes off several pending items: zboot without CONFIG_CMDLINE, required support in pxe_utils a

[PATCH v2 01/41] x86: Make do_zboot_states() static

2024-12-03 Thread Simon Glass
This function is only called within zboot.c so make the function private. Signed-off-by: Simon Glass --- (no changes since v1) cmd/x86/zboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/x86/zboot.c b/cmd/x86/zboot.c index 94e602b8a5b..3035172352a 100644 --- a/c

RE: [PATCH v2 1/2] power: regulator: replace some debug() by dev_dbg()

2024-12-03 Thread Jaehoon Chung
> -Original Message- > From: Patrice Chotard > Sent: Tuesday, December 3, 2024 7:06 PM > To: u-boot@lists.denx.de > Cc: Patrice CHOTARD ; Patrick DELAUNAY > ; U- > Boot STM32 ; Jaehoon Chung > ; Jonas > Karlman ; Marek Vasut ; Quentin Schulz > ; > Simon Glass ; Tom Rini > Subject: [

[PATCH] net: tftpboot: clear timeout_count on every successful block

2024-12-03 Thread Mikhail Kshevetskiy
timeout_count is never reset once a tftpboot transfer has started. If for whatever reason timeouts occur frequently, but the server keeps replying nonetheless, the transfer may be needlessly aborted. Reset timer_count on every successful block to avoid this situation. Signed-off-by: Mikhail Kshev

Re: [PATCH 13/39] boot: pxe: Use bootm_...() functions where possible

2024-12-03 Thread Simon Glass
Hi Quentin, On Wed, 27 Nov 2024 at 05:08, Quentin Schulz wrote: > > Hi Simon, > > On 11/19/24 2:18 PM, Simon Glass wrote: > > Rather than building a command line for each operation, use the > > functions provided by the bootm API. > > > > Make sure that the bootm functions are available if pxe_ut

[PATCH v14 09/10] net/tcp: define a fallback value for rcv_wnd size

2024-12-03 Thread Mikhail Kshevetskiy
Some driver implements it's own network packet pool, so PKTBUFSRX is zero. This results in zero-size TCP receive window, so data transfer doesn't work. Avoid it by setting a reasonable fallback value. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 +- 1 file c

[RESEND v4 2/3] cmd: mtd: add nand_write_test command support

2024-12-03 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch implements 'nand torture' functionality for mtd command. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfi

[RESEND v4 3/3] cmd: mtd: add nand_read_test command support

2024-12-03 Thread Mikhail Kshevetskiy
This patch implements read-only test of nand flash devices. Test reads blocks of NAND flash in normal and raw modes and compares results. The following statuses can be returned for a block: * non-ecc reading failed, * ecc reading failed, * block is bad, * bitflips is above maximum, * actual n

[RESEND v4 1/3] cmd: mtd: add markbad command support

2024-12-03 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch implements 'nand markbad' functionality for mtd command. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfi

[RESEND v4 0/3] cmd/mtd: add missed featuries

2024-12-03 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch series implements following subcommands: * markbad -- mark block as bad (clone of 'nand markbad') *

[PATCH v14 10/10] net/net: fix include ordering

2024-12-03 Thread Mikhail Kshevetskiy
fix include ordering to follow https://docs.u-boot.org/en/latest/develop/codingstyle.html#include-files Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/net.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/net/net.c b/net/net.

[PATCH v14 08/10] net/tcp: simplify tcp header filling code

2024-12-03 Thread Mikhail Kshevetskiy
This patch: * remove useless code, * use a special function for pretty printing of tcp flags, * simplify the code The behavior should not be changed. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 66 +++ 1 fil

[PATCH v14 06/10] net/tcp: improve tcp framework, use better state machine

2024-12-03 Thread Mikhail Kshevetskiy
Changes: * Fix initial send sequence always zero issue * Use state machine close to RFC 9293. This should make TCP transfers more reliable (now we can upload a huge array of data from the board to external server) * Improve TCP framework a lot. This should make tcp client code much more

[PATCH v14 07/10] test/cmd/wget: fix the test

2024-12-03 Thread Mikhail Kshevetskiy
Changes: * update to new tcp stack * fix zero values for ISS and IRS issue (see RFC 9293) Previously this patch also fix incorrect values for tcp_ack & tcp_seq, but the issue was fixed in * dbb6b5a: sandbox: fix wget test failure after fixing wget issue Signed-off-by: Mikhail Kshevetskiy Revi

[PATCH v14 04/10] net/tcp: add connection info to tcp_stream structure

2024-12-03 Thread Mikhail Kshevetskiy
Changes: * Avoid use net_server_ip in tcp code, use tcp_stream data instead * Ignore packets from other connections if connection already created. This prevents us from connection break caused by other tcp stream. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net-

[PATCH v14 05/10] net/tcp: rename ack_edge and seq_init to more common rcv_nxt and irs

2024-12-03 Thread Mikhail Kshevetskiy
Use the names from RFC 9293 Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 8 net/tcp.c | 32 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index f224

[PATCH v14 00/10] net: tcp: improve tcp support in legacy stack

2024-12-03 Thread Mikhail Kshevetskiy
Legacy TCP stack is bad. Here are some of the known issues: * tcp packet from other connection can break a current one * tcp send sequence always starts from zero * bad tcp options processing * strange assumptions on packet size for selective acknowledge * tcp interface assumes one of the two

[PATCH v14 03/10] net/tcp: put connection specific data into a tcp_stream structure

2024-12-03 Thread Mikhail Kshevetskiy
no functional changes Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 37 +++- net/net.c | 11 ++- net/tcp.c | 231 +++--- net/wget.c| 3 +- 4 files changed, 163 insertions(+), 119 deleti

[PATCH v14 02/10] net/tcp: fix selective acknowledge

2024-12-03 Thread Mikhail Kshevetskiy
Current code assume that all (except last) packets are of the same size. This is definitely wrong. Replace SACK code with a new one, that does not rely on this assumption. Also this code uses less memory. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 200 ++

[PATCH v14 01/10] net/tcp: fix TCP options processing

2024-12-03 Thread Mikhail Kshevetskiy
Current TCP code may miss an option if TCP_O_NOP option was used before it for proper aligning. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index b0cc8a1fe3e..3e3118de45

Re: [PATCH] Revert "net: phy: marvell 88e151x: Fix handling of bare RGMII interface type"

2024-12-03 Thread Tom Rini
On Tue, Dec 03, 2024 at 02:45:36PM +, Rufus Segar wrote: > From 2f97d889cecfa2ba06652469765f31c70a68e867 Mon Sep 17 00:00:00 2001 > From: Rufus Segar > Date: Tue, 3 Dec 2024 14:35:10 + > Subject: [PATCH] Revert "net: phy: marvell 88e151x: Fix handling of bare > RGMII interface type" > >

[PATCH] rockchip: rk3308-rock-s0: Fix SD-card boot on v1.1 hw revision

2024-12-03 Thread Jonas Karlman
BootROM leave GPIO4_D6 configured as SDMMC_PWREN function and DW MMC driver set PWREN high in dwmci_init(). However, HW revision prior to v1.2 must pull GPIO4_D6 low to access sdmmc. For HW revision v1.2 the state of GPIO4_D6 has no impact. Upstream linux-rockchip maintainer tree has merged a pat

[PATCH] phy: don't spam console if phys property is absent in device node

2024-12-03 Thread Roger Quadros
\n", __func__); return 0; } } --- base-commit: 3073246d1be682071d8b3d07d06c2484907aed60 change-id: 20241203-nophys-0b539d183a16 Best regards, -- Roger Quadros

[PATCH] configs: am62x_evm_*: Fix USB DFU configuration

2024-12-03 Thread Roger Quadros
y --- base-commit: 3073246d1be682071d8b3d07d06c2484907aed60 change-id: 20241203-am62-usb-xhci-be62bc9584c9 Best regards, -- Roger Quadros

  1   2   3   >