Re: [PATCH 07/18] Convert CONFIG_USB_XHCI_EXYNOS et al to Kconfig

2022-06-08 Thread Minkyu Kang
Hi, 2022년 6월 8일 (수) 21:26, Tom Rini 님이 작성: > This converts the following to Kconfig: >CONFIG_USB_XHCI_EXYNOS >CONFIG_USB_EHCI_EXYNOS > > Signed-off-by: Tom Rini > --- > drivers/usb/host/Kconfig| 16 > include/configs/exynos5250-common.h | 5 - > include

Re: [PATCH] net: phy: Remove inline definitions from convinience functions

2022-06-08 Thread Vladimir Oltean
On Sun, Jun 05, 2022 at 03:44:15AM +0300, Ramon Fried wrote: > The convinience functions are not that small and they caused convenience > bloated text segments because of their usage. > There was no need to inline them in the first place, as > they're not part of a fastpath. > > Signed-off-by: R

RE: [PATCH] kontron-sl-mx8mm: Add CAAM support

2022-06-08 Thread ZHIZHIKIN Andrey
Hello Fabio, > -Original Message- > From: U-Boot On Behalf Of Fabio Estevam > Sent: Wednesday, June 8, 2022 5:04 PM > To: sba...@denx.de > Cc: frieder.schre...@kontron.de; u-boot@lists.denx.de; Fabio Estevam > > Subject: [PATCH] kontron-sl-mx8mm: Add CAAM support > > Add CAAM support, w

[PATCH v2 9/9] MAINTAINERS: Introduce HPE GXP Architecture

2022-06-08 Thread nick . hawkins
From: Nick Hawkins Create a section in MAINTAINERS for the GXP HPE architecture Signed-off-by: Nick Hawkins --- v2: *Added gxp_spi.c and hpe,gxp-spi.yaml to list *Removed hpe,gxp.yaml and hpe,gxp-timer.yaml as they are already in linux --- MAINTAINERS | 12 1 file changed, 1

[PATCH v2 7/9] configs: gxp: add core support

2022-06-08 Thread nick . hawkins
From: Nick Hawkins Add the include file for the gxp soc. Signed-off-by: Nick Hawkins --- v2: *Removed CONFIG_SYS_SDRAM_SIZE usage and moved SDRAM size calculation to the board file. --- include/configs/gxp.h | 55 +++ 1 file changed, 55 insertions(+

[PATCH v2 6/9] ARM: dts: Add device tree files for hpe gxp soc

2022-06-08 Thread nick . hawkins
From: Nick Hawkins The HPE SoC is new to linux. A basic device tree layout with minimum required for linux to boot including a timer and watchdog support has been created. The dts file is empty at this point but will be updated in subsequent updates as board specific features are enabled. Signe

[PATCH v2 4/9] board: hpe: gxp: add HPE GXP soc support

2022-06-08 Thread nick . hawkins
From: Nick Hawkins Add basic support for the HPE GXP SoC. Reset the EHCI controller at boot. Signed-off-by: Nick Hawkins --- v2: *Removed n for GXP_ECC as n is default. *Fix indentation in Kconfig file *Removed common.h and used necessary headers only. *Removed use of CONFIG_SYS_SDRAM_SIZ

[PATCH v2 5/9] dt-bindings: spi: Add hpe gxp spi

2022-06-08 Thread nick . hawkins
From: Nick Hawkins Add support for the HPE GXP SPI Controller. Signed-off-by: Nick Hawkins --- v2: *Created binding documentation as it does not exist for linux. --- doc/device-tree-bindings/spi/hpe,gxp-spi.yaml | 37 +++ 1 file changed, 37 insertions(+) create mode 100644

[PATCH v2 2/9] timer: gxp: Add HPE GXP timer support

2022-06-08 Thread nick . hawkins
From: Nick Hawkins Add support for the HPE GXP SOC timer. The GXP supports several different kinds of timers but for the purpose of this driver there is only support for the General Timer. The timer has a 1us resolution and is 56 bits. Signed-off-by: Nick Hawkins --- v2: *Removed unused head

[PATCH v2 1/9] ARM: hpe: gxp: add core support

2022-06-08 Thread nick . hawkins
From: Nick Hawkins The GXP is the HPE BMC SoC that is used in the majority of current generation HPE servers. Traditionally the asic will last multiple generations of server before being replaced. Info about SoC: HPE GXP is the name of the HPE Soc. This SoC is used to implement many BMC feature

[PATCH v2 8/9] configs: gxp: add gxp_defconfig

2022-06-08 Thread nick . hawkins
From: Nick Hawkins This is the initial very basic config that enables the U-Boot console on the hpe gxp soc. Signed-off-by: Nick Hawkins --- v2: *Added SPI support --- configs/gxp_defconfig | 59 +++ 1 file changed, 59 insertions(+) create mode 10064

[PATCH v2 3/9] spi: gxp_spi: Add GXP SPI controller driver

2022-06-08 Thread nick . hawkins
From: Nick Hawkins The GXP supports 3 separate SPI interfaces to accommodate the system flash, core flash, and other functions. The SPI engine supports variable clock frequency, selectable 3-byte or 4-byte addressing and a configurable x1, x2, and x4 command/address/data modes. The memory buffer

[PATCH v2 0/9] Introduce HPE GXP Architecture

2022-06-08 Thread nick . hawkins
From: Nick Hawkins Changes since v2: *Added SPI Controller Support *Removed hpe,gxp.yaml and hpe,gxp-timer.yaml as those bindings are already in linux *Added hpe,gxp-spi.yaml as it is necessary to boot the OS and is not present in linux. *Ported hpe-gxp.dtsi and hpe-bmc-dl360gen10.dts fro

[PATCH] odroid_xu3: Fix board environment variable

2022-06-08 Thread Tom Rini
When migrating CONFIG_CONS_INDEX to Kconfig, on this platform we changed what "board" evaluated to in the environment. This in turn meant that we would no longer try and find the correct fdtfile via the normal distro boot logic. Fix this by overriding board in the default environment, as done on

Re: [PATCH v3 01/12] virtio_ring: Merge identical variables

2022-06-08 Thread Tom Rini
On Mon, May 16, 2022 at 10:41:29AM +, Andrew Scull wrote: > The variables `total_sg` and `descs_used` have the same value. Replace > the few uses of `total_sg` with `descs_used` to simplify the situation. > > Signed-off-by: Andrew Scull > Reviewed-by: Simon Glass > Reviewed-by: Bin Meng F

Re: [PATCH] i.MX8M: crypto: disable JR0 in SPL, U-Boot

2022-06-08 Thread Fabio Estevam
Hi Andrey, On Wed, Jun 8, 2022 at 12:00 PM ZHIZHIKIN Andrey wrote: > Shall those DTB changes be sync'd with Kernel? > > Now that the JR0 reservation is done in both upstream and > downstream TF-A - Kernel would fail to initialize the JR0. > > This is what Fabio just noted and posted as a comment

[PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs

2022-06-08 Thread Dario Binacchi
Passing the mtdparts environment variable to the Linux kernel is required to properly mount the UBI rootfs. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- include/configs/imx8mn_bsh_smm_s2.h | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver

2022-06-08 Thread Dario Binacchi
It allows to boot from NAND. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defc

[PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs

2022-06-08 Thread Dario Binacchi
The Linux kernel device tree already specifies the device to be used for boot console output with a stdout-path property under /chosen. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- include/configs/imx8mn_bsh_smm_s2.h | 2 +- 1 file chan

[PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands

2022-06-08 Thread Dario Binacchi
imx8mn_bsh_smm_s2 uses ubifs rootfs, UBI commands are required to flash it. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8mn_bsh_smm_s2_d

[PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting

2022-06-08 Thread Dario Binacchi
The series contains all the patches required by the BSH smm s2 board for booting from NAND and properly mounting the UBI rootfs. Dario Binacchi (4): configs: imx8mn_bsh_smm_s2: add NAND driver configs: imx8mn_bsh_smm_s2: add UBI commands configs: imx8mn_bsh_smm_s2: remove console from boo

Re: imx8mm: Invalid IVT structure

2022-06-08 Thread Harm Berntsen
Hi, On Wed, 2022-06-08 at 17:39 +0200, Michael Nazzareno Trimarchi wrote: > Hi Tim > > On Wed, Jun 8, 2022 at 5:25 PM Tim Harvey > wrote: > > > > On Wed, Jun 8, 2022 at 8:09 AM Tommaso Merciai > > wrote: > > > > > > Hi, > > > > > > On Wed, Jun 08, 2022 at 04:14:51PM +0200, Michael Nazzareno

A reminder about U-Boot and lore/lei/b4

2022-06-08 Thread Tom Rini
Hey all, As I've just recently updated my own workflow a bit, I wanted to remind everyone that the u-boot mailing list is archived as part of lore.kernel.org and as such all of the tricks and tools one might use such as having lei monitor this list (l:u-boot.lists.denx.de) and patches that touch s

Re: imx8mm: Invalid IVT structure

2022-06-08 Thread Fabio Estevam
Hi Michael, On Wed, Jun 8, 2022 at 11:15 AM Michael Nazzareno Trimarchi wrote: > > Hi > > On Wed, Jun 8, 2022 at 4:13 PM Fabio Estevam wrote: > > > > Hi, > > > > On top of tree U-Boot, when CONFIG_IMX_HAB=y is selected in > > imx8mm_evk_defconfig, the following error messages are seen: > > > > U

[PATCH 05/10] xilinx: cpuinfo: Print soc machine

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Print the soc machine in the print_cpuinfo function. Signed-off-by: Stefan Herbrechtsmeier --- board/xilinx/common/board.c | 4 1 file changed, 4 insertions(+) diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 629a6ee036..402fa7700

[PATCH 09/10] tools: zynqmp_psu_init_minimize: Add serdes_illcalib forward declaration

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier A forward declaration for the serdes_illcalib function. Signed-off-by: Stefan Herbrechtsmeier --- tools/zynqmp_psu_init_minimize.sh | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/zynqmp_psu_init_minimize.sh b/tools/zynqmp_psu_init_minimize.sh inde

[PATCH 08/10] tools: zynqmp_psu_init_minimize: Remove low level uart settings

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier There is no reason to do serial initialization. Uart driver does it already based on DT. Good effect is that it is clear which interface is console. The resulting change was done in past by commit 84d2bbf082fa ("arm64: zynqmp: Remove low level UART setting"). Signed-

[PATCH 10/10] xilinx: zynqmp: Support vendor specific board_init

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add a board_init_xilinx function to allow foreign vendors to reuse the xilinx zynqmp board code and add addition code to the board_init function. Signed-off-by: Stefan Herbrechtsmeier --- board/xilinx/common/board.c | 5 + board/xilinx/common/board.h | 2 ++

[PATCH 07/10] xilinx: zynqmp: make spi flash support optional

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier The set_dfu_alt_info function use the CONFIG_SYS_SPI_U_BOOT_OFFS define to set the dfu_alt_info environment variable for qspi boot mode. Guard the usage of CONFIG_SYS_SPI_U_BOOT_OFFS to make spi flash support optional. Signed-off-by: Stefan Herbrechtsmeier --- boa

[PATCH 03/10] soc: xilinx: zynqmp: Add machine identification support

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add machine identification support based on the zynqmp_get_silicon_idcode_name function in board/xilinx/zynqmp/zynqmp.c. Signed-off-by: Stefan Herbrechtsmeier --- drivers/soc/soc_xilinx_zynqmp.c | 289 +++- 1 file changed, 286 insertion

[PATCH 06/10] xilinx: common: Separate display cpu info function

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Move the print_cpuinfo function of CONFIG_DISPLAY_CPUINFO into its own source file to support reuse by other board vendors. Signed-off-by: Stefan Herbrechtsmeier --- board/xilinx/common/Makefile | 3 +++ board/xilinx/common/board.c| 29 -

[PATCH 04/10] xilinx: zynqmp: Use soc machine function to get silicon idcode name

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Use the soc_get_machine function of the soc uclass to get silicon idcode name for the fpga init. Signed-off-by: Stefan Herbrechtsmeier --- board/xilinx/zynqmp/zynqmp.c | 287 ++- 1 file changed, 15 insertions(+), 272 deletions(-) d

[PATCH 01/10] firmware: firmware-zynqmp: Check if rx channel dev pointer is valid

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Check if rx channel dev pointer is valid and not if the address of the pointer is valid. Signed-off-by: Stefan Herbrechtsmeier --- drivers/firmware/firmware-zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/firmware-zynq

[PATCH 02/10] firmware: firmware-zynqmp: Probe driver before use

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Probe the driver before use to ensure that the global data are valid. Signed-off-by: Stefan Herbrechtsmeier --- drivers/firmware/firmware-zynqmp.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers

[PATCH 00/10] xilinx: zynqmp: Support foreign vendor boards

2022-06-08 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier At the moment the xilinx zynqmp soc is only supported by xilinx vendor boards. Rework the xilinx zynqmp board code to support reuse by foreign vendor boards. Stefan Herbrechtsmeier (10): firmware: firmware-zynqmp: Check if rx channel dev pointer is valid firmwar

Re: imx8mm: Invalid IVT structure

2022-06-08 Thread Michael Nazzareno Trimarchi
Hi Tim On Wed, Jun 8, 2022 at 5:25 PM Tim Harvey wrote: > > On Wed, Jun 8, 2022 at 8:09 AM Tommaso Merciai > wrote: > > > > Hi, > > > > On Wed, Jun 08, 2022 at 04:14:51PM +0200, Michael Nazzareno Trimarchi wrote: > > > Hi > > > > > > On Wed, Jun 8, 2022 at 4:13 PM Fabio Estevam wrote: > > > > >

Re: imx8mm: Invalid IVT structure

2022-06-08 Thread Tim Harvey
On Wed, Jun 8, 2022 at 8:09 AM Tommaso Merciai wrote: > > Hi, > > On Wed, Jun 08, 2022 at 04:14:51PM +0200, Michael Nazzareno Trimarchi wrote: > > Hi > > > > On Wed, Jun 8, 2022 at 4:13 PM Fabio Estevam wrote: > > > > > > Hi, > > > > > > On top of tree U-Boot, when CONFIG_IMX_HAB=y is selected in

RE: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-08 Thread ZHIZHIKIN Andrey
Hello Fabio, > -Original Message- > From: Fabio Estevam > Sent: Wednesday, June 8, 2022 2:14 PM > To: ZHIZHIKIN Andrey > Cc: Heiko Thiery ; Stefan Roese ; > U-Boot-Denx > ; Gaurav Jain ; dullf...@yahoo.com; > Rasmus Villemoes ; Schrempf Frieder > ; Horia Geanta Neag ; > Thomas > Schaef

Re: imx8mm: Invalid IVT structure

2022-06-08 Thread Tommaso Merciai
Hi, On Wed, Jun 08, 2022 at 04:14:51PM +0200, Michael Nazzareno Trimarchi wrote: > Hi > > On Wed, Jun 8, 2022 at 4:13 PM Fabio Estevam wrote: > > > > Hi, > > > > On top of tree U-Boot, when CONFIG_IMX_HAB=y is selected in > > imx8mm_evk_defconfig, the following error messages are seen: > > > > U

[PATCH] kontron-sl-mx8mm: Add CAAM support

2022-06-08 Thread Fabio Estevam
Add CAAM support, which is required when enabling HAB secure boot. Select CONFIG_SPL_DRIVERS_MISC so that CONFIG_IMX_HAB could build successfully, if selected. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx8mm-kontron-n801x-u-boot.dtsi | 17 + arch/arm/mach-imx/imx8m/Kconfig

RE: [PATCH] i.MX8M: crypto: disable JR0 in SPL, U-Boot

2022-06-08 Thread ZHIZHIKIN Andrey
Hello Gaurav, Cc: Michael Walle here. I guess this is a re-incarnation of the previous discussions we had regarding the JR reservation, see [1]. > -Original Message- > From: Gaurav Jain > Sent: Wednesday, June 8, 2022 3:34 PM > To: u-boot@lists.denx.de; Stefano Babic ; Fabio Estevam > ;

Re: [PATCH] i.MX8M: crypto: disable JR0 in SPL, U-Boot

2022-06-08 Thread Fabio Estevam
Hi Gaurav, On Wed, Jun 8, 2022 at 10:56 AM Fabio Estevam wrote: > Thanks for your patch. > > With your patch applied, I can use the NXP TF-A lf_v2.4 successfully: > no more CAAM sha256 errors are seen when launching a fitImage. > > Tested on a imx8mm-evk. > > Tested-by: Fabio Estevam I noticed

Re: [PATCH 01/12] env: Complete generic support for writable list

2022-06-08 Thread Jan Kiszka
On 06.06.22 08:42, Marek Vasut wrote: > On 5/29/22 17:37, Jan Kiszka wrote: >> On 29.05.22 03:46, Marek Vasut wrote: >>> On 5/28/22 15:02, Jan Kiszka wrote: From: Jan Kiszka This completes what 890feecaab72 started by selecting ENV_APPEND and ENV_IS_NOWHERE and by moving this d

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

2022-06-08 Thread Tom Rini
On Wed, Jun 08, 2022 at 12:46:15AM +0200, Marek Vasut wrote: > The following changes since commit 8f527342db4160a1f030de6fe4a1591787cce65a: > > Prepare v2022.07-rc4 (2022-06-06 10:25:13 -0400) > > are available in the Git repository at: > > git://source.denx.de/u-boot-usb.git master > > fo

Re: imx8mm: Invalid IVT structure

2022-06-08 Thread Michael Nazzareno Trimarchi
Hi On Wed, Jun 8, 2022 at 4:13 PM Fabio Estevam wrote: > > Hi, > > On top of tree U-Boot, when CONFIG_IMX_HAB=y is selected in > imx8mm_evk_defconfig, the following error messages are seen: > > U-Boot SPL 2022.07-rc3-00097-g26aa5e5c3fbc-dirty (Jun 08 2022 - 10:59:56 > -0300) > SEC0: RNG instant

imx8mm: Invalid IVT structure

2022-06-08 Thread Fabio Estevam
Hi, On top of tree U-Boot, when CONFIG_IMX_HAB=y is selected in imx8mm_evk_defconfig, the following error messages are seen: U-Boot SPL 2022.07-rc3-00097-g26aa5e5c3fbc-dirty (Jun 08 2022 - 10:59:56 -0300) SEC0: RNG instantiated Normal Boot WDT: Started watchdog@3028 with servicing (60s tim

Re: [PATCH v2] cmd: cat: add new command

2022-06-08 Thread Tom Rini
On Sat, Jun 04, 2022 at 11:19:15AM +, Roger Knecht wrote: > Add cat command to print file content to standard out > > Signed-off-by: Roger Knecht > --- > v2: > - Moved cat from boot to shell commands > - Added MAINTAINERS entry > - Added comments > - Improved variable naming > > MAINTA

Re: [PATCH] i.MX8M: crypto: disable JR0 in SPL, U-Boot

2022-06-08 Thread Fabio Estevam
Hi Gaurav, On Wed, Jun 8, 2022 at 10:34 AM Gaurav Jain wrote: > > disabled use of JR0 in SPL and uboot, as JR0 is reserved > for HAB in TF-A. > > Signed-off-by: Gaurav Jain Thanks for your patch. With your patch applied, I can use the NXP TF-A lf_v2.4 successfully: no more CAAM sha256 errors a

Re: [PATCH] sunxi: usb: convert PHY GPIO functions to DM

2022-06-08 Thread Andre Przywara
On Wed, 8 Jun 2022 08:14:27 -0500 Samuel Holland wrote: Hi, > On 6/8/22 4:46 AM, Andre Przywara wrote: > > On Tue, 7 Jun 2022 21:07:59 -0500 > > Samuel Holland wrote: > > > > Hi, > > > >> On 6/7/22 7:06 PM, Andre Przywara wrote: > >>> The Allwinner USB PHY driver is still using the legacy

[PATCH] i.MX8M: crypto: disable JR0 in SPL, U-Boot

2022-06-08 Thread Gaurav Jain
disabled use of JR0 in SPL and uboot, as JR0 is reserved for HAB in TF-A. Signed-off-by: Gaurav Jain --- arch/arm/dts/imx8mm-evk-u-boot.dtsi| 1 + arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 1 + arch/arm/dts/imx8mp-evk-u-boot.dtsi| 1 + arch/arm/dts/imx8mq-evk-u-boot.dtsi

Re: [PATCH] sunxi: usb: convert PHY GPIO functions to DM

2022-06-08 Thread Samuel Holland
On 6/8/22 4:46 AM, Andre Przywara wrote: > On Tue, 7 Jun 2022 21:07:59 -0500 > Samuel Holland wrote: > > Hi, > >> On 6/7/22 7:06 PM, Andre Przywara wrote: >>> The Allwinner USB PHY driver is still using the legacy GPIO interface, >>> which is now implemented by the DM_GPIO compat functions. >>>

Re: Unpatched Critical Flaws Disclosed in U-Boot Bootloader for Embedded Devices

2022-06-08 Thread Turritopsis Dohrnii Teo En Ming
Dear Tom Rini, Noted with thanks. Regards, Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore 8 Jun 2022 Wed Blogs: https://tdtemcerts.blogspot.com/ https://tdtemcerts.wordpress.com/ On Tue, 7 Jun 2022 at 22:39, Tom Rini wrote: > > On Tue, Jun 07, 2022 at 08:06:07PM +0800, Tu

Re: [PATCH] TPL: Do not allow enabling TPL symbols for non-TPL builds

2022-06-08 Thread Tom Rini
On Tue, May 24, 2022 at 11:03:38AM +0200, Pali Rohár wrote: > It does not make sense to enable TPL options when not building TPL binary. > So disallow selecting TPL options for non-TPL builds. > > Signed-off-by: Pali Rohár I've tried to make sure all of these are covered in: https://patchwork.o

Re: [PATCH v2] SPL: Do not allow enabling SPL symbols for non-SPL builds

2022-06-08 Thread Tom Rini
On Tue, May 24, 2022 at 11:11:01AM +0200, Pali Rohár wrote: > It does not make sense to enable SPL options when not building SPL binary. > > So disallow selecting SPL options for non-SPL builds. > > Signed-off-by: Pali Rohár > --- > Changes in v2: > * Move SPL compression options under one big

[PATCH 12/18] PowerPC: Remove some unused USB code

2022-06-08 Thread Tom Rini
These particular code paths aren't used anymore, remove. Signed-off-by: Tom Rini --- arch/powerpc/include/asm/immap_83xx.h | 22 -- board/freescale/p2041rdb/p2041rdb.c | 2 +- include/configs/P2041RDB.h| 5 - include/configs/corenet_ds.h | 5

[PATCH 18/18] vpl: Ensure all VPL symbols in Kconfig have some VPL dependency

2022-06-08 Thread Tom Rini
Tighten up symbol dependencies in a number of places. Ensure that a VPL specific option has at least a direct dependency on VPL. In places where it's clear that we depend on something more specific, use that dependency instead. Reported-by: Pali Rohár Signed-off-by: Tom Rini --- common/Kconfi

[PATCH 17/18] tpl: Ensure all TPL symbols in Kconfig have some TPL dependency

2022-06-08 Thread Tom Rini
Tighten up symbol dependencies in a number of places. Ensure that a TPL specific option has at least a direct dependency on TPL. In places where it's clear that we depend on something more specific, use that dependency instead. Reported-by: Pali Rohár Signed-off-by: Tom Rini --- arch/x86/Kcon

[PATCH 15/18] spl: Move SPL_LDSCRIPT defaults to one place

2022-06-08 Thread Tom Rini
We want to keep all of the default values for SPL_LDSCRIPT in the same place both for overall clarity as well as not polluting unrelated config files. Signed-off-by: Tom Rini --- arch/arm/Kconfig | 10 -- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 3 --- arch/a

[PATCH 16/18] spl: Ensure all SPL symbols in Kconfig have some SPL dependency

2022-06-08 Thread Tom Rini
Tighten up symbol dependencies in a number of places. Ensure that a SPL specific option has at least a direct dependency on SPL. In places where it's clear that we depend on something more specific, use that dependency instead. This means in a very small number of places we can drop redundant de

[PATCH 13/18] usb: ehci-mxc: Remove

2022-06-08 Thread Tom Rini
There are no platforms enabling this driver, remove. Signed-off-by: Tom Rini --- drivers/usb/host/Makefile | 1 - drivers/usb/host/ehci-mxc.c | 148 2 files changed, 149 deletions(-) delete mode 100644 drivers/usb/host/ehci-mxc.c diff --git a/drivers/us

[PATCH 14/18] usb: ehci-mx5: Remove non-DM code

2022-06-08 Thread Tom Rini
The deadline for DM_USB migration has passed and all users have been migrated. Remove now unused code. Signed-off-by: Tom Rini --- drivers/usb/host/ehci-mx5.c | 47 - 1 file changed, 47 deletions(-) diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host

[PATCH 11/18] Convert CONFIG_TEGRA_GPU to Kconfig

2022-06-08 Thread Tom Rini
This converts the following to Kconfig: CONFIG_TEGRA_GPU Signed-off-by: Tom Rini --- arch/arm/mach-tegra/Kconfig | 4 configs/apalis-tk1_defconfig | 1 + configs/cei-tk1-som_defconfig | 1 + configs/jetson-tk1_defconfig | 1 + configs/nyan-big_defconfig| 1 +

[PATCH 10/18] usb: xhci-fsl: Remove non-DM code

2022-06-08 Thread Tom Rini
The deadline for DM_USB migration has passed and all users have been migrated. Remove now unused code. Signed-off-by: Tom Rini --- drivers/usb/host/xhci-fsl.c | 47 include/linux/usb/xhci-fsl.h | 17 - 2 files changed, 64 deletions(-) diff --gi

[PATCH 05/18] Convert CONFIG_EHCI_HCD_INIT_AFTER_RESET to Kconfig

2022-06-08 Thread Tom Rini
This converts the following to Kconfig: CONFIG_EHCI_HCD_INIT_AFTER_RESET Signed-off-by: Tom Rini --- drivers/usb/host/Kconfig | 5 - include/configs/MPC837XERDB.h| 1 - include/configs/P1010RDB.h | 6 -- include/configs/P2041RDB.h

[PATCH 08/18] usb: ehci-fsl: Remove non-DM code

2022-06-08 Thread Tom Rini
The deadline for DM_USB migration has passed and all users have been migrated. Remove now unused code. Signed-off-by: Tom Rini --- .../asm/arch-fsl-layerscape/immap_lsch2.h | 1 - arch/arm/include/asm/arch-ls102xa/config.h| 1 - arch/powerpc/cpu/mpc83xx/cpu_init.c | 13

[PATCH 09/18] Convert CONFIG_USB_EHCI_TXFIFO_THRESH to Kconfig

2022-06-08 Thread Tom Rini
This converts the following to Kconfig: CONFIG_USB_EHCI_TXFIFO_THRESH Signed-off-by: Tom Rini --- README| 3 --- drivers/usb/host/Kconfig | 11 +++ include/configs/tegra114-common.h | 3 --- include/configs/tegra124-common.h | 3 --- include/con

[PATCH 07/18] Convert CONFIG_USB_XHCI_EXYNOS et al to Kconfig

2022-06-08 Thread Tom Rini
This converts the following to Kconfig: CONFIG_USB_XHCI_EXYNOS CONFIG_USB_EHCI_EXYNOS Signed-off-by: Tom Rini --- drivers/usb/host/Kconfig| 16 include/configs/exynos5250-common.h | 5 - include/configs/exynos5420-common.h | 2 -- include/configs/odroid.h

[PATCH 06/18] Convert CONFIG_HAS_FSL_DR_USB to Kconfig

2022-06-08 Thread Tom Rini
This converts the following to Kconfig: CONFIG_HAS_FSL_DR_USB Signed-off-by: Tom Rini --- board/freescale/common/Kconfig | 4 board/freescale/p1_p2_rdb_pc/Kconfig | 2 ++ include/configs/MPC837XERDB.h| 2 -- include/configs/P1010RDB.h | 2 -- include/configs/P2041

[PATCH 03/18] ehci-mxs: Remove non-DM code

2022-06-08 Thread Tom Rini
This code is not enabled anywhere, drop it. Signed-off-by: Tom Rini --- drivers/usb/host/ehci-mxs.c | 77 include/configs/mx23_olinuxino.h | 1 - include/configs/mx23evk.h| 1 - include/configs/mx28evk.h| 1 - 4 files changed, 80 deletions

[PATCH 04/18] Convert CONFIG_EHCI_DESC_BIG_ENDIAN et al to Kconfig

2022-06-08 Thread Tom Rini
This converts the following to Kconfig: CONFIG_EHCI_DESC_BIG_ENDIAN CONFIG_EHCI_MMIO_BIG_ENDIAN Signed-off-by: Tom Rini --- drivers/usb/host/Kconfig | 10 ++ include/configs/bmips_bcm6318.h | 2 -- include/configs/bmips_bcm63268.h | 2 -- include/configs/bmips_bcm6328.h

[PATCH 02/18] Convert CONFIG_EFLASH_PROTSECTORS to Kconfig

2022-06-08 Thread Tom Rini
This converts the following to Kconfig: CONFIG_EFLASH_PROTSECTORS Signed-off-by: Tom Rini --- arch/arm/mach-at91/Kconfig| 7 +++ arch/arm/mach-at91/arm926ejs/eflash.c | 4 ++-- configs/ethernut5_defconfig | 1 + include/configs/ethernut5.h | 1 - 4 files ch

[PATCH 01/18] Convert CONFIG_E1000_NO_NVM to Kconfig

2022-06-08 Thread Tom Rini
This converts the following to Kconfig: CONFIG_E1000_NO_NVM Signed-off-by: Tom Rini --- configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + drivers/net/Kconfig | 4 include/configs/apalis-tk1.h | 3 --- include/configs/apalis_t30.h | 3 --- 5 files changed, 6

Re: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-08 Thread Fabio Estevam
Hi Andrey, On Wed, Jun 8, 2022 at 4:46 AM ZHIZHIKIN Andrey wrote: > > The problem seems to be related to the TF-A version. > > > > If I use the older imx_5.4.47_2.2.0 TF-A then the sha256 calculation > > via CAAM does not fail. > > I just tried the imx8mp_evk and with CONFIG_IMX_HAB=y the board

Re: BUG in u-boot for ODROID-XU3/XU4/HC1/HC2

2022-06-08 Thread Gabriel Hojda
hi, finally got around to do it: added "board=ordoid" to CONFIG_EXTRA_ENV_SETTINGS in include/configs/odroid_xu3.h using following patch, rebuild the rpm locally, updated u-boot on the sdcard for my local odroid-hc2 and booted with the new u-boot ... so adding board to CONFIG_EXTRA_ENV_SETTIN

This commit introduced a bug that prevented nanopc-t4 from booting from nvme.

2022-06-08 Thread 绅士无双
https://github.com/u-boot/u-boot/commit/ce920e0e56eaeb2442eb27b87d0750cbd1e5bf15 some logs. https://gist.github.com/daiaji/eafa111f4d6dd0079561f16107e555d0

[PATCH 1/2] microblaze: Convert axi timer to DM driver

2022-06-08 Thread Michal Simek
Move axi timer driver from Microblaze to generic location. Origin implementation was irq based with counting down timer. CONFIG_TIMER drivers are designed differently that timer is free running up timer with automatic reload without any interrupt. Information about clock rates are find out in time

[PATCH 2/2] microblaze: Remove interrupt handler

2022-06-08 Thread Michal Simek
The primary purpose for this code was timer. By converting it to CONFIG_TIMER there is no code which uses this implementation that's why remove it. If there is a need to handle interrupts this patch can be reverted in future. Signed-off-by: Michal Simek --- arch/Kconfig

[PATCH 0/2] microblaze: Fix timer and interrupt code

2022-06-08 Thread Michal Simek
Hi, this series is moving timer to generic drivers/timer/ location and it is removing unused interrupt code in architecture. note: This patchset is based on rela and cache series. Thanks, Michal Michal Simek (2): microblaze: Convert axi timer to DM driver microblaze: Remove interrupt handl

Re: [PATCH] sunxi: usb: convert PHY GPIO functions to DM

2022-06-08 Thread Milan P . Stanić
Hi, it works fine. Thank you. On Wed, 2022-06-08 at 01:06, Andre Przywara wrote: > The Allwinner USB PHY driver is still using the legacy GPIO interface, > which is now implemented by the DM_GPIO compat functions. > Those seem to have some design flaws, as setting the direction, then > later sett

Re: [BUG] keyboard doesn't work on Olimex teres-I notebook

2022-06-08 Thread Andre Przywara
On Wed, 8 Jun 2022 01:30:42 +0100 Andre Przywara wrote: Hi, > On Tue, 19 Apr 2022 14:27:24 +0200 > Milan P. Stanić wrote: > > Hi Milan, > > > [ Please CC to me, I'm not subscribed to mailing list ] > > > > Hi, > > > > On u-boot release 2022.04 keyboard doesn't work in u-boot on Olimex > > T

Re: [PATCH] sunxi: usb: convert PHY GPIO functions to DM

2022-06-08 Thread Andre Przywara
On Tue, 7 Jun 2022 21:07:59 -0500 Samuel Holland wrote: Hi, > On 6/7/22 7:06 PM, Andre Przywara wrote: > > The Allwinner USB PHY driver is still using the legacy GPIO interface, > > which is now implemented by the DM_GPIO compat functions. > > Those seem to have some design flaws, as setting the

RE: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-08 Thread ZHIZHIKIN Andrey
Hello Fabio et al., > -Original Message- > From: Fabio Estevam > Sent: Wednesday, June 8, 2022 12:50 AM > To: Heiko Thiery > Cc: Stefan Roese ; U-Boot-Denx ; Gaurav > Jain > ; dullf...@yahoo.com; Rasmus Villemoes > ; Schrempf Frieder ; > ZHIZHIKIN Andrey ; Horia Geanta Neag > ; Thomas S

Re: [PATCH] fs/squashfs: sqfs_read: Prevent arbitrary code execution

2022-06-08 Thread Miquel Raynal
Hi Jincheng, jc.w...@gmail.com wrote on Wed, 8 Jun 2022 11:37:13 +0800: > To be honest, I don't have experience > > Reference to the article " > https://events19.linuxfoundation.org/wp-content/uploads/2018/07/may_be_maintainer-2.pdf"; > , I tried to do some work. > > 1. checkpatch (√) > 2.

RE: [EXT] Re: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-08 Thread Gaurav Jain
Hi Andrey > -Original Message- > From: ZHIZHIKIN Andrey > Sent: Wednesday, June 8, 2022 11:59 AM > To: Gaurav Jain ; Fabio Estevam > ; Heiko Thiery > Cc: Stefan Roese ; U-Boot-Denx ; > dullf...@yahoo.com; Rasmus Villemoes ; > Schrempf Frieder ; Horia Geanta > ; Thomas Schäfer ; > Ye Li ;

Re: [PATCH] usb: host: ehci-generic: Make resets and clocks optional

2022-06-08 Thread Patrice CHOTARD
Hi Andre On 6/8/22 01:42, Andre Przywara wrote: > The generic EHCI binding does not *require* resets and clocks > properties, and indeed for instance the Allwinner A20 SoCs does not > need or define any resets in its DT. > > Don't easily give up if clk_get_bulk() or reset_get_bulk() return an > e