[PATCH 1/1] board: freescale: vid.c: Add check for return value of adjust_vdd()

2021-04-18 Thread Priyanka Singh
Add check for return value of adjust_vdd() Signed-off-by: Biwen Li Signed-off-by: Priyanka Singh --- board/freescale/common/vid.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c index

Re: [PATCH] fastboot: Fix overflow when calculating chunk size

2021-04-18 Thread Heiko Schocher
Hello Sean, On 16.04.21 23:58, Sean Anderson wrote: > If a chunk was larger than 4GiB, then chunk_data_sz would overflow and > blkcnt would not be calculated correctly. Upgrade it to a u64 and cast > its multiplicands as well. Also fix bytes_written while we're at it. > > Signed-off-by: Sean

[PATCH] sunxi: Load sun8i secure monitor to SRAM A2

2021-04-18 Thread Samuel Holland
Most sun6i-derived SoCs contain SRAM A2, a secure SRAM area for ARISC SCP firmware. H3 has a smaller SRAM than other SoCs (A31/A33/A23/A83T). On sun8i SoCs which do not have SRAM B, we can use part of this SRAM for the secure monitor. Follow the design of 64-bit SoCs and use the first part for

[PATCH] sunxi: Select environment MMC based on boot device

2021-04-18 Thread Samuel Holland
Currently, the environment is always stored in eMMC if eMMC is enabled in the config. This means images written to SD and eMMC will cross- contaminate their environments unless the configuration is changed. By dropping the device number from the environment location string and implementing

[PATCH] MAINTAINERS: Add allwinner/sunxi driver directories

2021-04-18 Thread Samuel Holland
These drivers are sunxi platform-specific, and so are of interest to the sunxi maintainers. In fact, as there is no PHY driver maintainer, drivers/phy/allwinner had no maintainer at all. Signed-off-by: Samuel Holland --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH v2 12/13] doc: qemu: arm64: Fix the documentation of capsule update

2021-04-18 Thread Heinrich Schuchardt
Am 19. April 2021 04:24:37 MESZ schrieb Masami Hiramatsu : >Hi, > >2021年4月19日(月) 9:37 Takahiro Akashi : >> >> Sughosh, >> >> On Sun, Apr 18, 2021 at 01:37:58PM +0530, Sughosh Ganu wrote: >> > On Sat, 17 Apr 2021 at 23:51, Heinrich Schuchardt > >> > wrote: >> > >> > > On 4/17/21 1:39 AM, Masami

Re: [PATCH] Revert "spl: Drop bd_info in the data section"

2021-04-18 Thread Alex G.
On 4/16/21 6:16 PM, Adam Ford wrote: On Fri, Apr 16, 2021 at 3:41 PM Tim Harvey wrote: On Mon, Apr 12, 2021 at 11:44 AM Simon Glass wrote: Hi Tom, On Tue, 13 Apr 2021 at 06:38, Tom Rini wrote: On Tue, Apr 13, 2021 at 06:26:08AM +1200, Simon Glass wrote: Hi Tom, On Tue, 13 Apr 2021 at

Re: [PATCH v2 12/13] doc: qemu: arm64: Fix the documentation of capsule update

2021-04-18 Thread Masami Hiramatsu
Hi, 2021年4月19日(月) 9:37 Takahiro Akashi : > > Sughosh, > > On Sun, Apr 18, 2021 at 01:37:58PM +0530, Sughosh Ganu wrote: > > On Sat, 17 Apr 2021 at 23:51, Heinrich Schuchardt > > wrote: > > > > > On 4/17/21 1:39 AM, Masami Hiramatsu wrote: > > > > Since the EDK2 GenerateCapsule script is out of

Re: Pull request for efi-2021-07-rc1-2

2021-04-18 Thread Tom Rini
On Sun, Apr 18, 2021 at 10:20:40AM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit a6232e065dd9e349bf5908c928734c6b5b018112: > > Merge branch '2021-04-14-assorted-vboot-improvements' (2021-04-15 > 17:10:25 -0400) > > are available in the Git repository

Re: [PULL] u-boot-usb/master

2021-04-18 Thread Tom Rini
On Sun, Apr 18, 2021 at 06:28:58AM +0200, Marek Vasut wrote: > This is a patchset which makes away with the .bind() controller indexing > workaround which was broken since before v2021.04, and then adds PHY support > and MX8M support on top of that. Better add it into the release early to get >

Re: [GIT PULL] TI changes for v2021.07 rc1

2021-04-18 Thread Tom Rini
On Fri, Apr 16, 2021 at 09:25:21PM +0530, Lokesh Vutla wrote: > Hi Tom, > Please find the PR for master branch targeted for v2021.07-rc1 release. > Details about the PR are updated in the tag message. > > Gitlab build report: >

Re: [PATCH] env/fat.c: support redund environment

2021-04-18 Thread AKASHI Takahiro
On Sat, Jan 16, 2021 at 03:14:43PM -0600, Brandon Maier wrote: > Signed-off-by: Brandon Maier > CC: Joe Hershberger > CC: Wolfgang Denk > --- > env/Kconfig | 13 +++-- > env/fat.c | 41 + > 2 files changed, 44 insertions(+), 10 deletions(-) >

Re: [PATCH v2 12/13] doc: qemu: arm64: Fix the documentation of capsule update

2021-04-18 Thread Takahiro Akashi
Sughosh, On Sun, Apr 18, 2021 at 01:37:58PM +0530, Sughosh Ganu wrote: > On Sat, 17 Apr 2021 at 23:51, Heinrich Schuchardt > wrote: > > > On 4/17/21 1:39 AM, Masami Hiramatsu wrote: > > > Since the EDK2 GenerateCapsule script is out of date and it > > > doesn't generate the supported version

Re: [RFC PATCH 2/2] env: sf: remove the static env_flash variable

2021-04-18 Thread Tom Rini
On Wed, Feb 24, 2021 at 11:52:36AM +0100, Patrick Delaunay wrote: > As the the SPI flash is probed and is released in each ENV sf function > the env_flash no more need to be static. > > This patch move this device handle as local variable of each function and > simplify the associated code

Re: [PATCH resend 2/2] env: add CONFIG_ENV_SECT_SIZE_AUTO

2021-04-18 Thread Tom Rini
On Wed, Apr 14, 2021 at 08:51:43PM +0200, Rasmus Villemoes wrote: > This is roughly the U-Boot side equivalent to commit > e282c422e0 (tools: fw_env: use erasesize from MEMGETINFO ioctl). The > motivation is the case where one has a board with several revisions, > where the SPI flashes have

Re: [PATCH resend 1/2] env/sf.c: use a variable to hold the sector size

2021-04-18 Thread Tom Rini
On Wed, Apr 14, 2021 at 08:51:42PM +0200, Rasmus Villemoes wrote: > As preparation for the next patch, use a local variable to represent > the sector size. No functional change. > > Signed-off-by: Rasmus Villemoes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [RFC PATCH 1/2] env: sf: add missing spi_flash_free

2021-04-18 Thread Tom Rini
On Wed, Feb 24, 2021 at 11:52:35AM +0100, Patrick Delaunay wrote: > Free the SPI resources by calling spi_flash_free() in each env sf > function to avoid issue for other SPI users. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 3/3] env: sf: add support of command env erase

2021-04-18 Thread Tom Rini
On Tue, Feb 09, 2021 at 11:48:52AM +0100, Patrick Delaunay wrote: > Add support of opts erase for env in SPI flash; > this opts is used by command 'env erase'. > > This command only fills the env offset by 0x0 (bit flip to 0) and > the saved environment becomes invalid (with bad CRC). > > It

Re: [PATCH 2/3] env: sf: update the use of macro ENV_SAVE_PTR

2021-04-18 Thread Tom Rini
On Tue, Feb 09, 2021 at 11:48:51AM +0100, Patrick Delaunay wrote: > Remove CONFIG_IS_ENABLED(SAVEENV) as it is already tested in > the ENV_SAVE_PTR macro. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/3] env: add ENV_ERASE_PTR macro

2021-04-18 Thread Tom Rini
On Tue, Feb 09, 2021 at 11:48:50AM +0100, Patrick Delaunay wrote: > Add ENV_ERASE_PTR macro to handle erase opts and remove the associated > ifdef. > > This patch is a extension of previous commit 82b2f4135719 ("env_internal.h: > add alternative ENV_SAVE_PTR macro"). > > Signed-off-by: Patrick

Re: [PATCH V3] env: Fix invalid env handling in env_init()

2021-04-18 Thread Tom Rini
On Wed, Jan 20, 2021 at 03:45:16PM +0100, Marek Vasut wrote: > This fixes the case where there are multiple environment drivers, one of > them is the default environment one, and it is followed by an environment > driver which does not implement .init() callback. The default environment > driver

Re: [PATCH] env/fat.c: support redund environment

2021-04-18 Thread Tom Rini
On Sat, Jan 16, 2021 at 03:14:43PM -0600, Brandon Maier wrote: > Signed-off-by: Brandon Maier > CC: Joe Hershberger > CC: Wolfgang Denk Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] env: Fix warning when forcing environment without ENV_ACCESS_IGNORE_FORCE

2021-04-18 Thread Tom Rini
On Mon, Jan 11, 2021 at 11:27:20AM +0100, Martin Fuzzey wrote: > Since commit 0f036bf4b87e ("env: Warn on force access if > ENV_ACCESS_IGNORE_FORCE set") > a warning message is displayed when setenv -f is used WITHOUT > CONFIG_ENV_ACCESS_IGNORE_FORCE, but the variable is set anyway, resulting >

Re: [PATCH] env: increment redund flag on read fail

2021-04-18 Thread Tom Rini
On Thu, Dec 17, 2020 at 05:19:18PM -0600, Brandon Maier wrote: > If one of the reads fails when importing redundant environments (a > single read failure), the env_flags wouldn't get initialized in > env_import_redund(). If a user then calls saveenv, the new environment > will have the wrong

Re: [GIT PULL] sunxi: First changes for v2021.07 merge window

2021-04-18 Thread Tom Rini
On Fri, Apr 16, 2021 at 10:22:00AM +0100, Andre Przywara wrote: > > Hi Tom, > > please pull this branch, containing the first part of the 2021.07 changes. > > This adds support for devices with R40 dual rank DRAM, and asymmetric > A64 DRAM devices like the Pinephone/3GB. > Also we enable

Pull request for efi-2021-07-rc1-2

2021-04-18 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit a6232e065dd9e349bf5908c928734c6b5b018112: Merge branch '2021-04-14-assorted-vboot-improvements' (2021-04-15 17:10:25 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2021-07-rc1-2

Re: [PATCH v2 12/13] doc: qemu: arm64: Fix the documentation of capsule update

2021-04-18 Thread Sughosh Ganu
On Sat, 17 Apr 2021 at 23:51, Heinrich Schuchardt wrote: > On 4/17/21 1:39 AM, Masami Hiramatsu wrote: > > Since the EDK2 GenerateCapsule script is out of date and it > > doesn't generate the supported version capsule file, the document > > should refer the mkeficapsule in tools. > > > >

Re: [PATCH] sunxi-common: support loading compressed kernel images on ARMv8

2021-04-18 Thread Samuel Holland
Andre, On 4/17/21 1:23 PM, Andre Przywara wrote: > On Sat, 17 Apr 2021 12:47:23 -0500 Samuel Holland wrote: >> On 3/31/21 10:39 AM, Andre Przywara wrote: >>> On 20/02/2021 12:14, Nicolas Boulenguez wrote: >>> >>> Hi Arnaud, >>> From: Arnaud Ferraris >>> >>> as mentioned before, this

Re: [linux-sunxi] [PATCH] net: sun8i-emac: Fix pinmux setup for Allwinner H5

2021-04-18 Thread Samuel Holland
On 4/16/21 6:05 AM, Andre Przywara wrote: > Commit eb5a2b671075 ("net: sun8i-emac: Determine pinmux based on SoC, > not EMAC type") switched the pinmux setup over to look at > CONFIG_MACH_SUN* symbols, to find the appropriate mux value. > Unfortunately this patch missed to check for the H5, which