[PATCH] spl: sdp: Pass the USB index to board_usb_init()

2022-07-13 Thread Fabio Estevam
From: Fabio Estevam board_usb_init() should receive the controller_index as its first parameter instead of having it hardcoded as 0. All in-tree users have CONFIG_SPL_SDP_USB_DEV as 0, so this error should not affect any board. Fix it by passing controller_index as the parameter of

Re: [PATCH 6/7] process.rst: Perform minor cleanups

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: - Use gender-neutral language to refer to the user, consistently. - Reword a few places so that they read more naturally. - Make the long standing practice around "Twilight Time" more clear, hopefully. - Replace a reference to MAKEALL with a reference to CI

Re: PRAM and reserved memory for Linux

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 04:13:27PM +, Joakim Tjernlund wrote: > On Wed, 2022-07-13 at 10:21 -0400, Tom Rini wrote: > > On Wed, Jul 13, 2022 at 10:08:38AM +, Joakim Tjernlund wrote: > > > > > I added CONFIG_PRAM 4 and a reserved-memory DTS node for the same space > > > but > > > now

Pull request for efi-2022-10-rc1

2022-07-13 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 36b661dc919da318c163a45f4a220d2e3d9db608: Merge branch 'next' (2022-07-11 14:58:57 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-10-rc1 for you to fetch changes up to

Re: [PATCH 4/7] doc: Migrate Process wiki page to Sphinx

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: Move the current Process wiki page to doc/develop/process.rst. The changes here are for formatting or slight rewording so that it reads well when linking to other Sphinx documents. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes in v2: - Assorted

Re: [PATCH 1/7] doc: Migrate CodingStyle wiki page to Sphinx

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:06:56PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > Move the current CodingStyle wiki page to doc/develop/codingstyle.rst. > > The changes here are for formatting or slight rewording so that it reads > > well when linking to other Sphinx

Re: [PATCH v2] mmc: fsl_esdhc_spl: Add support for loading proper U-Boot from unaligned location

2022-07-13 Thread Pali Rohár
On Tuesday 28 June 2022 20:14:36 Pali Rohár wrote: > On Thursday 23 June 2022 15:31:14 Pali Rohár wrote: > > On Monday 20 June 2022 12:54:26 Pali Rohár wrote: > > > This allows to concatenate SPL and proper U-Boot without extra alignment. > > > > > > Signed-off-by: Pali Rohár > > > --- > > >

Re: [PATCH 1/2] powerpc: mpc85xx: Add support for generating QorIQ pre-PBL eSDHC boot sector

2022-07-13 Thread Pali Rohár
On Tuesday 28 June 2022 20:07:48 Pali Rohár wrote: > On Thursday 23 June 2022 19:17:55 Pali Rohár wrote: > > On Saturday 04 June 2022 15:02:38 Pali Rohár wrote: > > > On Wednesday 18 May 2022 12:53:20 Pali Rohár wrote: > > > > On Wednesday 11 May 2022 22:59:28 Pali Rohár wrote: > > > > > On Monday

Re: [PATCH 0/3] fs/fat: fix handling of full disk

2022-07-13 Thread AKASHI Takahiro
On Tue, Jul 12, 2022 at 10:33:11PM +, Heinrich Schuchardt wrote: > Currently we have two functions with redundant coding to find an empty > cluster: > > * find_empty_cluster() seeks from the beginning of the FAT table > * determine_fatent() seeks after a given entry > > Both do not detect

RE: [PATCH] spl: sdp: Pass the USB index to board_usb_init()

2022-07-13 Thread Peng Fan
> Subject: [PATCH] spl: sdp: Pass the USB index to board_usb_init() > > From: Fabio Estevam > > board_usb_init() should receive the controller_index as its first parameter > instead of having it hardcoded as 0. > > All in-tree users have CONFIG_SPL_SDP_USB_DEV as 0, so this error should > not

Re: [PATCH 1/3] fs: fat: finding an empty FAT cluster

2022-07-13 Thread AKASHI Takahiro
Thank you for fixing this. On Tue, Jul 12, 2022 at 10:33:12PM +, Heinrich Schuchardt wrote: > Currently we have two functions with redundant coding to find an empty > cluster: > > * find_empty_cluster() seeks from the beginning of the FAT table > * determine_fatent() seeks after a given

Re: [PATCH 3/3] fs: fat: carve out fat_create_dir_entry()

2022-07-13 Thread AKASHI Takahiro
On Tue, Jul 12, 2022 at 10:33:14PM +, Heinrich Schuchardt wrote: > fat_mkdir() and file_fat_write_at() use identical code to create a new > directory entry. Carve out a new function fat_create_dir_entry() to avoid > this code duplication. Why not merge your patch[1] here as you're going to

Re: [PATCH v8 2/9] eficonfig: menu-driven addition of UEFI boot option

2022-07-13 Thread Takahiro Akashi
Heinrich, On Sun, Jul 10, 2022 at 11:03:43AM +0200, Heinrich Schuchardt wrote: > On 6/19/22 06:56, Masahisa Kojima wrote: > > This commit add the "eficonfig" command. > > The "eficonfig" command implements the menu-driven UEFI boot option > > maintenance feature. This commit implements the

[PATCH 1/6] clk: sunxi: Add NAND clocks and resets

2022-07-13 Thread Samuel Holland
Currently NAND clock setup is done in board code, both in SPL and in U-Boot proper. Add the NAND clocks/resets here so they can be used by the "full" NAND driver once it is converted to the driver model. The bit locations are copied from the Linux CCU drivers. Signed-off-by: Samuel Holland ---

[PATCH 2/6] pinctrl: sunxi: Add NAND pinmuxes

2022-07-13 Thread Samuel Holland
NAND is always at function 2 on port C. Pin lists and mux values were taken from the Linux drivers. Signed-off-by: Samuel Holland --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c

[PATCH 0/6] mtd: nand: sunxi: Convert to devicetree and the driver model

2022-07-13 Thread Samuel Holland
This series converts the sunxi NAND driver to get its resources (clocks, resets, pins) from the devicetree, and probe using the driver model. In addition to the immediate cleanup, this allows backporting more patches (bugfixes, newer SoC support) from the Linux driver. Samuel Holland (6):

[PATCH 4/6] mtd: nand: sunxi: Convert from fdtdec to ofnode

2022-07-13 Thread Samuel Holland
As a first step toward converting this driver to the driver model, use the ofnode abstraction to replace direct references to the FDT blob. Using ofnode_read_u32_index removes an extra pair of loops and makes the allwinner,rb property optional, matching the devicetree binding. Signed-off-by:

[PATCH 5/6] mtd: nand: sunxi: Convert to the driver model

2022-07-13 Thread Samuel Holland
Clocks, resets, and pinmuxes are now handled by the driver model, so the only thing the "board" code needs to do is load the driver. This matches the pattern used by other DM raw NAND drivers (there is no NAND uclass). The actual board code is now only needed in SPL. Signed-off-by: Samuel

[PATCH 6/6] mtd: nand: sunxi: Pass the device to the init function

2022-07-13 Thread Samuel Holland
This more closely matches the U-Boot driver to the Linux version. Signed-off-by: Samuel Holland --- drivers/mtd/nand/raw/sunxi_nand.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/drivers/mtd/nand/raw/sunxi_nand.c

[PATCH 3/6] mtd: nand: sunxi: Remove an unnecessary check

2022-07-13 Thread Samuel Holland
Each chip is required to have a unique CS number ("reg" property) in the range 0-7, so there is no need to separately count the number of chips. Signed-off-by: Samuel Holland --- drivers/mtd/nand/raw/sunxi_nand.c | 10 -- 1 file changed, 10 deletions(-) diff --git

Re: [PATCH v6 03/13] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-07-13 Thread Sughosh Ganu
hi Patrick, On Wed, 13 Jul 2022 at 18:47, Patrick DELAUNAY wrote: > > Hi, > > On 7/4/22 07:16, Sughosh Ganu wrote: > > In the FWU Multi Bank Update feature, the information about the > > updatable images is stored as part of the metadata, on a separate > > partition. Add a driver for reading

Re: [PATCH v6 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-07-13 Thread Sughosh Ganu
hi Patrick, On Wed, 13 Jul 2022 at 18:42, Patrick DELAUNAY wrote: > > Hi, > > On 7/4/22 07:16, Sughosh Ganu wrote: > > In the FWU Multi Bank Update feature, the information about the > > updatable images is stored as part of the metadata, which is stored on > > a dedicated partition. Add the

Re: [PATCH 0/6] mtd: nand: sunxi: Convert to devicetree and the driver model

2022-07-13 Thread Michael Nazzareno Trimarchi
Hi Samuel On Thu, Jul 14, 2022 at 5:15 AM Samuel Holland wrote: > > This series converts the sunxi NAND driver to get its resources (clocks, > resets, pins) from the devicetree, and probe using the driver model. > > In addition to the immediate cleanup, this allows backporting more > patches

<    1   2