[PATCH] Let NET_USB select PHYLIB

2023-03-14 Thread Uwe Kleine-König
ff-by: Uwe Kleine-König --- drivers/net/usb/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/usb/Kconfig b/drivers/net/usb/Kconfig index 870f24ca9661..6dc6a24aee93 100644 --- a/drivers/net/usb/Kconfig +++ b/drivers/net/usb/Kconfig @@ -1,12 +1,12 @@ # SP

[PATCH] imx-usb-loader: Don't try to transfer more data than contained in the image

2023-03-15 Thread Uwe Kleine-König
via USB on i.MX25 that ends in dl_command err=-1, last_trans=0 Fixes: 3367ebc55ebe ("scripts: imx-usb-loader: simplify code flow for file size calculations") Signed-off-by: Uwe Kleine-König --- scripts/imx/imx-usb-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] hush: Fix a memory leak in run_command()

2023-04-12 Thread Uwe Kleine-König
Hello, On Thu, Jul 14, 2022 at 06:41:18PM +0200, Uwe Kleine-König wrote: > parse_string_outer() calls initialize_context(), too. As the latter > allocates memory make sure to only call it once. > > This fixes > > automount -d /mnt/foo true > ls -l /mnt/foo >

Re: [PATCH master] imx-usb-loader: Don't try to verify more data than contained in the image

2023-05-23 Thread Uwe Kleine-König
w4 in err=-7, > last_trans=0 00 00 00 00 > !!perform_dcd returned -7 > 4 in err=-7, last_trans=0 00 00 00 00 > > Applying the same fix as in 3cf4bcd86419 fixes this issue as well. > > Fixes: 3367ebc55ebe ("scripts: imx-usb-loader: simplify cod

Re: [PATCH 1/2] sandbox: env: set nv.autoboot=abort to drop to shell

2021-04-07 Thread Uwe Kleine-König
is to drop to shell. Do so. > Users can still override nv.autoboot if they want to boot differently. > > Signed-off-by: Ahmad Fatoum Acked-by: Uwe Kleine-König Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solu

Re: [PATCH] scripts/spdxcheck.py: Use Python 3

2021-04-27 Thread Uwe Kleine-König
hon 3 > > > >Python 2.x has been officially EOL'ed for some time, and in any case > >the git module for it is hard to come by. > > Signed-off-by: Antony Pavlov Acked-by: Uwe Kleine-König Best regards Uwe -- Pengutronix e.K.

[PATCH] arm/mvebu: sync barebox-arm-head.h to generic variant

2021-05-18 Thread Uwe Kleine-König
En passant this adds support for PBL_BREAK. While there is no 64 bit support available for mvebu, keeping the difference between arch/arm/mach-mvebu/include/mach/barebox-arm-head.h and arch/arm/include/asm/barebox-arm-head.h minimal is a good thing. Signed-off-by: Uwe Kleine-König

Re: [PATCH v2] usb: i.MX: warn if vbus regulator isn't available

2021-05-22 Thread Uwe Kleine-König
Hello, On Fri, Mar 05, 2021 at 10:00:01AM +0100, Uwe Kleine-König wrote: > Instead of just ignoring errors related to getting the vbus regulator > yield at least a warning message. This would have saved me some > debugging time when trying to understand why USB doesn't work witho

[PATCH] arm: imx: Replace license and copyright boilerplate by SPDX identifiers

2021-05-22 Thread Uwe Kleine-König
Converts the files that licensecheck can determine to be licensed under GPL-2.0-only or GPL-2.0-or-later and also convert their copyright statements to SPDX. Signed-off-by: Uwe Kleine-König --- arch/arm/mach-imx/boot.c | 13 + arch/arm/mach-imx/cpu_init.c

[PATCH] fs: nfs: Decrease NFS timeout

2021-05-26 Thread Uwe Kleine-König
nsfer takes 137s. With the timeout reduced to 0.1s the transfer time is not optimal (going down to approx 15 seconds) but at least it becomes bearable. Signed-off-by: Uwe Kleine-König --- fs/nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs.c b/fs/nfs.c

[PATCH v2] fs: nfs: Start earlier to resend requests

2021-06-11 Thread Uwe Kleine-König
which defines the overall timeout before aborting the transfer) constant. Signed-off-by: Uwe Kleine-König --- fs/nfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs.c b/fs/nfs.c index 1130632eb3eb..057641edc8c3 100644 --- a/fs/nfs.c +++ b/fs/nfs.c @@ -119,8 +

[PATCH] w1: Replace license and copyright boilerplate by SPDX identifiers

2021-06-22 Thread Uwe Kleine-König
Converts the files that licensecheck can determine to be licensed under GPL-2.0-only or GPL-2.0-or-later and also convert their copyright statements to SPDX. Signed-off-by: Uwe Kleine-König --- drivers/w1/masters/w1-gpio.c | 15 +-- drivers/w1/slaves/w1_ds2431.c | 10

[PATCH v2] arm/mvebu: sync barebox-arm-head.h to generic variant

2021-07-30 Thread Uwe Kleine-König
En passant this adds support for PBL_BREAK. While there is no 64 bit support available for mvebu, keeping the difference between arch/arm/mach-mvebu/include/mach/barebox-arm-head.h and arch/arm/include/asm/barebox-arm-head.h minimal is a good thing. Signed-off-by: Uwe Kleine-König --- Changes in

[PATCH] arm: mxs: Replace license and copyright boilerplate by SPDX identifiers

2021-07-30 Thread Uwe Kleine-König
Converts the files that licensecheck can determine to be licensed under GPL-2.0-only or GPL-2.0-or-later and also convert their copyright statements to SPDX. Signed-off-by: Uwe Kleine-König --- arch/arm/mach-mxs/bcb.c | 10 +++--- arch/arm/mach-mxs/clocksource-imx23.c

[PATCH 1/2] arm/mvebu: sync barebox-arm-head.h to generic variant

2021-08-05 Thread Uwe Kleine-König
En passant this adds support for PBL_BREAK. While there is no 64 bit support available for mvebu, keeping the difference between arch/arm/mach-mvebu/include/mach/barebox-arm-head.h and arch/arm/include/asm/barebox-arm-head.h minimal is a good thing. Signed-off-by: Uwe Kleine-König --- Changes in

[PATCH 2/2] imx-usb-loader: Add support for i.MX8MP

2021-08-05 Thread Uwe Kleine-König
From: Uwe Kleine-Koenig The i.MX8MP uses a protocol similar to the MXS. The relevant differences are: - Maximal transfer size is 1020 - HID reports must be sent to EP1 instead of using a control transfer - The FW_DOWNLOAD command must not be send. Signed-off-by: Uwe Kleine-Koenig --- scrip

[PATCH 2/2] arm: mxs: Replace license and copyright boilerplate by SPDX identifiers

2021-08-05 Thread Uwe Kleine-König
Converts the files that licensecheck can determine to be licensed under GPL-2.0-only or GPL-2.0-or-later and also convert their copyright statements to SPDX. Signed-off-by: Uwe Kleine-König --- arch/arm/mach-mxs/bcb.c | 10 +++--- arch/arm/mach-mxs/clocksource-imx23.c

[PATCH 1/2] imx-usb-loader: Drop nearly unused struct usb_id

2021-08-05 Thread Uwe Kleine-König
From: Uwe Kleine-Koenig Only one of the two members of struct usb_id is actually used. So replace struct usb_id by a struct mach_id. Signed-off-by: Uwe Kleine-Koenig --- scripts/imx/imx-usb-loader.c | 51 1 file changed, 17 insertions(+), 34 deletions(-) d

Re: [PATCH 1/2] arm/mvebu: sync barebox-arm-head.h to generic variant

2021-08-06 Thread Uwe Kleine-König
Hello, please disregard this series. The patches are already on the list in their own threads. This was just me git-send-emailing the wrong branch ... Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions

[PATCH] mci: imx-esdhc-pbl: Fix two typos in a comment

2021-08-13 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König --- drivers/mci/imx-esdhc-pbl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mci/imx-esdhc-pbl.c b/drivers/mci/imx-esdhc-pbl.c index d7136f54922c..b253673dfe1d 100644 --- a/drivers/mci/imx-esdhc-pbl.c +++ b/drivers/mci/imx-esdhc

[PATCH v2 0/3] Support usb booting on i.MX8MP

2021-08-13 Thread Uwe Kleine-König
t mode "USB Serial Download boot". I stuck to BOOTSOURCE_SERIAL here for consistency. If it's not only me who would consider using BOOTSOURCE_USB instead a fix this should be changed consistently for all i.MX platforms. Ahmad pointed out that this might break barebox shell scripts.

[PATCH v2 3/3] imx-usb-loader: Add support for i.MX8MP

2021-08-13 Thread Uwe Kleine-König
The i.MX8MP uses a protocol similar to the MXS. The relevant differences are: - Maximal transfer size is 1020 - HID reports must be sent to EP1 instead of using a control transfer - The FW_DOWNLOAD command must not be send. - The image to upload must start with the IVT header (usually at offse

[PATCH v2 1/3] imx8mp-evk: Add support for booting via USB

2021-08-13 Thread Uwe Kleine-König
--- arch/arm/boards/nxp-imx8mp-evk/lowlevel.c | 27 +++ arch/arm/mach-imx/boot.c | 4 +++- include/asm-generic/sections.h| 1 + 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/nxp-imx8mp-evk/lowlevel.c b/arch/arm/bo

[PATCH v2 2/3] imx-usb-loader: Drop nearly unused struct usb_id

2021-08-13 Thread Uwe Kleine-König
Only one of the two members of struct usb_id is actually used. So replace struct usb_id by a struct mach_id. Signed-off-by: Uwe Kleine-Koenig --- scripts/imx/imx-usb-loader.c | 51 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/scripts/imx/im

[PATCH] mci: Improve error message for non-existent vmmc regulator

2021-09-14 Thread Uwe Kleine-König
cm2835_mci fe34@7e34.of: Failed to get 'vmmc' regulator (ignored). on a Raspberry Pi 4. Signed-off-by: Uwe Kleine-König --- drivers/mci/mci-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.

[PATCH] arm64: Don't truncate upper 32 bits in ENTRY_FUNCTION arg registers

2021-09-16 Thread Uwe Kleine-König
From: Ahmad Fatoum Use a long instead of an u32. For 32-bit arm there is no difference, for arm64 this results in being able to use the whole register size of 64 bits. Signed-off-by: Ahmad Fatoum Signed-off-by: Uwe Kleine-König --- arch/arm/include/asm/barebox-arm.h | 8 1 file

[PATCH 1/2] mci-bcm2835: Don't block infinitely while waiting for a command completion

2021-09-16 Thread Uwe Kleine-König
Instead abort with a timeout error. This prevents getting a hung barebox when a command doesn't complete. Signed-off-by: Uwe Kleine-König --- drivers/mci/mci-bcm2835.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c

[PATCH 2/2] mci-bcm2835: Fix return type handling of bcm2835_mci_wait_command_done()

2021-09-16 Thread Uwe Kleine-König
The function returns a negative value in a code path and the return value is used as a return value for another functions returning int, too. So change the value to int (and the variable holding the return value, too). Signed-off-by: Uwe Kleine-König --- drivers/mci/mci-bcm2835.c | 5 +++-- 1

Re: [PATCH v2] ARM: document arm_setup_stack() pitfalls

2021-09-16 Thread Uwe Kleine-König
ction. > + */ > static inline void arm_setup_stack(unsigned long top) > { > + if (IS_ENABLED(CONFIG_CPU_V8)) { For configs that have CONFIG_CPU_V8 and CONFIG_CPU_V7 it might be legal to call arm_setup_stack when running on a v7 SoC. Not sure how relevant this is though, maybe

[PATCH 1/2] pinctrl: bcm2835: Probe driver earlier

2021-09-17 Thread Uwe Kleine-König
From: Ahmad Fatoum coredevice is too late for the console driver and all other pinctrl drivers are using "core", too. Signed-off-by: Uwe Kleine-König --- drivers/pinctrl/pinctrl-bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-bc

[PATCH 2/2] pinctrl: bcm2835: Add support for bcm2711

2021-09-17 Thread Uwe Kleine-König
From: Ahmad Fatoum bcm2711-rpi-4-b.dts lists 58 gpio names and the linux driver also uses 58 GPIOs for bcm2711. Signed-off-by: Uwe Kleine-König --- drivers/pinctrl/pinctrl-bcm2835.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl

[PATCH] scripts/kwboot: Fix normalizing timeval

2021-11-30 Thread Uwe Kleine-König
If tv.tv_usec is 100 the structure needs normalizing, too. So the right check would be: if (tv.tv_usec >= 100) { ... But as normalizing doesn't destroy anything even for smaller values, just do it unconditionally to simplify a bit. Signed-off-by: Uwe Klei

[PATCH] rpi wip

2021-11-30 Thread Uwe Kleine-König
--- arch/arm/boards/raspberry-pi/Makefile | 1 + arch/arm/boards/raspberry-pi/lowlevel.c | 11 ++ arch/arm/boards/raspberry-pi/rpi-common.c | 13 arch/arm/cpu/board-dt-2nd-aarch64.S | 2 +- arch/arm/cpu/board-dt-2nd.c | 3 +++ a

Re: [PATCH] rpi wip

2021-11-30 Thread Uwe Kleine-König
Hello, I picked the wrong patch to send out, please just ignore this patch. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | https://www.pengutronix.de/ | signature.asc Description: PGP signature

[PATCH] mci: bcm2835: Don't send MMC_CMD_GO_IDLE_STATE at the end of .init()

2021-11-30 Thread Uwe Kleine-König
transfer. Signed-off-by: Uwe Kleine-König --- drivers/mci/mci-bcm2835.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c index 4913dc27f8a3..10f588930cda 100644 --- a/drivers/mci/mci-bcm2835.c +++ b/drivers/mci/mci

[PATCH] arm: mvebu: Replace license and copyright boilerplate by SPDX identifiers

2021-12-30 Thread Uwe Kleine-König
Converts the files that licensecheck can determine to be licensed under GPL-2.0-only or GPL-2.0-or-later and also convert their copyright statements to SPDX. Signed-off-by: Uwe Kleine-König --- arch/arm/mach-mvebu/armada-370-xp.c | 17 ++--- arch/arm/mach-mvebu/common.c

Re: [PATCH 11/11] treewide: add SPDX-License-Identifier for files without explicit license

2022-01-03 Thread Uwe Kleine-König
@ > #!/bin/awk > # > +# SPDX-License-Identifier: GPL-2.0-only > +# I would prefer to have the license identifier in the 2nd line. Not sure what the standard tells, but ISTR that in Linux the is no "empty" line, too. Otherwise thanks for your effort, Uwe -- Pengutronix e.K.

Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers

2020-05-20 Thread Uwe Kleine-König
Hello, On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote: > On 5/19/20 6:52 PM, Uwe Kleine-König wrote: > > This adapts all files that were identifed by licensecheck > > (https://salsa.debian.org/build-common-team/licensecheck.git) as > > licensed under the GPL

Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers

2020-05-20 Thread Uwe Kleine-König
Hallo Ahmad, On Wed, May 20, 2020 at 04:59:21PM +0200, Ahmad Fatoum wrote: > On 5/20/20 3:59 PM, Uwe Kleine-König wrote: > > Hello, > > > > On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote: > >> On 5/19/20 6:52 PM, Uwe Kleine-König wrote: > &g

Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers

2020-05-22 Thread Uwe Kleine-König
Hello Roland, On Fri, May 22, 2020 at 02:55:56PM +0200, Roland Hieber wrote: > On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote: > > On 5/19/20 6:52 PM, Uwe Kleine-König wrote: > > > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c > > > index

Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers

2020-05-23 Thread Uwe Kleine-König
Hello Sascha, hello Roland, On Sat, May 23, 2020 at 04:16:12PM +0200, Roland Hieber wrote: > On Fri, May 22, 2020 at 03:17:59PM +0200, Uwe Kleine-König wrote: > > Hello Roland, > > > > On Fri, May 22, 2020 at 02:55:56PM +0200, Roland Hieber wrote: > > > On Wed, Ma

Re: [PATCH] arch/arm/boards: Replace license and copyright boilerplate by SPDX identfiers

2020-05-25 Thread Uwe Kleine-König
On Sat, May 23, 2020 at 05:00:07PM +0200, Roland Hieber wrote: > On Tue, Apr 28, 2020 at 03:24:05PM +0200, Uwe Kleine-König wrote: > > This adapts all files that were identifed by licensecheck > > (https://salsa.debian.org/build-common-team/licensecheck.git) as > > l

[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 +--- common

Re: [PATCH] arch/arm/boards: Replace license and copyright boilerplate by SPDX identfiers

2020-07-01 Thread Uwe Kleine-König
Hello Andrey, On Tue, May 19, 2020 at 09:49:36PM +0200, Uwe Kleine-König wrote: > On Tue, May 19, 2020 at 06:37:33PM +0200, Uwe Kleine-König wrote: > > This adapts all files that were identifed by licensecheck > > (https://salsa.debian.org/build-common-team/licensecheck.git) as >

[PATCH 1/2] arm/boards: Replace license boilerplate by SPDX identfiers

2020-07-01 Thread Uwe Kleine-König
gs. While touching these files also do some minor comment reformatting to get some uniform layout. Signed-off-by: Uwe Kleine-König --- arch/arm/boards/embedsky-e9/board.c | 12 ++-- .../boards/eukrea_cpuimx27/eukrea_cpuimx27.c| 14 ++ .../boards/eukre

[PATCH 2/2] arm/cpu: Replace license and copyright boilerplate by SPDX identfiers

2020-07-01 Thread Uwe Kleine-König
This adapts all files that were identifed by licensecheck (https://salsa.debian.org/build-common-team/licensecheck.git) as licensed under the GPL. While touching these files also do some minor comment reformatting to get some uniform layout. Signed-off-by: Uwe Kleine-König --- arch/arm/cpu

Re: [PATCH 2/2] arm/cpu: Replace license and copyright boilerplate by SPDX identfiers

2020-07-02 Thread Uwe Kleine-König
Hello Ahmad, On Thu, Jul 02, 2020 at 10:23:16AM +0200, Ahmad Fatoum wrote: > On 7/1/20 10:11 PM, Uwe Kleine-König wrote: > > diff --git a/arch/arm/cpu/interrupts.c b/arch/arm/cpu/interrupts.c > > index 703a5a3ba706..a1728eb353c8 100644 > > --- a/arch/arm/cpu/interrupts.c &

[PATCH v2 2/2] arm/cpu: Replace license and copyright boilerplate by SPDX identfiers

2020-07-02 Thread Uwe Kleine-König
This adapts all files that were identifed by licensecheck (https://salsa.debian.org/build-common-team/licensecheck.git) as licensed under the GPL. While touching these files also do some minor comment reformatting to get some uniform layout. Signed-off-by: Uwe Kleine-König --- arch/arm/cpu

[PATCH v2 1/2] arm/boards: Replace license boilerplate by SPDX identfiers

2020-07-02 Thread Uwe Kleine-König
gs. While touching these files also do some minor comment reformatting to get some uniform layout. Reviewed-by: Ahmad Fatoum Signed-off-by: Uwe Kleine-König --- arch/arm/boards/embedsky-e9/board.c | 12 ++-- .../boards/eukrea_cpuimx27/eukrea_cpuimx27.c| 14 ++

[PATCH] arch/arm/include: Convert to SPDX-License and -Copyright specifiers

2020-07-08 Thread Uwe Kleine-König
Converts the files that licensecheck can determine the license for. Also convert to obvious right Copyright statements. Additionally some minor code reformatting is done. Signed-off-by: Uwe Kleine-König --- arch/arm/include/asm/assembler.h| 9 +++-- arch/arm/include/asm/barebox

[PATCH] treewide: Convert files covered by ARM copyright to SPDX

2020-07-08 Thread Uwe Kleine-König
According to Marc Zyngier, former employee at ARM, the company owns the copyright for code created by its employees. Convert accordingly to SPDX with the usual rearrangements. Also dropped Marc's email address which doesn't work any more. Signed-off-by: Uwe Kleine-König --- arch/arm/i

[PATCH] arch/arm/lib64: Convert to SPDX-License and -Copyright specifiers

2020-07-10 Thread Uwe Kleine-König
Converts the files that licensecheck can determine the license for. Also convert to obvious right Copyright statements. Additionally some minor code reformatting is done. Signed-off-by: Uwe Kleine-König --- arch/arm/lib64/armlinux.c| 14 ++ arch/arm/lib64/barebox.lds.S | 18

[PATCH v2 1/4] fixup! arm/boards: Replace license boilerplate by SPDX identfiers

2020-07-10 Thread Uwe Kleine-König
--- arch/arm/boards/phytec-phycore-pxa270/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boards/phytec-phycore-pxa270/config.h b/arch/arm/boards/phytec-phycore-pxa270/config.h index c630befcb8b3..6aba53edea22 100644 --- a/arch/arm/boards/phytec-phycore-pxa27

[PATCH v2 0/4] SPDX conversions

2020-07-10 Thread Uwe Kleine-König
Hello, I collected all pending SPDX patches in a series and used /* */ comments for headers and assembler files now as Ahmad requested. There is one fixup for a patch that Sascha already applied to next. Best regards Uwe Uwe Kleine-König (4): fixup! arm/boards: Replace license boilerplate by

[PATCH v2 3/4] treewide: Convert files covered by ARM copyright to SPDX

2020-07-10 Thread Uwe Kleine-König
According to Marc Zyngier, former employee at ARM, the company owns the copyright for code created by its employees. Convert accordingly to SPDX with the usual rearrangements. Also dropped Marc's email address which doesn't work any more. Signed-off-by: Uwe Kleine-König --- arch/arm/i

[PATCH v2 4/4] arch/arm/lib64: Convert to SPDX-License and -Copyright specifiers

2020-07-10 Thread Uwe Kleine-König
Converts the files that licensecheck can determine the license for. Also convert to obvious right Copyright statements. Additionally some minor code reformatting is done. Signed-off-by: Uwe Kleine-König --- arch/arm/lib64/armlinux.c| 14 ++ arch/arm/lib64/barebox.lds.S | 18

[PATCH v2 2/4] arch/arm/include: Convert to SPDX-License and -Copyright specifiers

2020-07-10 Thread Uwe Kleine-König
Converts the files that licensecheck can determine the license for. Also convert to obvious right Copyright statements. Additionally some minor code reformatting is done. Signed-off-by: Uwe Kleine-König --- arch/arm/include/asm/assembler.h| 9 +++-- arch/arm/include/asm/barebox

[PATCH] arm/cpu/*.S: Replace license and copyright boilerplate by SPDX identfiers

2020-09-14 Thread Uwe Kleine-König
Since commit ed2f892a1ba7 ("arm/cpu: Replace license and copyright boilerplate by SPDX identfiers") my script learned to detect .S files, too. Signed-off-by: Uwe Kleine-König --- arch/arm/cpu/smccc-call.S| 16 +++- arch/arm/cpu/smccc-call_64.S | 16 +++

Re: [PATCH] fixup! arm/cpu/*.S: Replace license and copyright boilerplate by SPDX identfiers

2020-09-14 Thread Uwe Kleine-König
On Mon, Sep 14, 2020 at 10:31:15PM +0200, Ahmad Fatoum wrote: > Fix unterminated comment block. > > Cc: Uwe Kleine-König > Signed-off-by: Ahmad Fatoum Looks right, thanks for spotting (or sorry for breaking the build for you). Best regards Uwe -- Pen

[PATCH] scripts/kwbimage: Fix a build warning

2020-09-15 Thread Uwe Kleine-König
This fixes: scripts/kwbimage.c:253:5: warning: no previous prototype for ‘image_nand_ecc_mode_id’ [-Wmissing-prototypes] Signed-off-by: Uwe Kleine-König --- scripts/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kwbimage.c b/scripts/kwbimage.c

[PATCH] scripts/imx-usb-loader: Drop duplicate definition of ALIGN

2020-09-15 Thread Uwe Kleine-König
the previous definition #define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1) Fixes: a876d16e6ad3 ("scripts: define ALIGN(x) in scripts' ") Signed-off-by: Uwe Kleine-König --- scripts/imx/imx-usb-loader.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/i

[PATCH 6/7] scripts/imx-image: relicense to allow distribution of binary linked with OpenSSL

2020-09-15 Thread Uwe Kleine-König
. Cc: Ahmad Fatoum Cc: Alexander Kurz Cc: Andrey Smirnov Cc: Bastian Krause Cc: Eric Bénard Cc: Lucas Stach Cc: Marcin Niestroj Cc: Marc Kleine-Budde Cc: Rouven Czerwinski Cc: Sascha Hauer Signed-off-by: Uwe Kleine-König --- scripts/imx/imx-image.c | 2 +- 1 file changed, 1 insertion

[PATCH 0/7] Relicense GPL programs for compatibility with OpenSSL

2020-09-15 Thread Uwe Kleine-König
this exception does no further harm. Uwe Kleine-König (7): scripts/spdxcheck: fix usage of non-existing variables LICENSES: add used licenses to make spdxcheck happy scripts: convert imx-image and mxsimage to SPDX LICENSES: add OpenSSL exception scripts/rsatoc: relicense to allow distrib

[PATCH 4/7] LICENSES: add OpenSSL exception

2020-09-15 Thread Uwe Kleine-König
igned-off-by: Uwe Kleine-König --- LICENSES/exceptions/OpenSSL-exception | 12 1 file changed, 12 insertions(+) create mode 100644 LICENSES/exceptions/OpenSSL-exception diff --git a/LICENSES/exceptions/OpenSSL-exception b/LICENSES/exceptions/OpenSSL-exception new file mode 100644

[PATCH 3/7] scripts: convert imx-image and mxsimage to SPDX

2020-09-15 Thread Uwe Kleine-König
To simplify automatic license and copyright determination use SPDX tags and remove the license boiler plate. Signed-off-by: Uwe Kleine-König --- scripts/imx/imx-image.c | 17 +++-- scripts/mxsimage.c | 11 --- 2 files changed, 7 insertions(+), 21 deletions(-) diff

[PATCH 5/7] scripts/rsatoc: relicense to allow distribution of binary linked with OpenSSL

2020-09-15 Thread Uwe Kleine-König
. Cc: Sascha Hauer Signed-off-by: Uwe Kleine-König --- scripts/rsatoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rsatoc.c b/scripts/rsatoc.c index 8f2eb8fdedc9..142d71b89f9a 100644 --- a/scripts/rsatoc.c +++ b/scripts/rsatoc.c @@ -1,4 +1,4 @@ -// SPDX-License

[PATCH 1/7] scripts/spdxcheck: fix usage of non-existing variables

2020-09-15 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König --- scripts/spdxcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py index 723bfa4ebf77..7e08c6e4136e 100755 --- a/scripts/spdxcheck.py +++ b/scripts/spdxcheck.py @@ -58,13 +58,13 @@ def

[PATCH 7/7] scripts/mxsimage: relicense to allow distribution of binary linked with OpenSSL

2020-09-15 Thread Uwe Kleine-König
. Cc: Marek Vasut Cc: Sascha Hauer Signed-off-by: Uwe Kleine-König --- scripts/mxsimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mxsimage.c b/scripts/mxsimage.c index 91b467738470..0630762f3f98 100644 --- a/scripts/mxsimage.c +++ b/scripts/mxsimage.c @@ -1,4

[PATCH 2/7] LICENSES: add used licenses to make spdxcheck happy

2020-09-15 Thread Uwe Kleine-König
These are copied verbatim from the Linux kernel (5.9-rc3). From the Linux-syscall-note exception a few items had to be removed from the SPDX-Licenses: list to make spdxcheck happy. Signed-off-by: Uwe Kleine-König --- LICENSES/deprecated/ISC| 24 ++ LICENSES/deprecated/X11

Re: [PATCH 2/7] LICENSES: add used licenses to make spdxcheck happy

2020-09-16 Thread Uwe Kleine-König
Hello Roland, On Wed, Sep 16, 2020 at 10:43:29AM +0200, Roland Hieber wrote: > On Tue, Sep 15, 2020 at 10:54:12PM +0200, Uwe Kleine-König wrote: > > These are copied verbatim from the Linux kernel (5.9-rc3). From the > > Linux-syscall-note exception a few items had to be removed fr

[PATCH 1/4] imx/esdctl: reorder some function declarations to be sorted by SoC

2020-09-17 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König --- arch/arm/mach-imx/include/mach/esdctl.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/include/mach/esdctl.h b/arch/arm/mach-imx/include/mach/esdctl.h index e6bbc3145a4e..8073b7f40937 100644 --- a/arch/arm/mach

[PATCH 2/4] imx/esdctl: Define new helper macros to reduce board entry boilerplate

2020-09-17 Thread Uwe Kleine-König
The macro provides the extern declaration of the devicetree variable, calls IMD_USED_OF to add metadata to the resulting barebox image and then calls the right entry function. Signed-off-by: Uwe Kleine-König --- arch/arm/mach-imx/include/mach/esdctl.h | 21 + 1 file changed

[PATCH 3/4] arm/boards: Convert a few boards to the new entry macros

2020-09-17 Thread Uwe Kleine-König
Some boards don't add get_runtime_offset() to the device tree address, while the now used macro does it. This is ok as get_runtime_offset() returns 0 after relocate_to_current_adr(). Signed-off-by: Uwe Kleine-König --- arch/arm/boards/ac-sxb/lowlevel.c | 4 +-- arch/arm/b

[PATCH 4/4] arm/boards: Add IMD_USED_OF for a few boards

2020-09-17 Thread Uwe Kleine-König
Not all boards can make use of the helper macros introduced in the previous commits, for these add an explicit call to IMD_USED_OF to add meta data to the barebox image. Signed-off-by: Uwe Kleine-König --- arch/arm/boards/embest-riotboard/lowlevel.c | 1 + arch/arm/boards/technexion

Re: [PATCH 7/7] scripts/mxsimage: relicense to allow distribution of binary linked with OpenSSL

2020-09-17 Thread Uwe Kleine-König
On Tue, Sep 15, 2020 at 11:31:17PM +0200, Marek Vasut wrote: > On 9/15/20 10:54 PM, Uwe Kleine-König wrote: > > The GPL (both, versions 2 and 3) are incompatible with the OpenSSL > > license. According to the Free Software Foundation the copyright > > holders of GPL softwa

[PATCH v2 0/7] Relicense GPL programs for compatibility with OpenSSL

2020-09-18 Thread Uwe Kleine-König
isn't working any more. Tried to contact via other means, no feedback yet. [1] I'm not a lawyer but I know that software distributed by Debian requires this. Uwe Kleine-König (7): scripts/spdxcheck: fix usage of non-existing variables LICENSES: add used licenses to make spdxc

[PATCH v2 3/7] scripts: convert imx-image and mxsimage to SPDX

2020-09-18 Thread Uwe Kleine-König
To simplify automatic license and copyright determination use SPDX tags and remove the license boiler plate. Reviewed-by: Roland Hieber Signed-off-by: Uwe Kleine-König --- scripts/imx/imx-image.c | 17 +++-- scripts/mxsimage.c | 11 --- 2 files changed, 7 insertions

[PATCH v2 7/7] scripts/mxsimage: relicense to allow distribution of binary linked with OpenSSL

2020-09-18 Thread Uwe Kleine-König
. Acked-by: Marek Vasut Cc: Sascha Hauer Signed-off-by: Uwe Kleine-König --- scripts/mxsimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mxsimage.c b/scripts/mxsimage.c index 91b467738470..81507d19245b 100644 --- a/scripts/mxsimage.c +++ b/scripts/mxsimage.c

[PATCH v2 5/7] scripts/rsatoc: relicense to allow distribution of binary linked with OpenSSL

2020-09-18 Thread Uwe Kleine-König
. Acked-by: Marc Kleine-Budde Cc: Sascha Hauer Signed-off-by: Uwe Kleine-König --- scripts/rsatoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rsatoc.c b/scripts/rsatoc.c index 8f2eb8fdedc9..f2d91b8e0d70 100644 --- a/scripts/rsatoc.c +++ b/scripts/rsatoc.c @@ -1,4

[PATCH v2 1/7] scripts/spdxcheck: fix usage of non-existing variables

2020-09-18 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König --- scripts/spdxcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py index 723bfa4ebf77..7e08c6e4136e 100755 --- a/scripts/spdxcheck.py +++ b/scripts/spdxcheck.py @@ -58,13 +58,13 @@ def

[PATCH v2 4/7] LICENSES: add OpenSSL exception

2020-09-18 Thread Uwe Kleine-König
igned-off-by: Uwe Kleine-König --- LICENSES/exceptions/LicenseRef-OpenSSL-exception | 12 1 file changed, 12 insertions(+) create mode 100644 LICENSES/exceptions/LicenseRef-OpenSSL-exception diff --git a/LICENSES/exceptions/LicenseRef-OpenSSL-exception b/LICENSES/exceptions/Licen

[PATCH v2 2/7] LICENSES: add used licenses to make spdxcheck happy

2020-09-18 Thread Uwe Kleine-König
the LGPL-2.1-or-later file, this license is handled in the LGPL-2.1 file. Signed-off-by: Uwe Kleine-König --- LICENSES/deprecated/ISC| 24 ++ LICENSES/deprecated/X11| 37 ++ LICENSES/dual/Apache-2.0 | 187 + LICENSES/exceptions/Linux-syscall

[PATCH v2 6/7] scripts/imx-image: relicense to allow distribution of binary linked with OpenSSL

2020-09-18 Thread Uwe Kleine-König
. Acked-by: Ahmad Fatoum Cc: Alexander Kurz Cc: Andrey Smirnov Acked-by: Bastian Krause Cc: Lucas Stach Cc: Marcin Niestroj Acked-by: Marc Kleine-Budde Acked-by: Rouven Czerwinski Cc: Sascha Hauer Signed-off-by: Uwe Kleine-König --- scripts/imx/imx-image.c | 2 +- 1 file changed, 1

[PATCH] arch/x86: Replace license and copyright boilerplate by SPDX identfiers

2020-09-18 Thread Uwe Kleine-König
Converts the files that licensecheck can determine the license for. Additionally some minor code reformatting is done. Signed-off-by: Uwe Kleine-König --- arch/x86/bios/bios_disk.S | 23 --- arch/x86/bios/memory16.S | 21

[PATCH 1/2] Regenerate defconfig files

2020-09-18 Thread Uwe Kleine-König
Done with the same script used to generate commit d952a0eeba37 ("Regenerate defconfig files"). Signed-off-by: Uwe Kleine-König --- arch/arm/configs/at91sam9263ek_defconfig | 1 - arch/arm/configs/at91sam9x5ek_defconfig | 1 - arch/arm/configs/freescale-mx21-ads

[PATCH 2/2] x86/config/efi: drop DRIVER_SERIAL_NS16550

2020-09-18 Thread Uwe Kleine-König
For most machines having DRIVER_SERIAL_NS16550 and DRIVER_SERIAL_EFI_STDIO both enabled results in the output appearing twice on the serial output. So remove disable the lowlevel driver and rely on the EFI bios for serial. Signed-off-by: Uwe Kleine-König --- arch/x86/configs/efi_defconfig | 1

[PATCH] scripts/dtc: only append to HOST_EXTRACFLAGS instead of overwriting

2020-09-29 Thread Uwe Kleine-König
value to the HOST_EXTRACFLAGS instead of appending to it. So use += instead of := for the first assignment. Signed-off-by: Uwe Kleine-König --- scripts/dtc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index 06a265c

Re: [PATCH 2/2] x86/config/efi: drop DRIVER_SERIAL_NS16550

2020-10-20 Thread Uwe Kleine-König
On Tue, Oct 20, 2020 at 07:08:47AM +0200, Ahmad Fatoum wrote: > Hello Uwe, > > On 9/18/20 1:04 PM, Uwe Kleine-König wrote: > > For most machines having DRIVER_SERIAL_NS16550 and DRIVER_SERIAL_EFI_STDIO > > both enabled results in the output appearing twice on the serial

[PATCH] mfd: mc34704: fix register reading

2020-10-20 Thread Uwe Kleine-König
According to the data sheet (MC34704 Rev. 8.0, 12/2014) must always have the MSB set in the "Sub-address" byte for reads. This fixes reading out registers on a MC34704AEP chip. Fixes: 514387711f2d ("i2c: add driver for the MC34704 PMIC") Signed-off-by: Uwe Kleine-König ---

[PATCH] usb: i.MX: improve regulator handling

2020-10-20 Thread Uwe Kleine-König
Instead of just ignoring errors related to regulator getting error out. In case there is no regulator in the device tree, regulator_get() returns the dummy regulator and not an error code, so the change is right for this situation, too. Signed-off-by: Uwe Kleine-König --- drivers/usb/imx

Re: [PATCH] usb: i.MX: improve regulator handling

2020-10-20 Thread Uwe Kleine-König
On Tue, Oct 20, 2020 at 04:58:44PM +0200, Marco Felsch wrote: > On 20-10-20 16:28, Marco Felsch wrote: > > On 20-10-20 16:09, Sascha Hauer wrote: > > > On Tue, Oct 20, 2020 at 03:33:17PM +0200, Marco Felsch wrote: > > > > Hi Uwe, > > > > > &g

Re: [PATCH] usb: i.MX: improve regulator handling

2020-10-21 Thread Uwe Kleine-König
On Wed, Oct 21, 2020 at 12:05:48PM +0200, Sascha Hauer wrote: > On Tue, Oct 20, 2020 at 01:15:37PM +0200, Uwe Kleine-König wrote: > > Instead of just ignoring errors related to regulator getting error out. > > In case there is no regulator in the device tree, regulator_get() return

Re: [PATCH] usb: i.MX: improve regulator handling

2020-10-21 Thread Uwe Kleine-König
On Wed, Oct 21, 2020 at 05:28:09PM +0200, Marco Felsch wrote: > On 20-10-21 16:29, Marco Felsch wrote: > > On 20-10-21 07:49, Uwe Kleine-König wrote: > > > On Tue, Oct 20, 2020 at 04:58:44PM +0200, Marco Felsch wrote: > > > > On 20-10-20 16:28, Marco Felsch wrot

[PATCH] mtd: nand-imx: repair reading the oob area

2020-10-22 Thread Uwe Kleine-König
location where read_buf expects it. This fixes reading from /dev/nand0.oob and also (somewhat) reading bad block markers in the absence of a bad block table. Signed-off-by: Uwe Kleine-König --- Hello, I failed to find the commit that broke reading from /dev/nand0.oob but failed to identify it. I

[PATCH] usb: i.MX: warn if vbus regulator isn't available

2020-10-27 Thread Uwe Kleine-König
s for regulators that are default-on but without a driver. Signed-off-by: Uwe Kleine-König --- drivers/usb/imx/chipidea-imx.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea-imx.c index 786beede6d89..ad3eb9aa35aa 1

[PATCH] ARM: dts: imx6qdl: pfla02: document motivation for dropping supply

2020-10-29 Thread Uwe Kleine-König
In commit 84cf5cfa9a0e ("ARM: dts: imx6qdl: pfla02: Remove fec phy-supply") the phy-supply was removed. The motivation however was only given in the commit log. Add a comment accompanying the actual statement to remove the property to make this better findable. Signed-off-by: Uwe Kl

[PATCH] net: Replace license and copyright boilerplate by SPDX identfiers

2020-10-29 Thread Uwe Kleine-König
Converts the files that licensecheck can determine to be licensed under GPL-2.0-only or GPL-2.0-or-later and also convert the copyright statements to SPDX. Signed-off-by: Uwe Kleine-König --- net/eth.c| 17 ++--- net/ifup.c | 20 +--- net/lib.c

[PATCH 2/2] arm: imx: Convert mach headers to SPDX

2020-10-29 Thread Uwe Kleine-König
Replace license and copyright boilerplate by SPDX identfiers for files identified as GPL-2.0-only or GPL-2.0-or-later by licensecheck. Signed-off-by: Uwe Kleine-König --- arch/arm/mach-imx/include/mach/clock-imx6.h | 19 ++- arch/arm/mach-imx/include/mach/iim.h | 16

[PATCH 1/2] imx: Fix copyright claim

2020-10-29 Thread Uwe Kleine-König
The file was created by me in commit c0fcf4dde3c9 ("ARM: i.MX7: provide DDR register definitions") and obviously I failed to adapt our copyright template. While at it, convert to SPDX. Signed-off-by: Uwe Kleine-König --- arch/arm/mach-imx/include/mach/imx7-ddr-regs.h | 14 ++-

[PATCH] nfs: check return value of various rpc calls

2020-10-30 Thread Uwe Kleine-König
Check more carefully for failing requests. This improves the error message when trying to mount a non-exported nfs directory from: nfs_mount_req: file handle too big: 44831 to nfs_mount_req: Mounting gave error NFS3ERR_ACCES(0xd) . Signed-off-by: Uwe Kleine-König --- fs

  1   2   3   4   5   6   7   8   9   >