Re: [BISECTED] BeagleBone Black doesn't boot after a58147c2dbbf

2022-08-10 Thread Matwey V. Kornilov
чт, 11 авг. 2022 г. в 01:52, Nishanth Menon : > > On 11:40-20220807, Matwey V. Kornilov wrote: > > пт, 5 авг. 2022 г. в 18:01, Robert Nelson : > > > > > > On Fri, Jul 29, 2022 at 12:07 PM Matwey V. Kornilov > > > wrote: > > > > > > > > пт, 29 июл. 2022 г. в 19:46, Tom Rini : > > > > > > > > > > On

RE: [PATCH 05/31] mmc: mediatek: add support for MediaTek MT7891/MT7986 SoCs

2022-08-10 Thread jh80.chung
> -Original Message- > From: Weijie Gao [mailto:weijie@mediatek.com] > Sent: Thursday, August 4, 2022 12:35 PM > To: u-boot@lists.denx.de > Cc: GSS_MTK_Uboot_upstream; Peng Fan; Jaehoon Chung; Weijie Gao > Subject: [PATCH 05/31] mmc: mediatek: add support for MediaTek MT7891/MT7986

RE: [PATCH v3 3/3] mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS

2022-08-10 Thread jh80.chung
Hi, > -Original Message- > From: Pali Rohar [mailto:p...@kernel.org] > Sent: Saturday, August 6, 2022 5:10 AM > To: Jaehoon Chung; Peng Fan; Marek Behun > Cc: Sinan Akman; u-boot@lists.denx.de > Subject: [PATCH v3 3/3] mmc: fsl_esdhc_spl: Add support for builds without > CONFIG_SYS_MMC_U_B

RE: [v4 00/12] Add ASPEED SPI controller driver

2022-08-10 Thread Chin-Ting Kuo
Hi Jagan, > -Original Message- > From: Jagan Teki > Sent: Friday, July 1, 2022 7:57 PM > To: Chin-Ting Kuo > Subject: Re: [v4 00/12] Add ASPEED SPI controller driver > > On Tue, May 24, 2022 at 11:27 AM Chin-Ting Kuo > wrote: > > > > This patch series aims to porting ASPEED FMC/SPI mem

RE: [v4 05/12] MAINTAINERS: Add ASPEED SPI driver file

2022-08-10 Thread Chin-Ting Kuo
Hi Jagan, > -Original Message- > From: Jagan Teki > Sent: Friday, July 1, 2022 7:53 PM > To: Chin-Ting Kuo > Subject: Re: [v4 05/12] MAINTAINERS: Add ASPEED SPI driver file > > On Tue, May 24, 2022 at 11:28 AM Chin-Ting Kuo > wrote: > > > > Add spi-aspeed.c file for ARM ASPEED. > > > >

RE: [v4 07/12] spi-mem: Add dirmap API from Linux

2022-08-10 Thread Chin-Ting Kuo
Hi Jagan, > -Original Message- > From: Jagan Teki > Sent: Friday, July 1, 2022 8:05 PM > To: Chin-Ting Kuo > Subject: Re: [v4 07/12] spi-mem: Add dirmap API from Linux > > On Tue, May 24, 2022 at 11:28 AM Chin-Ting Kuo > wrote: > > > > This adds the dirmap API originally introduced in

Please pull u-boot-dm

2022-08-10 Thread Simon Glass
Hi Tom, I've dropped the setuptools patch and will look at it later. https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/13113 The following changes since commit 3dd4e916324efc825a7ee8e412f5cf1ded839021: Merge https://source.denx.de/u-boot/custodians/u-boot-marvell (2022-08-09 08:

Re: [PATCH v3] common: Drop display_options.h from common header

2022-08-10 Thread Tom Rini
On Sun, Jul 31, 2022 at 12:28:48PM -0600, Simon Glass wrote: > Move this out of the common header and include it only where needed. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] Makefile: Correct the rule removing old of-platdata files

2022-08-10 Thread Tom Rini
On Wed, Aug 03, 2022 at 12:08:29PM -0600, Simon Glass wrote: > This makes use of makefile variables that don't exist anymore. Fix it and > also remove the object files in that directory. > > Also add FORCE as a dependency as required by the if_changed macro. > > Fixes 354d2324635 ("Makefile: Rem

Re: [PATCH] lmb: Fix LMB_MEMORY_REGIONS flag usage

2022-08-10 Thread Tom Rini
On Tue, Aug 02, 2022 at 10:21:35AM +0200, Patrice Chotard wrote: > This patch is fixing a broken boot observed on stm32mp157c-dk2 board. > > IS_ENABLED macro should be used to check if a compilation flag is set > to "y" or "m". > LMB_MEMORY_REGIONS is set to a numerical value, IS_ENABLED macro is

Re: [PATCH v5 1/1] test: Add some tests for kconfig.h

2022-08-10 Thread Tom Rini
On Mon, Aug 01, 2022 at 07:57:59AM -0600, Simon Glass wrote: > The macros in this file are a little confusing and we currently have no > tests to check that they work as expected. > > Add some tests which check the macros in C code. Add a few tests which > check that the build errors are generate

Re: [PATCH 1/1] cmd: inconsistent return type of command_process()

2022-08-10 Thread Tom Rini
On Mon, Aug 01, 2022 at 03:17:49PM +0200, Heinrich Schuchardt wrote: > The declarations in the header and in the implementation must match. > > Reported-by: Sergei Antonov > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.as

Re: [PATCH] power: regulator: Remove i2c header from gpio regulator

2022-08-10 Thread Tom Rini
On Mon, Aug 01, 2022 at 02:19:06PM +0200, Michal Simek wrote: > i2c is not used that's why header is not needed. > > Signed-off-by: Michal Simek Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] Makefile: avoid false positive -Wmaybe-uninitialized

2022-08-10 Thread Tom Rini
On Sun, Jul 31, 2022 at 10:06:13AM +0200, Heinrich Schuchardt wrote: > When compiling with -Og gcc reports false positive -Wmaybe-uninitialized as > reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78394. > > Silence these warnings when building with CONFIG_CC_OPTIMIZE_FOR_DEBUG. > > Sig

Re: [PATCH] scripts/config: pick config script from kernel scripts

2022-08-10 Thread Tom Rini
On Wed, Jul 27, 2022 at 07:09:20PM +0200, Milan P. Stanić wrote: > pulled from kernel tag v5.18 Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] lz4: Fix compile warning comparison of distinct pointer types

2022-08-10 Thread Tom Rini
On Wed, Jul 27, 2022 at 05:24:23PM +0200, Pali Rohár wrote: > In file included from include/linux/bitops.h:22, > from include/log.h:15, > from include/linux/printk.h:4, > from include/common.h:20, > from lib/lz4_wrapper.c:6: > lib

Re: [PATCH] MAINTAINERS: Update e-mail address

2022-08-10 Thread Tom Rini
On Sun, Jul 24, 2022 at 05:13:34PM +0200, Joao Marcos Costa wrote: > Replace former professional address by my personal e-mail. > > Signed-off-by: Joao Marcos Costa Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] mmc: Do not send status of send_status is false

2022-08-10 Thread Tom Rini
On Fri, Jul 15, 2022 at 01:58:24AM +0200, Marek Vasut wrote: > Commit 44645f87de5 ("mmc: Fix mmc_switch excessive timeout") introduced > a side effect where CMD13 SEND_STATUS is issued in case mmc_wait_dat0() > does not return -ENOSYS and $send_status is not set. This happens on all > hardware whi

Re: [PATCH v2 1/1] usb: storage: continue probe on "Invalid device"

2022-08-10 Thread Simon Glass
On Wed, 10 Aug 2022 at 13:54, Janne Grunau wrote: > > Fixes a crash during probing of sd card readers without medium present. > > Link: https://github.com/AsahiLinux/linux/issues/44 > Link: https://lists.denx.de/pipermail/u-boot/2022-July/489717.html > Signed-off-by: Janne Grunau > --- > Changes

Re: [PATCH v2 01/10] binman: Skip elf tests if python elftools is not available

2022-08-10 Thread Simon Glass
Hi Stefan, On Tue, 9 Aug 2022 at 13:51, Simon Glass wrote: > > On Mon, 8 Aug 2022 at 04:51, Stefan Herbrechtsmeier > wrote: > > > > From: Stefan Herbrechtsmeier > > > > Skip tests which requires python elftools if the tool is not available. > > > > Signed-off-by: Stefan Herbrechtsmeier > > >

Re: [PATCH] arm: mvebu: mbus: Fix mbus driver to work also after U-Boot relocation

2022-08-10 Thread Chris Packham
Hi Pali, On 11/08/22 00:46, Pali Rohár wrote: > mbus driver is initialized from arch_cpu_init() callback which is called > before relocation. This driver stores lot of functions and structure > pointers into global variables, so it is data position dependent. > > Therefore after relocations all po

[PATCH v2 1/1] usb: storage: continue probe on "Invalid device"

2022-08-10 Thread Janne Grunau
Fixes a crash during probing of sd card readers without medium present. Link: https://github.com/AsahiLinux/linux/issues/44 Link: https://lists.denx.de/pipermail/u-boot/2022-July/489717.html Signed-off-by: Janne Grunau --- Changes since v1: - changed unconditiona return to "continue" as proposed

Re: [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected

2022-08-10 Thread Marek Behún
On Wed, 10 Aug 2022 12:54:11 +0200 Pali Rohár wrote: > When Mox SFP module is connected after Topaz or Peridot module then port DT > node already contains "sfp" label. But Mox SFP module can be connected also > without Topaz or Peridot module in which case it is connected directly into > he eth1

Re: default environment append from kconfig

2022-08-10 Thread Simon Glass
Hi Tom, On Wed, 10 Aug 2022 at 08:36, Tom Rini wrote: > > On Tue, Aug 09, 2022 at 01:02:24PM +0200, Rasmus Villemoes wrote: > > On 09/08/2022 12.47, Francesco Dolcini wrote: > > > Hello all, > > > is there any kconfig mechanism in u-boot to append environment variable > > > to the > > > default

Re: [PATCH] arm: mvebu: turris_omnia: Show MCU version

2022-08-10 Thread Marek Behún
On Wed, 10 Aug 2022 11:00:25 +0200 Pali Rohár wrote: > +static const char * const omnia_get_mcu_version(void) why the second const? Marek

Re: default environment append from kconfig

2022-08-10 Thread Tom Rini
On Wed, Aug 10, 2022 at 05:09:45PM +0200, Francesco Dolcini wrote: > On Wed, Aug 10, 2022 at 10:34:26AM -0400, Tom Rini wrote: > > On Tue, Aug 09, 2022 at 12:47:39PM +0200, Francesco Dolcini wrote: > > > Hello all, > > > is there any kconfig mechanism in u-boot to append environment variable > > >

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-10 Thread Michal Suchánek
On Wed, Aug 10, 2022 at 05:17:56PM +0200, Andrew Lunn wrote: > > > I guess you are new to the netdev list :-) > > > > > > This is one of those FAQ sort of things, discussed every > > > year. Anything like this is always NACKed. I don't see why this time > > > should be any different. > > > > > >

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-10 Thread Andrew Lunn
> > I guess you are new to the netdev list :-) > > > > This is one of those FAQ sort of things, discussed every > > year. Anything like this is always NACKed. I don't see why this time > > should be any different. > > > > DSA is somewhat special because it is very old. It comes from before > > th

Re: Please pull u-boot-dm

2022-08-10 Thread Tom Rini
On Tue, Aug 09, 2022 at 04:51:19PM -0600, Simon Glass wrote: > Hi Tom, > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/13097 > > > The following changes since commit 3dd4e916324efc825a7ee8e412f5cf1ded839021: > > Merge https://source.denx.de/u-boot/custodians/u-boot-marvell

Re: default environment append from kconfig

2022-08-10 Thread Tom Rini
On Tue, Aug 09, 2022 at 01:02:24PM +0200, Rasmus Villemoes wrote: > On 09/08/2022 12.47, Francesco Dolcini wrote: > > Hello all, > > is there any kconfig mechanism in u-boot to append environment variable to > > the > > default one? > > > > Well, despite the name, CONFIG_EXTRA_ENV_SETTINGS is no

Re: default environment append from kconfig

2022-08-10 Thread Tom Rini
On Tue, Aug 09, 2022 at 12:47:39PM +0200, Francesco Dolcini wrote: > Hello all, > is there any kconfig mechanism in u-boot to append environment variable to the > default one? > > I am aware of CONFIG_USE_DEFAULT_ENV_FILE, but this will completely > replace it, looking into the code I was not able

[PATCH 1/2] Convert CONFIG_SYS_I2C_EEPROM_CCID et al to Kconfig

2022-08-10 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_I2C_EEPROM_CCID CONFIG_SYS_I2C_EEPROM_NXID CONFIG_SYS_EEPROM_BUS_NUM Signed-off-by: Tom Rini --- common/Kconfig| 21 +++ configs/MPC8548CDS_36BIT_defconfig| 1 + configs/MPC85

[PATCH 2/2] Remove CONFIG_SYS_I2C_EEPROM_PAGE_WRITE_BITS et al

2022-08-10 Thread Tom Rini
This removes the following symbols: CONFIG_SYS_I2C_EEPROM_PAGE_WRITE_BITS CONFIG_SYS_I2C_EEPROM_PAGE_WRITE_DELAY_MS CONFIG_SYS_I2C_LDI_ADDR CONFIG_SYS_I2C_DVI_ADDR CONFIG_SYS_I2C_DVI_BUS_NUM They are unused by any code in tree at this time. Signed-off-by: Tom Rini --- include/con

Re: [PATCH] pci: Sort resources before assignment

2022-08-10 Thread Simon Glass
Hi Leo, On Wed, 10 Aug 2022 at 06:58, Leo Yan wrote: > > A PCI device can request resource for multiple memory regions, e.g. a > PCI device tries to allocate prefetchable memory for two regions, one > region size is 0x1000_ and another is 0x1__. And the PCIe > controller provides pre

Re: [PATCH 3/3] CI: Move to Ubuntu 2022.04 "Jammy" for CI base

2022-08-10 Thread Simon Glass
On Tue, 9 Aug 2022 at 19:09, Tom Rini wrote: > > - We now have a new enough sbsigntools in the distro, stop building. > - Use the 20220801 tag for Jammy. > - Move to pygit2 1.9.2 (current version) as the old one doesn't build on > "Jammy". > - Add the working directory to the list of safe directo

Re: [PATCH 1/3] CI: Azure: Merge PowerPC jobs in to one

2022-08-10 Thread Simon Glass
On Tue, 9 Aug 2022 at 19:09, Tom Rini wrote: > > At this point given the number of PowerPC platforms we have, a single > job to build them all fits within the time limit we have in Azure. > > Signed-off-by: Tom Rini > --- > This reduces the overall build time marginally due to freeing up some > p

Re: [PATCH 2/3] CI: Azure: Further condense jobs

2022-08-10 Thread Simon Glass
On Tue, 9 Aug 2022 at 19:09, Tom Rini wrote: > > We have a maximum of 10 parallel build jobs, and each job must complete > in less than 60 minutes. The overall run time must also be less than 6 > hours. Condense a number of jobs so that we have less potential > bottlenecks in terms of waiting for

Re: [PATCH v2 2/2] patman: Add documentation to doc/

2022-08-10 Thread Simon Glass
Hi Heinrich, On Wed, 10 Aug 2022 at 00:47, Heinrich Schuchardt wrote: > > On 8/9/22 21:49, Simon Glass wrote: > > Link to patman's documentation from the doc/ directory so that it appears > > in the 'make htmldocs' output. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v2: > > - F

Re: [PATCH 1/1] git-mailrc: remove invalid entry 'efi'

2022-08-10 Thread Simon Glass
Hi Heinrich, On Tue, 9 Aug 2022 at 23:26, Heinrich Schuchardt wrote: > > > > On 8/9/22 21:51, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 8 Aug 2022 at 13:51, Heinrich Schuchardt > > wrote: > >> > >> Remove alias 'efi' with invalid data. > >> > >> Signed-off-by: Heinrich Schuchardt > >>

Re: [PATCH] Restore pcm051_rev3_defconfig config

2022-08-10 Thread Tom Rini
On Mon, Aug 08, 2022 at 11:16:19PM +0300, Matwey V. Kornilov wrote: > pcm051_rev3_defconfig config (Phytec Wega board) has been dropped in > > 64efd11d ("arm: Remove pcm051 board") > > due to expired migration deadlines. Here, pcm051_rev3_defconfig support is > reintroduced. > > Signed-off-

[PATCH 2/2] rpi: Copy eth PHY address from fw DT to loaded DT

2022-08-10 Thread Antoine Mazeas
Some Raspberry Pi 400 boards, specifically rev 1.1, have a different address for the ethernet PHY device than what is provided by the kernel DTB. The correct address is provided by the firmware, so we should carry it over into the loaded device tree so that ethernet works on such boards. Signed

[PATCH 1/2] rpi: Copy properties from firmware dtb to the loaded dtb

2022-08-10 Thread Antoine Mazeas
The RPI firmware adjusts several property values in the dtb it passes to u-boot depending on the board/SoC revision. Inherit some of these when u-boot loads a dtb itself. Specificaly copy: * /model: The firmware provides a more specific string * /memreserve: The firmware defines a reserved range,

[PATCH 0/2] rpi: Copy properties from firmware DT to loaded DT

2022-08-10 Thread Antoine Mazeas
Sjoerd Simons submitted the original patch (0001) to carry over some firmware-provided properties into the loaded device tree. This did not fix an issue with Raspberry Pi 400 rev 1.1 boards which would not be able to find the ethernet PHY device at the address specified by the kernel device tree

[PATCH] pci: Sort resources before assignment

2022-08-10 Thread Leo Yan
A PCI device can request resource for multiple memory regions, e.g. a PCI device tries to allocate prefetchable memory for two regions, one region size is 0x1000_ and another is 0x1__. And the PCIe controller provides prefetchable memory window size is 0x1_8000_, thus in theory the

[PATCH] arm: mvebu: mbus: Fix mbus driver to work also after U-Boot relocation

2022-08-10 Thread Pali Rohár
mbus driver is initialized from arch_cpu_init() callback which is called before relocation. This driver stores lot of functions and structure pointers into global variables, so it is data position dependent. Therefore after relocations all pointers are invalid and driver does not work anymore as a

Re: [PATCH 17/31] i2c: add support for MediaTek I2C interface

2022-08-10 Thread Michael Nazzareno Trimarchi
Hi On Thu, Aug 4, 2022 at 5:38 AM Weijie Gao wrote: > > This patch adds support for MediaTek I2C interface > > Signed-off-by: Weijie Gao > --- > drivers/i2c/Kconfig | 9 + > drivers/i2c/Makefile | 1 + > drivers/i2c/mtk_i2c.c | 822 ++ > 3 files ch

Re: [PATCH 17/31] i2c: add support for MediaTek I2C interface

2022-08-10 Thread Heiko Schocher
Hello Weijie Gao, On 04.08.22 05:36, Weijie Gao wrote: > This patch adds support for MediaTek I2C interface > > Signed-off-by: Weijie Gao > --- > drivers/i2c/Kconfig | 9 + > drivers/i2c/Makefile | 1 + > drivers/i2c/mtk_i2c.c | 822 ++ > 3 files c

[PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected

2022-08-10 Thread Pali Rohár
When Mox SFP module is connected after Topaz or Peridot module then port DT node already contains "sfp" label. But Mox SFP module can be connected also without Topaz or Peridot module in which case it is connected directly into he eth1 DT node, which is without any label. So add "sfp" label into et

[PATCH] arm: ARMv4 assembly compatibility

2022-08-10 Thread Sergei Antonov
There is currently a problem that U-Boot can not work on ARMv4 because assembly imlementations of memcpy() and some other functions use "bx lr" instruction that is not available on ARMv4 ("mov pc, lr" should be used instead). A working preprocessor-based solution to this problem is found in arch/a

[PATCH] arm: mvebu: turris_omnia: Show MCU version

2022-08-10 Thread Pali Rohár
There are already more MCU firmware versions for Turris Omnia in production, so display git commit (version) of the MCU firmware during U-Boot startup. It will help to identify what version of MCU firmware is Turris Omnia using. MCU firmware for Turris Omnia is open source and available at website

Re: [PATCH] spl: opensbi: convert scratch options to config

2022-08-10 Thread Leo Liang
On Mon, Aug 08, 2022 at 01:28:52PM +0300, Nikita Shubin wrote: > From: Nikita Shubin > > Convert hardcoded "opensbi_info.options" to config provided value, this > allows changing options passed to OpenSBI. > > SPL_OPENSBI_SCRATCH_OPTIONS is defaulted to SBI_SCRATCH_NO_BOOT_PRINTS. > > Link: >

Re: [PATCH] spl: opensbi: fix typo

2022-08-10 Thread Leo Liang
On Mon, Aug 08, 2022 at 01:24:25PM +0300, Nikita Shubin wrote: > From: Nikita Shubin > > s/obensbi_info/opensbi_info/ > > Signed-off-by: Nikita Shubin > --- > common/spl/spl_opensbi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/common/spl/spl_opensbi.c b/common/sp

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-10 Thread Michal Suchánek
On Wed, Aug 10, 2022 at 03:11:48AM +0200, Andrew Lunn wrote: > > Is something like the following really that crazy of an idea? > > diff --git a/net/core/dev.c b/net/core/dev.c > > index e0878a500aa9..a679c74a63c6 100644 > > --- a/net/core/dev.c > > +++ b/net/core/dev.c > > @@ -1151,6 +1151,15 @@ st