[PATCH] mm/memblock: introduce PHYS_ADDR_MAX

2018-04-06 Thread Stefan Agner
Suggested-by: Linus Torvalds Signed-off-by: Stefan Agner --- Hi, There are about a dozen other instances of (phys_addr_t)ULLONG_MAX accross the tree. Should I address them too? -- Stefan include/linux/kernel.h | 1 + mm/memblock.c | 22 +++--- 2 files changed, 12 inserti

Re: [RFC PATCH] crypto: brcm - explicitly cast cipher to hash type

2018-03-28 Thread Stefan Agner
aveendra agrees to the change, do you want me to send a non-RFC version or can you merge the patch as is? -- Stefan > > -Raveendra > > On Sat, Mar 24, 2018 at 4:32 PM, Stefan Agner <ste...@agner.ch> wrote: >> In the AES cases enum spu_cipher_type and enum hash_type have >&g

Re: [RFC PATCH] crypto: brcm - explicitly cast cipher to hash type

2018-03-28 Thread Stefan Agner
aveendra agrees to the change, do you want me to send a non-RFC version or can you merge the patch as is? -- Stefan > > -Raveendra > > On Sat, Mar 24, 2018 at 4:32 PM, Stefan Agner wrote: >> In the AES cases enum spu_cipher_type and enum hash_type have >> the same values, so

Re: [PATCH v2 1/6] bus: arm-cci: use asm unreachable

2018-03-25 Thread Stefan Agner
On 25.03.2018 20:14, Nicolas Pitre wrote: > On Sun, 25 Mar 2018, Stefan Agner wrote: > >> Mixing asm and C code is not recommended in a naked function by >> gcc and leads to an error when using clang: >> drivers/bus/arm-cci.c:2107:2: error: non-ASM statemen

Re: [PATCH v2 1/6] bus: arm-cci: use asm unreachable

2018-03-25 Thread Stefan Agner
On 25.03.2018 20:14, Nicolas Pitre wrote: > On Sun, 25 Mar 2018, Stefan Agner wrote: > >> Mixing asm and C code is not recommended in a naked function by >> gcc and leads to an error when using clang: >> drivers/bus/arm-cci.c:2107:2: error: non-ASM statemen

[PATCH v2 0/6] ARM: clang support

2018-03-25 Thread Stefan Agner
with 4.16-rc5 using clang 5.0.1 and 6.0.0. This version also adds a patch to mitigate a often printed warning about duplicate 'const' declaration specifier when using get_user(). Stefan Agner (6): bus: arm-cci: use asm unreachable efi/libstub/arm: add support for building with clang ARM

[PATCH v2 4/6] ARM: drop no-thumb-interwork in EABI mode

2018-03-25 Thread Stefan Agner
According to GCC documentation -m(no-)thumb-interwork is meaningless in AAPCS configurations. Also clang does not support the flag: clang-5.0: error: unknown argument: '-mno-thumb-interwork' Just drop -mno-thumb-interwork in AEABI configuration. Signed-off-by: Stefan Agner <ste...@agner

[PATCH v2 3/6] ARM: trusted_foundations: do not use naked function

2018-03-25 Thread Stefan Agner
e a regular function to be more portable. This aligns also with the other smc call implementations e.g. in qcom_scm-32.c and bcm_kona_smc.c. Cc: Dmitry Osipenko <dig...@gmail.com> Cc: Stephen Warren <swar...@nvidia.com> Cc: Thierry Reding <tred...@nvidia.com> Signed-off-by: Stef

[PATCH v2 2/6] efi/libstub/arm: add support for building with clang

2018-03-25 Thread Stefan Agner
Use cc-options call for -mno-single-pic-base since the option is not available in clang. LLVM/clang always assumes a fixed displacement between text/data and hence uses PC relative addressing. Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/firmware/efi/libstub/Makefile | 3 ++-

[PATCH v2 0/6] ARM: clang support

2018-03-25 Thread Stefan Agner
with 4.16-rc5 using clang 5.0.1 and 6.0.0. This version also adds a patch to mitigate a often printed warning about duplicate 'const' declaration specifier when using get_user(). Stefan Agner (6): bus: arm-cci: use asm unreachable efi/libstub/arm: add support for building with clang ARM

[PATCH v2 4/6] ARM: drop no-thumb-interwork in EABI mode

2018-03-25 Thread Stefan Agner
According to GCC documentation -m(no-)thumb-interwork is meaningless in AAPCS configurations. Also clang does not support the flag: clang-5.0: error: unknown argument: '-mno-thumb-interwork' Just drop -mno-thumb-interwork in AEABI configuration. Signed-off-by: Stefan Agner --- arch/arm

[PATCH v2 3/6] ARM: trusted_foundations: do not use naked function

2018-03-25 Thread Stefan Agner
e a regular function to be more portable. This aligns also with the other smc call implementations e.g. in qcom_scm-32.c and bcm_kona_smc.c. Cc: Dmitry Osipenko Cc: Stephen Warren Cc: Thierry Reding Signed-off-by: Stefan Agner --- Changes in v2: - Keep stmfd/ldmfd to avoid potential ABI issues

[PATCH v2 2/6] efi/libstub/arm: add support for building with clang

2018-03-25 Thread Stefan Agner
Use cc-options call for -mno-single-pic-base since the option is not available in clang. LLVM/clang always assumes a fixed displacement between text/data and hence uses PC relative addressing. Signed-off-by: Stefan Agner --- drivers/firmware/efi/libstub/Makefile | 3 ++- 1 file changed, 2

[PATCH v2 5/6] ARM: add support for building ARM kernel with clang

2018-03-25 Thread Stefan Agner
Use cc-options call for compiler options which are not available in clang. With this patch an ARMv7 multi platform kernel can be successfully build using clang (tested with version 5.0.1). Based-on-patches-by: Behan Webster <beh...@converseincode.com> Signed-off-by: Stefan Agner <ste...

[PATCH v2 5/6] ARM: add support for building ARM kernel with clang

2018-03-25 Thread Stefan Agner
Use cc-options call for compiler options which are not available in clang. With this patch an ARMv7 multi platform kernel can be successfully build using clang (tested with version 5.0.1). Based-on-patches-by: Behan Webster Signed-off-by: Stefan Agner --- Changes in v2: - Drop cc-options

[PATCH v2 1/6] bus: arm-cci: use asm unreachable

2018-03-25 Thread Stefan Agner
return in asm. There is no need for the unreachable() call. Suggested-by: Russell King <li...@arm.linux.org.uk> Signed-off-by: Stefan Agner <ste...@agner.ch> --- Changes in v2: - Don't add assembly ASM_UNREACHABLE, just drop unreachable() drivers/bus/arm-cci.c | 2 -- 1 file changed,

[PATCH v2 1/6] bus: arm-cci: use asm unreachable

2018-03-25 Thread Stefan Agner
return in asm. There is no need for the unreachable() call. Suggested-by: Russell King Signed-off-by: Stefan Agner --- Changes in v2: - Don't add assembly ASM_UNREACHABLE, just drop unreachable() drivers/bus/arm-cci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/bus/arm-cci.c b

[PATCH v2 6/6] ARM: uaccess: remove const to avoid duplicate specifier

2018-03-25 Thread Stefan Agner
ame. Signed-off-by: Stefan Agner <ste...@agner.ch> --- Similar issue has already been discussed here: https://patchwork.kernel.org/patch/9693821/ arch/arm/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/inclu

[PATCH v2 6/6] ARM: uaccess: remove const to avoid duplicate specifier

2018-03-25 Thread Stefan Agner
ame. Signed-off-by: Stefan Agner --- Similar issue has already been discussed here: https://patchwork.kernel.org/patch/9693821/ arch/arm/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h in

Re: [PATCH 5/5] ARM: add support for building ARM kernel with clang

2018-03-25 Thread Stefan Agner
On 21.03.2018 00:18, Russell King - ARM Linux wrote: > On Wed, Mar 21, 2018 at 12:02:06AM +0100, Stefan Agner wrote: >> Use cc-options call for compiler options which are not available >> in clang. With this patch an ARMv7 multi platform kernel can be >> successfully buil

Re: [PATCH 5/5] ARM: add support for building ARM kernel with clang

2018-03-25 Thread Stefan Agner
On 21.03.2018 00:18, Russell King - ARM Linux wrote: > On Wed, Mar 21, 2018 at 12:02:06AM +0100, Stefan Agner wrote: >> Use cc-options call for compiler options which are not available >> in clang. With this patch an ARMv7 multi platform kernel can be >> successfully buil

[RFC PATCH] crypto: brcm - explicitly cast cipher to hash type

2018-03-24 Thread Stefan Agner
spu_cipher_type' to different enumeration type 'enum hash_type' [-Wenum-conversion] hash_parms.type = ctx->cipher_type; ~ ~^~~ Signed-off-by: Stefan Agner <ste...@agner.ch> --- I am not familar with the IP... I woul

[RFC PATCH] crypto: brcm - explicitly cast cipher to hash type

2018-03-24 Thread Stefan Agner
spu_cipher_type' to different enumeration type 'enum hash_type' [-Wenum-conversion] hash_parms.type = ctx->cipher_type; ~ ~^~~ Signed-off-by: Stefan Agner --- I am not familar with the IP... I would be glad if somebody with bet

Re: [PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-22 Thread Stefan Agner
On 22.03.2018 12:48, Robin Murphy wrote: > On 21/03/18 21:41, Stefan Agner wrote: >> On 21.03.2018 18:16, Robin Murphy wrote: >>> On 21/03/18 16:40, Stephen Warren wrote: >>>> On 03/21/2018 09:26 AM, Dmitry Osipenko wrote: >>>>> On 21.03.2018 17:09, S

Re: [PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-22 Thread Stefan Agner
On 22.03.2018 12:48, Robin Murphy wrote: > On 21/03/18 21:41, Stefan Agner wrote: >> On 21.03.2018 18:16, Robin Murphy wrote: >>> On 21/03/18 16:40, Stephen Warren wrote: >>>> On 03/21/2018 09:26 AM, Dmitry Osipenko wrote: >>>>> On 21.03.2018 17:09, S

Re: [PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-21 Thread Stefan Agner
On 21.03.2018 18:16, Robin Murphy wrote: > On 21/03/18 16:40, Stephen Warren wrote: >> On 03/21/2018 09:26 AM, Dmitry Osipenko wrote: >>> On 21.03.2018 17:09, Stefan Agner wrote: >>>> On 21.03.2018 13:13, Robin Murphy wrote: >>>>> On 20/03/18 23:02, St

Re: [PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-21 Thread Stefan Agner
On 21.03.2018 18:16, Robin Murphy wrote: > On 21/03/18 16:40, Stephen Warren wrote: >> On 03/21/2018 09:26 AM, Dmitry Osipenko wrote: >>> On 21.03.2018 17:09, Stefan Agner wrote: >>>> On 21.03.2018 13:13, Robin Murphy wrote: >>>>> On 20/03/18 23:02, St

Re: [PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-21 Thread Stefan Agner
On 21.03.2018 13:13, Robin Murphy wrote: > On 20/03/18 23:02, Stefan Agner wrote: >> As documented in GCC naked functions should only use Basic asm >> syntax. The Extended asm or mixture of Basic asm and "C" code is >> not guaranteed. Currently this works because

Re: [PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-21 Thread Stefan Agner
On 21.03.2018 13:13, Robin Murphy wrote: > On 20/03/18 23:02, Stefan Agner wrote: >> As documented in GCC naked functions should only use Basic asm >> syntax. The Extended asm or mixture of Basic asm and "C" code is >> not guaranteed. Currently this works because

Re: [PATCH 5/5] ARM: add support for building ARM kernel with clang

2018-03-21 Thread Stefan Agner
On 21.03.2018 01:20, Matthias Kaehlcke wrote: > El Tue, Mar 20, 2018 at 11:18:33PM + Russell King - ARM Linux ha dit: > >> On Wed, Mar 21, 2018 at 12:02:06AM +0100, Stefan Agner wrote: >> > Use cc-options call for compiler options which are not available >>

Re: [PATCH 5/5] ARM: add support for building ARM kernel with clang

2018-03-21 Thread Stefan Agner
On 21.03.2018 01:20, Matthias Kaehlcke wrote: > El Tue, Mar 20, 2018 at 11:18:33PM + Russell King - ARM Linux ha dit: > >> On Wed, Mar 21, 2018 at 12:02:06AM +0100, Stefan Agner wrote: >> > Use cc-options call for compiler options which are not available >>

Re: [PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-21 Thread Stefan Agner
On 21.03.2018 00:13, Russell King - ARM Linux wrote: > On Wed, Mar 21, 2018 at 12:02:04AM +0100, Stefan Agner wrote: >> As documented in GCC naked functions should only use Basic asm >> syntax. The Extended asm or mixture of Basic asm and "C" code is >> not guarantee

Re: [PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-21 Thread Stefan Agner
On 21.03.2018 00:13, Russell King - ARM Linux wrote: > On Wed, Mar 21, 2018 at 12:02:04AM +0100, Stefan Agner wrote: >> As documented in GCC naked functions should only use Basic asm >> syntax. The Extended asm or mixture of Basic asm and "C" code is >> not guarantee

Re: [PATCH 1/5] bus: arm-cci: use asm unreachable

2018-03-21 Thread Stefan Agner
On 21.03.2018 00:30, Russell King - ARM Linux wrote: > On Wed, Mar 21, 2018 at 12:02:02AM +0100, Stefan Agner wrote: >> Mixing asm and C code is not recommended in a naked function by >> gcc and leads to an error when using clang: >> drivers/bus/arm-cci.c:2107:2: err

Re: [PATCH 1/5] bus: arm-cci: use asm unreachable

2018-03-21 Thread Stefan Agner
On 21.03.2018 00:30, Russell King - ARM Linux wrote: > On Wed, Mar 21, 2018 at 12:02:02AM +0100, Stefan Agner wrote: >> Mixing asm and C code is not recommended in a naked function by >> gcc and leads to an error when using clang: >> drivers/bus/arm-cci.c:2107:2: err

[PATCH 2/5] efi/libstub/arm: add support for building with clang

2018-03-20 Thread Stefan Agner
Use cc-options call for -mno-single-pic-base since the option is not available in clang. LLVM/clang always assumes a fixed displacement between text/data and hence uses PC relative addressing. Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/firmware/efi/libstub/Makefile | 3 ++-

[PATCH 2/5] efi/libstub/arm: add support for building with clang

2018-03-20 Thread Stefan Agner
Use cc-options call for -mno-single-pic-base since the option is not available in clang. LLVM/clang always assumes a fixed displacement between text/data and hence uses PC relative addressing. Signed-off-by: Stefan Agner --- drivers/firmware/efi/libstub/Makefile | 3 ++- 1 file changed, 2

[PATCH 5/5] ARM: add support for building ARM kernel with clang

2018-03-20 Thread Stefan Agner
Use cc-options call for compiler options which are not available in clang. With this patch an ARMv7 multi platform kernel can be successfully build using clang (tested with version 5.0.1). Based-on-patches-by: Behan Webster <beh...@converseincode.com> Signed-off-by: Stefan Agner <ste...

[PATCH 5/5] ARM: add support for building ARM kernel with clang

2018-03-20 Thread Stefan Agner
Use cc-options call for compiler options which are not available in clang. With this patch an ARMv7 multi platform kernel can be successfully build using clang (tested with version 5.0.1). Based-on-patches-by: Behan Webster Signed-off-by: Stefan Agner --- arch/arm/Makefile | 2

[PATCH 4/5] ARM: drop no-thumb-interwork in EABI mode

2018-03-20 Thread Stefan Agner
According to GCC documentation -m(no-)thumb-interwork is meaningless in AAPCS configurations. Also clang does not support the flag: clang-5.0: error: unknown argument: '-mno-thumb-interwork' Just drop -mno-thumb-interwork in AEABI configuration. Signed-off-by: Stefan Agner <ste...@agner

[PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-20 Thread Stefan Agner
e a regular function to be more portable. This aligns also with the other smc call implementations e.g. in qcom_scm-32.c and bcm_kona_smc.c. Additionally also make sure all callee-saved registers get saved as it has been done before. Signed-off-by: Stefan Agner <ste...@agner.ch> ---

[PATCH 1/5] bus: arm-cci: use asm unreachable

2018-03-20 Thread Stefan Agner
variant ASM_UNREACHABLE. This will no longer emit __builtin_unreachable(), but since the function is naked and its return type is void it seems not to have aversive effects. Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/bus/arm-cci.c | 3 +-- 1 file changed, 1 insertion(+), 2 del

[PATCH 0/5] ARM: clang support

2018-03-20 Thread Stefan Agner
-existig cpu name: https://reviews.llvm.org/D18086 Stefan Agner (5): bus: arm-cci: use asm unreachable efi/libstub/arm: add support for building with clang ARM: trusted_foundations: do not use naked function ARM: drop no-thumb-interwork in EABI mode ARM: add support for building ARM kernel

[PATCH 4/5] ARM: drop no-thumb-interwork in EABI mode

2018-03-20 Thread Stefan Agner
According to GCC documentation -m(no-)thumb-interwork is meaningless in AAPCS configurations. Also clang does not support the flag: clang-5.0: error: unknown argument: '-mno-thumb-interwork' Just drop -mno-thumb-interwork in AEABI configuration. Signed-off-by: Stefan Agner --- arch/arm

[PATCH 3/5] ARM: trusted_foundations: do not use naked function

2018-03-20 Thread Stefan Agner
e a regular function to be more portable. This aligns also with the other smc call implementations e.g. in qcom_scm-32.c and bcm_kona_smc.c. Additionally also make sure all callee-saved registers get saved as it has been done before. Signed-off-by: Stefan Agner --- arch/arm/firmware/trusted

[PATCH 1/5] bus: arm-cci: use asm unreachable

2018-03-20 Thread Stefan Agner
variant ASM_UNREACHABLE. This will no longer emit __builtin_unreachable(), but since the function is naked and its return type is void it seems not to have aversive effects. Signed-off-by: Stefan Agner --- drivers/bus/arm-cci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 0/5] ARM: clang support

2018-03-20 Thread Stefan Agner
-existig cpu name: https://reviews.llvm.org/D18086 Stefan Agner (5): bus: arm-cci: use asm unreachable efi/libstub/arm: add support for building with clang ARM: trusted_foundations: do not use naked function ARM: drop no-thumb-interwork in EABI mode ARM: add support for building ARM kernel

[PATCH] nfsd: use correct enum type in decode_cb_op_status

2018-03-19 Thread Stefan Agner
= decode_cb_op_status(xdr, OP_CB_SEQUENCE, >cb_seq_status); ~~~ ^~ Signed-off-by: Stefan Agner <ste...@agner.ch> --- fs/nfsd/nfs4callback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4c

[PATCH] nfsd: use correct enum type in decode_cb_op_status

2018-03-19 Thread Stefan Agner
= decode_cb_op_status(xdr, OP_CB_SEQUENCE, >cb_seq_status); ~~~ ^~ Signed-off-by: Stefan Agner --- fs/nfsd/nfs4callback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 49b0a9e7f

[PATCH v2] spi: rspi: use correct enum for DMA transfer direction

2018-03-19 Thread Stefan Agner
MA_TO_DEVICE, ^ Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/spi/spi-rspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 0835a8d88fb8..95dc4d78618d 100644 ---

[PATCH v2] spi: rspi: use correct enum for DMA transfer direction

2018-03-19 Thread Stefan Agner
MA_TO_DEVICE, ^ Signed-off-by: Stefan Agner --- drivers/spi/spi-rspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 0835a8d88fb8..95dc4d78618d 100644 --- a/drivers/spi/spi-rspi.c +

Re: [PATCH] spi: rspi: use correct enum for DMA transfer direction

2018-03-19 Thread Stefan Agner
On 19.03.2018 22:42, Stefan Agner wrote: > Use enum dma_transfer_direction as required by dmaengine_prep_slave_sg > instead of enum dma_data_direction. > > This fixes two warnings when building with clang: > drivers/spi/spi-rspi.c:538:26: warning: implicit conversion f

Re: [PATCH] spi: rspi: use correct enum for DMA transfer direction

2018-03-19 Thread Stefan Agner
On 19.03.2018 22:42, Stefan Agner wrote: > Use enum dma_transfer_direction as required by dmaengine_prep_slave_sg > instead of enum dma_data_direction. > > This fixes two warnings when building with clang: > drivers/spi/spi-rspi.c:538:26: warning: implicit conversion f

[PATCH] KEYS: fix const section declaration in certs blacklist

2018-03-19 Thread Stefan Agner
: note: previous attribute is here extern const char __initdata *const blacklist_hashes[]; ^ Cc: Andi Kleen <a...@linux.intel.com> Cc: David Howells <dhowe...@redhat.com> Signed-off-by: Stefan Agner <ste...@agner.ch> --- certs/blacklist.h | 2 +- 1 file ch

[PATCH] KEYS: fix const section declaration in certs blacklist

2018-03-19 Thread Stefan Agner
: note: previous attribute is here extern const char __initdata *const blacklist_hashes[]; ^ Cc: Andi Kleen Cc: David Howells Signed-off-by: Stefan Agner --- certs/blacklist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certs/blacklist.h b/certs

[PATCH] spi: rspi: use correct enum for DMA transfer direction

2018-03-19 Thread Stefan Agner
ration type 'enum dma_data_direction' to different enumeration type 'enum dma_transfer_direction' [-Wenum-conversion] tx->sgl, tx->nents, DMA_TO_DEVICE, ^ Signed-off-by: Stefa

[PATCH] spi: rspi: use correct enum for DMA transfer direction

2018-03-19 Thread Stefan Agner
ration type 'enum dma_data_direction' to different enumeration type 'enum dma_transfer_direction' [-Wenum-conversion] tx->sgl, tx->nents, DMA_TO_DEVICE, ^ Signed-off-by:

[PATCH] drm/msm/dsi: use correct enum in dsi_get_cmd_fmt

2018-03-19 Thread Stefan Agner
' to different enumeration type 'enum dsi_cmd_dst_format' [-Wenum-conversion] case MIPI_DSI_FMT_RGB666: return VID_DST_FORMAT_RGB666; ~~ ^ Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/gpu/drm/m

[PATCH] drm/msm/dsi: use correct enum in dsi_get_cmd_fmt

2018-03-19 Thread Stefan Agner
' to different enumeration type 'enum dsi_cmd_dst_format' [-Wenum-conversion] case MIPI_DSI_FMT_RGB666: return VID_DST_FORMAT_RGB666; ~~ ^ Signed-off-by: Stefan Agner --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2

[PATCH] drm/tegra: dc: use correct format array for Tegra124.

2018-03-19 Thread Stefan Agner
Use tegra124_(primary|overlay)_formats for Tegra124. Fixes: 511c7023cf23 ("drm/tegra: dc: Support more formats") Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/gpu/drm/tegra/dc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/

[PATCH] drm/tegra: dc: use correct format array for Tegra124.

2018-03-19 Thread Stefan Agner
Use tegra124_(primary|overlay)_formats for Tegra124. Fixes: 511c7023cf23 ("drm/tegra: dc: Support more formats") Signed-off-by: Stefan Agner --- drivers/gpu/drm/tegra/dc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu

[PATCH] kbuild: set no-integrated-as before incl. arch Makefile

2018-03-19 Thread Stefan Agner
In order to make sure compiler flag detection for ARM works correctly the no-integrated-as flags need to be set before including the arch specific Makefile. Fixes: cfe17c9bbe6a ("kbuild: move cc-option and cc-disable-warning after incl. arch Makefile") Signed-off-by: Stefan

[PATCH] kbuild: set no-integrated-as before incl. arch Makefile

2018-03-19 Thread Stefan Agner
In order to make sure compiler flag detection for ARM works correctly the no-integrated-as flags need to be set before including the arch specific Makefile. Fixes: cfe17c9bbe6a ("kbuild: move cc-option and cc-disable-warning after incl. arch Makefile") Signed-off-by: Stefan Agner ---

[PATCH] mm/memblock: cast constant ULLONG_MAX to phys_addr_t

2018-03-18 Thread Stefan Agner
] r->base : ULLONG_MAX; ^~ ./include/linux/kernel.h:30:21: note: expanded from macro 'ULLONG_MAX' #define ULLONG_MAX (~0ULL) ^ Signed-off-by: Stefan Agner <ste...@ag

[PATCH] mm/memblock: cast constant ULLONG_MAX to phys_addr_t

2018-03-18 Thread Stefan Agner
] r->base : ULLONG_MAX; ^~ ./include/linux/kernel.h:30:21: note: expanded from macro 'ULLONG_MAX' #define ULLONG_MAX (~0ULL) ^ Signed-off-by: Stefan Agner --- mm/membloc

Re: kbuild: move cc-option and cc-disable-warning after incl. arch Makefile

2018-03-18 Thread Stefan Agner
Hi Masahiro, On 27.11.2017 13:15, Masahiro Yamada wrote: > Geert reported commit ae6b289a3789 ("kbuild: Set KBUILD_CFLAGS before > incl. arch Makefile") broke cross-compilation using a cross-compiler > that supports less compiler options than the host compiler. > > For example, > > cc1:

Re: kbuild: move cc-option and cc-disable-warning after incl. arch Makefile

2018-03-18 Thread Stefan Agner
Hi Masahiro, On 27.11.2017 13:15, Masahiro Yamada wrote: > Geert reported commit ae6b289a3789 ("kbuild: Set KBUILD_CFLAGS before > incl. arch Makefile") broke cross-compilation using a cross-compiler > that supports less compiler options than the host compiler. > > For example, > > cc1:

[PATCH 2/7] ARM: multi_v7_defconfig: enable thermal driver for i.MX devices

2018-03-18 Thread Stefan Agner
Enable the i.MX thermal driver required for i.MX SoC family. Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 639542

[PATCH 2/7] ARM: multi_v7_defconfig: enable thermal driver for i.MX devices

2018-03-18 Thread Stefan Agner
Enable the i.MX thermal driver required for i.MX SoC family. Signed-off-by: Stefan Agner --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 6395425854cc..608bc85856a1 100644

[PATCH 4/7] ARM: multi_v7_defconfig: add RN5T618 PMIC family support

2018-03-18 Thread Stefan Agner
This allows to successfully boot Colibri iMX7 which is using the Ricoh RN5T567 PMIC. Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/c

[PATCH 4/7] ARM: multi_v7_defconfig: add RN5T618 PMIC family support

2018-03-18 Thread Stefan Agner
This allows to successfully boot Colibri iMX7 which is using the Ricoh RN5T567 PMIC. Signed-off-by: Stefan Agner --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index

[PATCH 6/7] ARM: multi_v7_defconfig: add NXP FlexCAN IP support

2018-03-18 Thread Stefan Agner
Enable FlexCAN support as module by default. FlexCAN can be found on various NXP designs such as the i.MX and Vybrid SoC family. Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/c

[PATCH 3/7] ARM: multi_v7_defconfig: configure I2C driver built-in

2018-03-18 Thread Stefan Agner
PMIC often require the I2C bus, and the PMIC regulators might be necessary to power on eMMC/SD-card or other supplies required for successful boot. Make sure I2C driver for i.MX devices is built-in. Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/multi_v7_defconfig | 2

[PATCH 6/7] ARM: multi_v7_defconfig: add NXP FlexCAN IP support

2018-03-18 Thread Stefan Agner
Enable FlexCAN support as module by default. FlexCAN can be found on various NXP designs such as the i.MX and Vybrid SoC family. Signed-off-by: Stefan Agner --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch

[PATCH 3/7] ARM: multi_v7_defconfig: configure I2C driver built-in

2018-03-18 Thread Stefan Agner
PMIC often require the I2C bus, and the PMIC regulators might be necessary to power on eMMC/SD-card or other supplies required for successful boot. Make sure I2C driver for i.MX devices is built-in. Signed-off-by: Stefan Agner --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1

[PATCH 7/7] ARM: multi_v7_defconfig: add NXP graphics drivers

2018-03-18 Thread Stefan Agner
Enable drivers to support NXP graphics IPs such as: - Etnaviv (e.g. i.MX6) - DCU (e.g. Vybrid LS1021A) - mxsfb (e.g. i.MX6UL/ULL/7) Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/c

[PATCH 7/7] ARM: multi_v7_defconfig: add NXP graphics drivers

2018-03-18 Thread Stefan Agner
Enable drivers to support NXP graphics IPs such as: - Etnaviv (e.g. i.MX6) - DCU (e.g. Vybrid LS1021A) - mxsfb (e.g. i.MX6UL/ULL/7) Signed-off-by: Stefan Agner --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b

[PATCH 5/7] ARM: multi_v7_defconfig: add GPMI NAND controller support

2018-03-18 Thread Stefan Agner
Add GPMI NAND controller support as required by some NXP i.MX6/7 based boards. Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_def

[PATCH 1/7] ARM: multi_v7_defconfig: add OCOTP driver for NXP SoCs

2018-03-18 Thread Stefan Agner
Enable on-chip OTP NVMEM support for NXP i.MX and VF610 SoCs. Since OTP values might be required by drivers required during boot, make sure the driver is built-in (e.g. i.MX thermal driver). Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/multi_v7_defconfig | 2 ++

[PATCH 5/7] ARM: multi_v7_defconfig: add GPMI NAND controller support

2018-03-18 Thread Stefan Agner
Add GPMI NAND controller support as required by some NXP i.MX6/7 based boards. Signed-off-by: Stefan Agner --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 66c32741a130

[PATCH 1/7] ARM: multi_v7_defconfig: add OCOTP driver for NXP SoCs

2018-03-18 Thread Stefan Agner
Enable on-chip OTP NVMEM support for NXP i.MX and VF610 SoCs. Since OTP values might be required by drivers required during boot, make sure the driver is built-in (e.g. i.MX thermal driver). Signed-off-by: Stefan Agner --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions

[PATCH 1/3] ARM: imx_v6_v7_defconfig: add RN5T618 PMIC family support

2018-03-18 Thread Stefan Agner
This allows to successfully boot Colibri iMX7 which is using the Ricoh RN5T567 PMIC. Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/imx_v6_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/c

[PATCH 1/3] ARM: imx_v6_v7_defconfig: add RN5T618 PMIC family support

2018-03-18 Thread Stefan Agner
This allows to successfully boot Colibri iMX7 which is using the Ricoh RN5T567 PMIC. Signed-off-by: Stefan Agner --- arch/arm/configs/imx_v6_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index

[PATCH 2/3] ARM: imx_v6_v7_defconfig: add mwifiex driver

2018-03-18 Thread Stefan Agner
Enable Marvell mwifiex driver which is required to drive the Wi2Wi WM828CC6 wireless module found on Colibri iMX6ULL. Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/imx_v6_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_def

[PATCH 2/3] ARM: imx_v6_v7_defconfig: add mwifiex driver

2018-03-18 Thread Stefan Agner
Enable Marvell mwifiex driver which is required to drive the Wi2Wi WM828CC6 wireless module found on Colibri iMX6ULL. Signed-off-by: Stefan Agner --- arch/arm/configs/imx_v6_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm

[PATCH 3/3] ARM: imx_v6_v7_defconfig: enable Vybrid OCOTP driver

2018-03-18 Thread Stefan Agner
Enable the OCOTP NVMEM driver for Vybrid (vf610) SoCs. Signed-off-by: Stefan Agner <ste...@agner.ch> --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 67db78

[PATCH 3/3] ARM: imx_v6_v7_defconfig: enable Vybrid OCOTP driver

2018-03-18 Thread Stefan Agner
Enable the OCOTP NVMEM driver for Vybrid (vf610) SoCs. Signed-off-by: Stefan Agner --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 67db78f8c9df..6ce94333be5c 100644

Re: [PATCH v2 1/2] mtd: rawnand: gpmi: add support for specific ECC strength

2018-03-15 Thread Stefan Agner
On March 15, 2018 4:36:20 PM GMT+01:00, Boris Brezillon <boris.brezil...@bootlin.com> wrote: >Hi, > >On Sun, 4 Mar 2018 21:06:01 +0100 >Stefan Agner <ste...@agner.ch> wrote: > >> Add support for specified ECC strength/size using device tree >> properti

Re: [PATCH v2 1/2] mtd: rawnand: gpmi: add support for specific ECC strength

2018-03-15 Thread Stefan Agner
On March 15, 2018 4:36:20 PM GMT+01:00, Boris Brezillon wrote: >Hi, > >On Sun, 4 Mar 2018 21:06:01 +0100 >Stefan Agner wrote: > >> Add support for specified ECC strength/size using device tree >> properties nand-ecc-strength/nand-ecc-step-size. > >

[PATCH v2 1/2] mtd: rawnand: gpmi: add support for specific ECC strength

2018-03-04 Thread Stefan Agner
Add support for specified ECC strength/size using device tree properties nand-ecc-strength/nand-ecc-step-size. Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-)

[PATCH v2 1/2] mtd: rawnand: gpmi: add support for specific ECC strength

2018-03-04 Thread Stefan Agner
Add support for specified ECC strength/size using device tree properties nand-ecc-strength/nand-ecc-step-size. Signed-off-by: Stefan Agner --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/drivers/mtd

[PATCH v2 2/2] dt-bindings: mtd: rawnand: gpmi: document specific ECC strength

2018-03-04 Thread Stefan Agner
Document newly supported device tree properties nand-ecc-strength/ nand-ecc-step-size to specify ECC strength/size. Signed-off-by: Stefan Agner <ste...@agner.ch> --- Documentation/devicetree/bindings/mtd/gpmi-nand.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documen

[PATCH v2 2/2] dt-bindings: mtd: rawnand: gpmi: document specific ECC strength

2018-03-04 Thread Stefan Agner
Document newly supported device tree properties nand-ecc-strength/ nand-ecc-step-size to specify ECC strength/size. Signed-off-by: Stefan Agner --- Documentation/devicetree/bindings/mtd/gpmi-nand.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd

[PATCH v4] MAINTAINERS: add Freescale pin controllers

2018-02-20 Thread Stefan Agner
Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer and the Pengutronix kernel team as reviewer. Signed-off-by: Stefan Agner <ste...@agner.ch> Reviewed-by: Fabio Estevam <feste...@gmail.com> Acked-by: Dong Aisheng <aisheng.d...@nxp.com> --- MAINTAINERS | 11 +

[PATCH v4] MAINTAINERS: add Freescale pin controllers

2018-02-20 Thread Stefan Agner
Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer and the Pengutronix kernel team as reviewer. Signed-off-by: Stefan Agner Reviewed-by: Fabio Estevam Acked-by: Dong Aisheng --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b

Re: [PATCH v3] MAINTAINERS: add Freescale pin controllers

2018-02-20 Thread Stefan Agner
On 20.02.2018 23:51, Stefan Agner wrote: > Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer > and the Pengutronix kernel team as reviewer. > > Signed-off-by: Stefan Agner <ste...@agner.ch> > Reviewed-by: Fabio Estevam <feste...@gmail.com> > Ack

Re: [PATCH v3] MAINTAINERS: add Freescale pin controllers

2018-02-20 Thread Stefan Agner
On 20.02.2018 23:51, Stefan Agner wrote: > Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer > and the Pengutronix kernel team as reviewer. > > Signed-off-by: Stefan Agner > Reviewed-by: Fabio Estevam > Acked-by: Dong Aisheng > --- > MAINTAINERS |

[PATCH v3] MAINTAINERS: add Freescale pin controllers

2018-02-20 Thread Stefan Agner
Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer and the Pengutronix kernel team as reviewer. Signed-off-by: Stefan Agner <ste...@agner.ch> Reviewed-by: Fabio Estevam <feste...@gmail.com> Acked-by: Dong Aisheng <aisheng.d...@nxp.com> --- MAINTAINERS | 11 +

[PATCH v3] MAINTAINERS: add Freescale pin controllers

2018-02-20 Thread Stefan Agner
Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer and the Pengutronix kernel team as reviewer. Signed-off-by: Stefan Agner Reviewed-by: Fabio Estevam Acked-by: Dong Aisheng --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b

Re: [PATCH 2/2] mtd: nand: gpmi: add support for specific ECC strength

2018-02-14 Thread Stefan Agner
On 14.02.2018 20:05, Boris Brezillon wrote: > On Wed, 14 Feb 2018 16:28:36 + > Han Xu <han...@nxp.com> wrote: > >> On 02/06/2018 11:40 AM, Stefan Agner wrote: >> > Add support for specified ECC strength/size using device tree >> > properti

<    4   5   6   7   8   9   10   11   12   13   >