[PATCH] treewide: make use of PTR_ERR_OR_ZERO

2020-06-24 Thread Uwe Kleine-König
PTR_ERR_OR_ZERO is designed to replace boiler plate like: if (IS_ERR(x)) return PTR_ERR(x); return 0; Signed-off-by: Uwe Kleine-König --- arch/arm/boards/freescale-mx23-evk/mx23-evk.c | 4 +--- arch/arm/boards/karo-tx28/tx28-stk5.c | 4 +---

Re: [PATCH 4/4] kvx: add support for elf loading using bootm

2020-06-24 Thread Clément Leger
Hi Ahmad, - On 24 Jun, 2020, at 08:17, Ahmad Fatoum a.fat...@pengutronix.de wrote: > On 6/23/20 9:35 PM, Clement Leger wrote: >> From: Clement Leger >> >> In order to boot elfs files, add bootm command support for kvx. This support >> can boot elf files using bootm elf support. initrd and

Re: [PATCH] kbuild: fix typo in --no-whole-archive flag

2020-06-24 Thread Sascha Hauer
On Tue, Jun 23, 2020 at 05:08:23PM +0200, Clement Leger wrote: > "whole" was replaced with "while" during a previous patch. Fix this flag > to allow building correctly. > > Fixes 0a78b33954 ("kbuild: switch over to thin archive") > Signed-off-by: Clement Leger > --- > arch/kvx/Makefile | 2

Re: [PATCH 0/4] dts: clean up and a fix

2020-06-24 Thread Sascha Hauer
On Tue, Jun 23, 2020 at 03:25:17PM +0200, Ahmad Fatoum wrote: > Hello Sascha, > > the vexpress changed paths, again, so building now fails. Fortunately[1], > a label: had been introduced meanwhile, that we could use. This is what > the first patch does. Please order it before the v5.8-rc1 sync,

Re: [PATCH v2] ARM: dts: vexpress-v2p-ca15: adapt fixed NOR flash partition setup

2020-06-24 Thread Sascha Hauer
On Tue, Jun 23, 2020 at 03:45:34PM +0200, Ahmad Fatoum wrote: > Roland already fixed the vexpress-v2p-ca9: > > Upstream DTS commit 62a5017bf825c9e4d317 ("ARM: dts: vexpress: specify > > AFS partition") [1] introduced an empty node at /smb@400 > > /motherboard/flash@0,/partitions,

Re: [PATCH 4/4] kvx: add support for elf loading using bootm

2020-06-24 Thread Ahmad Fatoum
On 6/23/20 9:35 PM, Clement Leger wrote: > From: Clement Leger > > In order to boot elfs files, add bootm command support for kvx. This support > can boot elf files using bootm elf support. initrd and device-tree handling > is also included and loads them after the elf file load address. > >

Re: [PATCH 3/4] kvx: add D-cache inval and I-cache sync

2020-06-24 Thread Ahmad Fatoum
On 6/23/20 9:35 PM, Clement Leger wrote: > Before booting, we must make sure the I-cache is synchronized with the > D-cache to execute loaded instructions. In order to do that, add a > function which execute a fence to ensure every memory accesses have > been committed out of processor pipeline

Re: [PATCH 2/4] common: Kconfig: remove MIPS dependency

2020-06-24 Thread Ahmad Fatoum
Hello Clement, On 6/23/20 9:35 PM, Clement Leger wrote: > There is no reason anymore to limit the use of elf on mips since there > is no elf specific support needed in architectures. Remove this > dependency and drop COMPILE_TEST config. > > Signed-off-by: Clement Leger > --- > common/Kconfig