RE: [v7 07/18] arm: socfpga: Add secure register access helper functions for SoC 64bits

2020-12-27 Thread Tan, Ley Foon
> -Original Message- > From: Lim, Elly Siew Chin > Sent: Thursday, December 24, 2020 6:21 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Tan, Ley Foon > ; See, Chin Liang ; > Simon Goldschmidt ; Chee, Tien Fong > ; Westergreen, Dalon > ; Simon Glass ; Gan, > Yau Wai ; Lim, Elly Siew

Re: [PATCH v2 1/1] pinctrl: mediatek: correct error handling

2020-12-27 Thread Chunfeng Yun
On Sun, 2020-12-27 at 21:18 +0100, Heinrich Schuchardt wrote: > If no GPIO controller is found, the return value should not depend on a > random value on the stack. Initialize variable ret. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > move

[PATCH 1/1] efi_loader: efi_signal_event() fix comment typos

2020-12-27 Thread Heinrich Schuchardt
Add missing commas. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 4deb051c4e..9062b2dc3d 100644 --- a/lib/efi_loader/efi_boottime.c +

Re: [PATCH 1/1] mmc: fsl_esdhc_spl: remove superfluous free()

2020-12-27 Thread Jaehoon Chung
On 12/27/20 6:50 PM, Heinrich Schuchardt wrote: > Freeing a buffer before calling hang() is superfluous. Removing the call > reduces the SPL size. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > drivers/mmc/fsl_esdhc_spl.c | 3 --- > 1 fi

Re: [PATCH] cmd: mmc: add mmcboot command

2020-12-27 Thread Jaehoon Chung
Hi Ravik, On 12/24/20 4:57 AM, Ravik Hasija wrote: > Similar to usbboot, add command line to boot from raw mmc partition > using common_diskboot(), which supports legacy or FIT images. > > Usage: > mmcboot loadAaddr dev:part > > Where defaults to CONFIG_SYS_LOAD_ADDR, and > defaults to ${bootd

Re: [PATCH] drivers: mmc: support secure erase.

2020-12-27 Thread Jaehoon Chung
Hi Dennis, On 12/26/20 5:44 PM, dennis laplacian1 wrote: > Hi Jaehoon Chung, > for your comment: > "ditto. if (IS_ENABLED()) instead of #if. > And i don't know why doesn't check this in mmc_erase_t(). > Then it doesn't need to pass arg as argument." > > I check the support of secure erase in the

Re: Setting DEVICE_TREE for xilinx_zynq_virt_defconfig?

2020-12-27 Thread Florian Klink
On 20-12-27 17:48:51, Florian Klink wrote: On 20-06-22 14:12:59, Michal Simek wrote: I tried building latest master 2b8692bac1e8795cbb87b0d00213fd193409851d, for a zynq device, and did according to the documentation: $ export DEVICE_TREE=zynq-zc702 $ make xilinx_zynq_virt_defconfig $ make Read

[PATCH] dts: Log name of expected .dtb file

2020-12-27 Thread Florian Klink
Make it more obvious what .dts file was expected by the build system. When adding support for a new board, I kept getting this error message, assuming I passed a wrong DEVICE_TREE parameter. However, what was really the mistake was that the entry in `arch/arm/dts/Makefile` was missing, and u-boot

[PATCH 1/2] ARM: zynq: add Digilent Zynq PYNQ Board(s)

2020-12-27 Thread Florian Klink
This adds the dts and entry in CONFIG_OF_LIST for the Digilent Zynq PYNQ Board(s). They're Zynq 7000 - based boards, the Z1 is from Digilent, the Z2 from TUL. They have a slightly different audio system, and a different pin header, but these aren't really accessible from the PS, only from the PL,

[PATCH v2 1/1] pinctrl: mediatek: correct error handling

2020-12-27 Thread Heinrich Schuchardt
If no GPIO controller is found, the return value should not depend on a random value on the stack. Initialize variable ret. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- v2: move the assigment to the certain code-path (Andy) --- drivers/pinctrl/mediatek/p

Re: [PATCH] drivers: tee: i2c trampoline driver

2020-12-27 Thread Jorge Ramirez-Ortiz, Foundries
On 23/12/20, Jens Wiklander wrote: > Hi Jorge, hey > > On Mon, Dec 21, 2020 at 07:15:40PM +0100, Jorge Ramirez-Ortiz wrote: > > This commit gives the secure world access to the I2C bus so it can > > communicate with I2C slaves (tipically those would be secure elements > > like the NXP SE050). >

Re: [PATCH 13/13] Nokia RX-51: Enable usbtty serial console by default

2020-12-27 Thread Pali Rohár
On Sunday 27 December 2020 18:42:19 Andy Shevchenko wrote: > On Sun, Dec 27, 2020 at 6:35 PM Pali Rohár wrote: > > On Sunday 27 December 2020 18:28:25 Andy Shevchenko wrote: > > > On Sun, Nov 29, 2020 at 6:53 PM Pali Rohár wrote: > > > > > > > > Now when usbtty serial console is fixed in U-Boot e

Re: Setting DEVICE_TREE for xilinx_zynq_virt_defconfig?

2020-12-27 Thread Florian Klink
On 20-06-22 14:12:59, Michal Simek wrote: Hi, On 20. 06. 20 20:06, Florian Klink wrote: Hey, I tried building latest master 2b8692bac1e8795cbb87b0d00213fd193409851d, for a zynq device, and did according to the documentation: $ export DEVICE_TREE=zynq-zc702 $ make xilinx_zynq_virt_defconfig $

Re: [PATCH 13/13] Nokia RX-51: Enable usbtty serial console by default

2020-12-27 Thread Andy Shevchenko
On Sun, Dec 27, 2020 at 6:35 PM Pali Rohár wrote: > On Sunday 27 December 2020 18:28:25 Andy Shevchenko wrote: > > On Sun, Nov 29, 2020 at 6:53 PM Pali Rohár wrote: > > > > > > Now when usbtty serial console is fixed in U-Boot enable it for Nokia > > > RX-51 > > > board by default. > > > > > > C

Re: [PATCH 13/13] Nokia RX-51: Enable usbtty serial console by default

2020-12-27 Thread Pali Rohár
On Sunday 27 December 2020 18:28:25 Andy Shevchenko wrote: > On Sun, Nov 29, 2020 at 6:53 PM Pali Rohár wrote: > > > > Now when usbtty serial console is fixed in U-Boot enable it for Nokia RX-51 > > board by default. > > > > CONFIG_CONSOLE_MUX is already used and U-Boot console is available for >

Re: [PATCH 00/13] Nokia RX-51: Fix USB TTY console and enable it

2020-12-27 Thread Pali Rohár
On Sunday 29 November 2020 17:46:05 Pali Rohár wrote: > With current implementation there is an issue in musb driver that it > loose receiving bytes from USB bus when too many a characters are send > over USB tty from computer. Typing on keyboard to kermit terminal > connected to /dev/ttyACM0 is wo

Re: [PATCH 13/13] Nokia RX-51: Enable usbtty serial console by default

2020-12-27 Thread Andy Shevchenko
On Sun, Nov 29, 2020 at 6:53 PM Pali Rohár wrote: > > Now when usbtty serial console is fixed in U-Boot enable it for Nokia RX-51 > board by default. > > CONFIG_CONSOLE_MUX is already used and U-Boot console is available for > all in/out devices. Therefore there is no need to have separate command

Re: [PATCH 1/1] pinctrl: mediatek: correct error handling

2020-12-27 Thread Andy Shevchenko
On Sunday, December 27, 2020, Heinrich Schuchardt wrote: > If no GPIO controller is found, the return value should not depend on a > random value on the stack. Initialize variable ret. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/pinctrl/medi

[PATCH] efi_loader: avoid invalid free

2020-12-27 Thread Heinrich Schuchardt
load_options passed from do_efibootmgr() to do_bootefi_exec() may contain invalid data from the stack which will lead to an invalid free(). Fixes: 0ad64007feb9 ("efi_loader: set load options in boot manager") Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_bootmgr.c | 2 +- 1 file chan

[PATCH 1/1] efi_loader: missing parentheses after if

2020-12-27 Thread Heinrich Schuchardt
IS_ENABLED() contains parentheses. But we should still put extra parentheses around it in an if statement for readability. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/

[PATCH 1/1] efi_loader: escape key handling

2020-12-27 Thread Heinrich Schuchardt
Up to now the escape key was not correctly detected in UEFI applications. We had to hit it twice for a single escape to be recognized. Use a 10 ms delay to detect if we are dealing with the escape key or an escape sequence. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 1

[PATCH] mtd: remove drivers/mtd/mw_eeprom.c

2020-12-27 Thread Heinrich Schuchardt
drivers/mtd/mw_eeprom.c contains code that never worked. mw_eeprom_write() and mw_eeprom_read() have incorrect loop conditions: while (len <= 2) { CONFIG_MW_EEPROM is not set anywhere. So let's simply drop the module. Signed-off-by: Heinrich Schuchardt --- drivers/mtd/Makefile| 1

Re: [PATCH 1/1] dma: bcm6348: incorrect buffer allocation

2020-12-27 Thread Heinrich Schuchardt
On 12/27/20 11:18 AM, Álvaro Fernández Rojas wrote: Hello Heinrich, This is not swapped. busy_desc is only used in RX. Please, check the rest of the driver: https://github.com/u-boot/u-boot/blob/master/drivers/dma/bcm6348-iudma.c Regards, Álvaro. Thanks for reviewing. Why is calloc called wit

[PATCH 1/1] drivers: qe: avoid double free()

2020-12-27 Thread Heinrich Schuchardt
Avoid calling free(addr) twice if the device for ucode is not found. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- drivers/qe/qe.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 1a829b5a4c..259e4e3e67 100644 --- a/drive

[PATCH 1/1] pinctrl: mediatek: correct error handling

2020-12-27 Thread Heinrich Schuchardt
If no GPIO controller is found, the return value should not depend on a random value on the stack. Initialize variable ret. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH 1/1] zynq: mtd: nand: remove superfluous if

2020-12-27 Thread Heinrich Schuchardt
This sort of code does not make much sense: if (ondie_ecc_enabled) { if (ondie_ecc_enabled) { Remove the inner if. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- drivers/mtd/nand/raw/zynq_nand.c | 10 -- 1 file changed, 4 insertions(+), 6 del

Re: [PATCH 1/1] dma: bcm6348: incorrect buffer allocation

2020-12-27 Thread Álvaro Fernández Rojas
Hello Heinrich, This is not swapped. busy_desc is only used in RX. Please, check the rest of the driver: https://github.com/u-boot/u-boot/blob/master/drivers/dma/bcm6348-iudma.c Regards, Álvaro. El 27/12/2020 a las 10:26, Heinrich Schuchardt escribió: Calling calloc() for 0 members does not ma

[PATCH 1/1] mmc: fsl_esdhc_spl: remove superfluous free()

2020-12-27 Thread Heinrich Schuchardt
Freeing a buffer before calling hang() is superfluous. Removing the call reduces the SPL size. Signed-off-by: Heinrich Schuchardt --- drivers/mmc/fsl_esdhc_spl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/fsl_esdhc_spl.c b/drivers/mmc/fsl_esdhc_spl.c index afe55fad9d..bee7

[PATCH 1/1] dma: bcm6348: incorrect buffer allocation

2020-12-27 Thread Heinrich Schuchardt
Calling calloc() for 0 members does not make any sense. Setting ch_priv->busy_desc = NULL for ch_priv->desc_cnt > 0 is equally unreasonable. The current code will lead to a NULL dereference in bcm6348_iudma_enable(). The assignments for ch_priv->busy_desc are obviously swapped. Signed-off-by: He

Re: [PATCH v1] doc: README.distro: Special case with Windows formatted disk

2020-12-27 Thread Andy Shevchenko
On Sunday, December 27, 2020, Pali Rohár wrote: > On Friday 17 January 2020 12:44:51 Andy Shevchenko wrote: > > If someone wants to use shared (by installed OS) eMMC partition to > > the Windows to boot from, it's not possible due to U-Boot limitations. > > > > Describe this case and possible wor

[PATCH 1/1] dfu: dfu_sf: use correct print code

2020-12-27 Thread Heinrich Schuchardt
For printing unsigned int %u has to be used. Signed-off-by: Heinrich Schuchardt --- drivers/dfu/dfu_sf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c index 318e43c179..76b629a334 100644 --- a/drivers/dfu/dfu_sf.c +++ b/drivers/df

[PATCH] adc: meson-saradc: use correct printf code

2020-12-27 Thread Heinrich Schuchardt
For printing unsigned int we have to use %u not %d. Signed-off-by: Heinrich Schuchardt --- drivers/adc/meson-saradc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index 13a8f49dc5..406583e474 100644 --- a/drivers/adc/