Re: [U-Boot] [RFC] efi_loader: workaround for EDK2's shell.efi

2018-08-08 Thread Alexander Graf
On 09.08.18 07:15, AKASHI Takahiro wrote: > The commit 21b3edfc964 ("efi_loader: check parameters of CreateEvent") > enforces a strict parameter check at CreateEvent(). Unfortunately, > however, EDK2's Shell.efi calls this function with notify_tpl == 0. > > The patch above does right thing and

[U-Boot] [PATCH] efi_loader: set image_base and image_size to correct values

2018-08-08 Thread AKASHI Takahiro
Currently, image's image_base points to an address where the image was temporarily uploaded for further loading. Since efi_loader relocates the image to final destination, image_base and image_size should reflect that. This bug was detected in UEFI SCT, "Loaded Image Protocol Test - test 2," which

[U-Boot] [PATCH] efi_loader: execute image's unload function

2018-08-08 Thread AKASHI Takahiro
Currently, unload function in EFI_LOADED_IMAGE_PROTOCOL is never called at UnloadImage Boot Service. This is not compliant to UEFI specification. See chapter "9.1 EFI Loaded Image Protocol." Signed-off-by: AKASHI Takahiro --- include/efi_api.h | 4 +++- lib/efi_loader/efi_boottime.c

[U-Boot] [PATCH 1/4 v3] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-08 Thread Stefan Roese
Some SPI controller do not support full-duplex SPI transfers. This patch changes the SPI transfer into 2 separate transfers - or 1, if no data is to be transmitted. With this change, only a small buffer for the command, address and dummy bytes needs to be allocated. We use the TX and RX buffers th

[U-Boot] [PATCH 4/4 v3] cmd: mtd: Add info text to mtd erase subcommand

2018-08-08 Thread Stefan Roese
Adding this info helps seeing, what really is being erased - especially if no arguments are passed for offset and size. Now this is the output: => mtd erase spi-nand0 Erasing 0x ... 0x07ff (1024 eraseblock(s)) nand: attempt to erase a bad/reserved block @600 nand: attempt to erase

[U-Boot] [PATCH 3/4 v3] cmd: mtd: Don't use with negative return codes for shell commands

2018-08-08 Thread Stefan Roese
When negative return codes are used in commands (do_foo()), the shell prints these messages: exit not allowed from main input shell. Change the return codes in the new mtd commands to use only positive values and these annoying warnings are gone. Signed-off-by: Stefan Roese Cc: Miquel Raynal C

[U-Boot] [PATCH 2/4 v3] cmd: mtd: Don't abort erase operation when a bad block is detected

2018-08-08 Thread Stefan Roese
It was noticed, that the erase command (mtd erase spi-nand0) aborts upon the first bad block. With this change, bad blocks are now skipped and the erase operation will continue. Signed-off-by: Stefan Roese Cc: Miquel Raynal Cc: Boris Brezillon Cc: Jagan Teki --- v3: - Handle bad-block skipping

[U-Boot] [RFC] efi_loader: workaround for EDK2's shell.efi

2018-08-08 Thread AKASHI Takahiro
The commit 21b3edfc964 ("efi_loader: check parameters of CreateEvent") enforces a strict parameter check at CreateEvent(). Unfortunately, however, EDK2's Shell.efi calls this function with notify_tpl == 0. The patch above does right thing and we'd better fix the issue on EDK2 side, and yet we mig

Re: [U-Boot] [RESEND PATCH] usb: dwc3: convert to livetree

2018-08-08 Thread Michal Simek
On 8.8.2018 22:25, Marek Vasut wrote: > On 07/16/2018 02:56 PM, Marek Vasut wrote: >> On 07/16/2018 02:49 PM, Michal Simek wrote: >>> From: Vipul Kumar >>> >>> Update the DWC3 USB driver to support a live tree. >>> >>> Signed-off-by: Vipul Kumar >>> Tested-by: Michal Simek >>> Signed-off-by: Mic

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-08 Thread Stefan Roese
Hi Miquel, On 08.08.2018 11:58, Miquel Raynal wrote: Hi Stefan, Minor typo if you decide to send a v3. Boris Brezillon wrote on Tue, 7 Aug 2018 15:28:02 +0200: On Tue, 7 Aug 2018 14:16:52 +0200 Stefan Roese wrote: Some SPI controller do not support full-duplex SPI transfers. This patch

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-08 Thread Stefan Roese
Hi Miquel, On 08.08.2018 10:56, Miquel Raynal wrote: Boris Brezillon wrote on Tue, 7 Aug 2018 15:28:02 +0200: On Tue, 7 Aug 2018 14:16:52 +0200 Stefan Roese wrote: Some SPI controller do not support full-duplex SPI transfers. This patch changes the SPI transfer into 2 separate transfers -

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Bin Meng
Hi Marek, On Thu, Aug 9, 2018 at 8:36 AM, Marek Vasut wrote: > On 08/09/2018 01:24 AM, Bin Meng wrote: >> Hi Marek, >> >> On Thu, Aug 9, 2018 at 3:37 AM, Marek Vasut wrote: >>> On 08/08/2018 05:32 PM, Bin Meng wrote: Hi Marek, On Wed, Aug 8, 2018 at 10:33 PM, Marek Vasut wrote: >

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Marek Vasut
On 08/09/2018 01:24 AM, Bin Meng wrote: > Hi Marek, > > On Thu, Aug 9, 2018 at 3:37 AM, Marek Vasut wrote: >> On 08/08/2018 05:32 PM, Bin Meng wrote: >>> Hi Marek, >>> >>> On Wed, Aug 8, 2018 at 10:33 PM, Marek Vasut wrote: On 08/08/2018 03:39 PM, Bin Meng wrote: > Hi Marek, > >

Re: [U-Boot] please pull u-boot-samsung master

2018-08-08 Thread Tom Rini
On Wed, Aug 08, 2018 at 09:37:36AM +0900, Minkyu Kang wrote: > Dear Tom, > > The following changes since commit 2547e91dc15e5203e15d4ebde9172174743b14a7: > > tegra: Indicate that binman makes all three output files (2018-07-26 > 15:49:40 -0400) > > are available in the git repository at: >

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Bin Meng
Hi Marek, On Thu, Aug 9, 2018 at 3:37 AM, Marek Vasut wrote: > On 08/08/2018 05:32 PM, Bin Meng wrote: >> Hi Marek, >> >> On Wed, Aug 8, 2018 at 10:33 PM, Marek Vasut wrote: >>> On 08/08/2018 03:39 PM, Bin Meng wrote: Hi Marek, On Wed, Aug 8, 2018 at 9:24 PM, Marek Vasut wrote: >

Re: [U-Boot] [RESEND PATCH] usb: dwc3: convert to livetree

2018-08-08 Thread Marek Vasut
On 07/16/2018 02:56 PM, Marek Vasut wrote: > On 07/16/2018 02:49 PM, Michal Simek wrote: >> From: Vipul Kumar >> >> Update the DWC3 USB driver to support a live tree. >> >> Signed-off-by: Vipul Kumar >> Tested-by: Michal Simek >> Signed-off-by: Michal Simek > > Applied, thanks > Dropped becau

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Marek Vasut
On 08/08/2018 05:32 PM, Bin Meng wrote: > Hi Marek, > > On Wed, Aug 8, 2018 at 10:33 PM, Marek Vasut wrote: >> On 08/08/2018 03:39 PM, Bin Meng wrote: >>> Hi Marek, >>> >>> On Wed, Aug 8, 2018 at 9:24 PM, Marek Vasut wrote: On 08/08/2018 03:14 PM, Bin Meng wrote: > Hi Marek, > >

Re: [U-Boot] [PATCH v2 1/3] efi: Fix truncation of constant value

2018-08-08 Thread Eugeniu Rosca
Hello Tom, Alexander, On Wed, Aug 01, 2018 at 01:25:54PM +0200, Eugeniu Rosca wrote: > Hello Tom, Simon, Alexander, Heinrich, > > On Wed, Jul 25, 2018 at 03:30:16PM +0200, Eugeniu Rosca wrote: > > Hello Alexander, > > > > Heinrich was kind to have a look at [1] and already provided his > > Revie

Re: [U-Boot] MMC_DAVINCI not compliant with CONFIG_BLK

2018-08-08 Thread Adam Ford
On Mon, Aug 6, 2018 at 5:22 PM Peter Howard wrote: > > Sorry a clarification - my main focus is the LCDK board - it's that one which > has the 4K overrun. > I wanted the rest of the people on this thread to know the status. Both Peter and I did separate drivers. His was more complete than mine,

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

2018-08-08 Thread Marek Vasut
On 07/27/2018 01:39 PM, Tom Rini wrote: > On Fri, Jul 27, 2018 at 11:59:32AM +0200, Lukasz Majewski wrote: >> On Thu, 26 Jul 2018 23:14:01 +0200 >> Marek Vasut wrote: >> >>> On 07/26/2018 11:08 PM, Lukasz Majewski wrote: On Thu, 26 Jul 2018 21:25:02 +0200 Marek Vasut wrote:

[U-Boot] [PATCH] clk: socfpga: Add initial Arria10 clock driver

2018-08-08 Thread Marek Vasut
Add clock driver for the Arria10, which allows reading the clock frequency from all the clock described in the DT. The driver also allows enabling and disabling the clock. Reconfiguring frequency is not supported thus far. Since the DT bindings for the SoCFPGA clock are massively misdesigned and t

[U-Boot] [PATCH] mmc: socfpga: Add clock framework support

2018-08-08 Thread Marek Vasut
Add support for fetching the clock frequency both using the legacy method in case clock framework is disabled as well as via the clock framework if it is enabled. This allows for migration to the clock framework on platforms which supports it while not breaking legacy platforms. That said, the lega

[U-Boot] [PATCH] ARM: dts: socfpga: Add u-boot, dm-pre-reloc to necessary clock nodes

2018-08-08 Thread Marek Vasut
Add the pre-reloc DT markers to clock nodes needed in SPL and early U-Boot stages. This is required to let the Arria10 clock driver start early and provide clock information for UART and SDMMC. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/dts/soc

[U-Boot] [PATCH 3/3] ARM: socfpga: clk: Drop unused variables on Arria10

2018-08-08 Thread Marek Vasut
The variables removed in this patch are never used, they are only ever assigned and then waste precious memory. Drop both the assignment and the variables. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/clock_manager_arria10.c | 19 ++-

[U-Boot] [PATCH 1/3] ARM: socfpga: clk: Obtain handoff base clock via DM

2018-08-08 Thread Marek Vasut
Bind fixed clock driver to the base clock instantiated in the handoff DT and use DM clock framework to get their clock rate. This replaces the ad-hoc DT parsing present thus far. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Ley Foon Tan --- arch/arm/mach-socfpga/Kconfig

[U-Boot] [PATCH 2/3] ARM: socfpga: clk: Make L4SP and MMC clock calculation Gen5 only

2018-08-08 Thread Marek Vasut
The L4SP and MMC clock precalculation is specific to Gen5, it is not needed on Arria10/Stratix10. Isolate it to Gen5 until there is a proper clock driver for Gen5, at which point this will go away completely. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Ley Foon Tan --- a

[U-Boot] [RFC][PATCH] cmd: clk: Add trivial implementation of clock dump for DM

2018-08-08 Thread Marek Vasut
Add trivial implementation of the clk dump in case DM is enabled. This implementation just iterates over all the clock registered with the CLK uclass and prints their rate. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Ley Foon Tan Cc: Simon Glass Cc: Tom Rini --- cmd/cl

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Eugeniu Rosca
On Wed, Aug 8, 2018 at 6:54 PM Tom Rini wrote: > > On Wed, Aug 08, 2018 at 06:44:07PM +0200, Eugeniu Rosca wrote: > > On Wed, Aug 8, 2018 at 6:18 PM Jean-Jacques Hiblot wrote: > > > On 08/08/2018 15:08, Eugeniu Rosca wrote: > > [snip] > > > > I think having a warning-free build is a basic policy

Re: [U-Boot] [PATCH v7 0/8] NXP LS1046A SMMU enabling patches

2018-08-08 Thread Laurentiu Tudor
Hi York, > From: York Sun > Sent: Wednesday, August 8, 2018 7:23 PM > > On 08/08/2018 02:05 AM, laurentiu.tu...@nxp.com wrote: > > From: Laurentiu Tudor > > > > This patch series adds the required devices setup and device tree > > fixups for SMMU enablement on NXP LS1046A chips. The approach tak

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Tom Rini
On Wed, Aug 08, 2018 at 06:44:07PM +0200, Eugeniu Rosca wrote: > On Wed, Aug 8, 2018 at 6:18 PM Jean-Jacques Hiblot wrote: > > On 08/08/2018 15:08, Eugeniu Rosca wrote: > [snip] > > > I think having a warning-free build is a basic policy everybody is > > > expected to comply with. > > I agree. I m

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Eugeniu Rosca
On Wed, Aug 8, 2018 at 6:18 PM Jean-Jacques Hiblot wrote: > On 08/08/2018 15:08, Eugeniu Rosca wrote: [snip] > > I think having a warning-free build is a basic policy everybody is > > expected to comply with. > I agree. I meant that it could be fixed at the time of the commit by the > maintainer.

Re: [U-Boot] [PATCH v7 0/8] NXP LS1046A SMMU enabling patches

2018-08-08 Thread York Sun
On 08/08/2018 02:05 AM, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > This patch series adds the required devices setup and device tree > fixups for SMMU enablement on NXP LS1046A chips. The approach taken > tries to mimic the implementation of PAMU LIODN setup on booke powerpc. > >

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Jean-Jacques Hiblot
On 08/08/2018 15:08, Eugeniu Rosca wrote: On Wed, Aug 8, 2018 at 1:36 PM Jean-Jacques Hiblot wrote: Hi all, On 08/08/2018 11:17, Eugeniu Rosca wrote: Hello, FWIW, patch "[7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line" contributes with a compiler war

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Bin Meng
Hi Marek, On Wed, Aug 8, 2018 at 10:33 PM, Marek Vasut wrote: > On 08/08/2018 03:39 PM, Bin Meng wrote: >> Hi Marek, >> >> On Wed, Aug 8, 2018 at 9:24 PM, Marek Vasut wrote: >>> On 08/08/2018 03:14 PM, Bin Meng wrote: Hi Marek, On Wed, Aug 8, 2018 at 9:03 PM, Marek Vasut wrote: >

[U-Boot] [GIT PULL] u-boot-mips/master

2018-08-08 Thread Daniel Schwierzeck
Hi Tom, I hope it's okay for post RC1, but I wanted to wait until you had the Kconfig sorting stuff merged. Travis CI: https://travis-ci.org/danielschwierzeck/u-boot/builds/413538994 The following changes since commit b1aad8dbe28415695b290726199681ced969c118: zynqmp: Add avnet_ultra96_rev1_

Re: [U-Boot] [PATCH] usb: ehci-generic: Add vbus-supply regulator support

2018-08-08 Thread Marek Vasut
On 08/08/2018 04:10 PM, Patrice Chotard wrote: > Add vbus-supply regulator support. > On some board vbus is not controlled by the phy but by > an external regulator. > > Signed-off-by: Patrice Chotard > --- > > drivers/usb/host/ehci-generic.c | 37 - > 1 file

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Marek Vasut
On 08/08/2018 03:39 PM, Bin Meng wrote: > Hi Marek, > > On Wed, Aug 8, 2018 at 9:24 PM, Marek Vasut wrote: >> On 08/08/2018 03:14 PM, Bin Meng wrote: >>> Hi Marek, >>> >>> On Wed, Aug 8, 2018 at 9:03 PM, Marek Vasut wrote: The PCI controller can have DT subnodes describing extra properties

[U-Boot] [PATCH] usb: ehci-generic: Add vbus-supply regulator support

2018-08-08 Thread Patrice Chotard
Add vbus-supply regulator support. On some board vbus is not controlled by the phy but by an external regulator. Signed-off-by: Patrice Chotard --- drivers/usb/host/ehci-generic.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/u

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Bin Meng
Hi Marek, On Wed, Aug 8, 2018 at 9:24 PM, Marek Vasut wrote: > On 08/08/2018 03:14 PM, Bin Meng wrote: >> Hi Marek, >> >> On Wed, Aug 8, 2018 at 9:03 PM, Marek Vasut wrote: >>> The PCI controller can have DT subnodes describing extra properties >>> of particular PCI devices, ie. a PHY attached t

[U-Boot] [PATCH] phy: rcar: Add R-Car Gen2 PHY driver

2018-08-08 Thread Marek Vasut
Add a PHY driver for the R-Car Gen2 which allows configuring the mux connected to the EHCI controllers and USBHS controller. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile| 1 + drivers/phy/phy-rcar-gen2.c | 190

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Marek Vasut
On 08/08/2018 03:14 PM, Bin Meng wrote: > Hi Marek, > > On Wed, Aug 8, 2018 at 9:03 PM, Marek Vasut wrote: >> The PCI controller can have DT subnodes describing extra properties >> of particular PCI devices, ie. a PHY attached to an EHCI controller >> on a PCI bus. This patch parses those DT subn

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-08 Thread Adam Ford
On Tue, Aug 7, 2018 at 1:29 AM Jagan Teki wrote: > > davinci_spi now support dt along with platform data, > respective boards need to switch into dm for the same. > > Cc: Adam Ford > Cc: Vitaly Andrianov > Cc: Stefano Babic > Cc: Peter Howard > Cc: Tom Rini > Signed-off-by: Jagan Teki > ---

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Bin Meng
Hi Marek, On Wed, Aug 8, 2018 at 9:03 PM, Marek Vasut wrote: > The PCI controller can have DT subnodes describing extra properties > of particular PCI devices, ie. a PHY attached to an EHCI controller > on a PCI bus. This patch parses those DT subnodes and assigns a node > to the PCI device insta

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Eugeniu Rosca
On Wed, Aug 8, 2018 at 1:36 PM Jean-Jacques Hiblot wrote: > > Hi all, > > > On 08/08/2018 11:17, Eugeniu Rosca wrote: > > Hello, > > > > FWIW, patch "[7/7] cmd: Add bind/unbind commands to bind a device to a > > driver from the command line" contributes with a compiler warning, as > > described in

[U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-08 Thread Marek Vasut
The PCI controller can have DT subnodes describing extra properties of particular PCI devices, ie. a PHY attached to an EHCI controller on a PCI bus. This patch parses those DT subnodes and assigns a node to the PCI device instance, so that the driver can extract details from that node and ie. conf

[U-Boot] [PATCH] usb: ehci: Add PHY support to ehci-pci

2018-08-08 Thread Marek Vasut
Add support for operating a PHY attached to ehci-pci. There are systems where the EHCI controller is internally wired to a PCI bus and has a PHY connected to it as well, ie. the R-Car Gen2. Signed-off-by: Marek Vasut --- drivers/usb/host/ehci-pci.c | 32 1 file c

[U-Boot] [PATCH] phy: Fix off-by-one error when parsing DT PHY bindings

2018-08-08 Thread Marek Vasut
The code fails to copy the last PHY phandle argument, so it is missing from the adjusted phandle args and the consumer cannot use it to determine what the PHY should do. Signed-off-by: Marek Vasut Cc: Patrice Chotard --- drivers/phy/phy-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[U-Boot] [PATCH] usb: ehci: Make the PHY handling generic

2018-08-08 Thread Marek Vasut
Pull out the EHCI PHY functions into the ehci-hcd.c to let other EHCI drivers use them. Signed-off-by: Marek Vasut --- drivers/usb/host/ehci-generic.c | 56 +++- drivers/usb/host/ehci-hcd.c | 57 + drivers/usb/host/e

Re: [U-Boot] [PATCH 1/1] mtd: nand: fsl_ifc: Fix handling of bitflips in erased pages

2018-08-08 Thread Kurt Kanzenbach
Hi York, On Tue, Aug 07, 2018 at 09:52:46PM +, York Sun wrote: > On 08/02/2018 01:03 AM, Kurt Kanzenbach wrote: > > From: Darwin Dingel > > > > This is a fix made for the fsl_ifc_nand driver on linux kernel by > > Pavel Machek and is applied to uboot. It is currently on applied on > > linux-m

[U-Boot] [PATCH] ls1088ardb_pb: Add support for ls1088ardb_pb board.

2018-08-08 Thread Pramod Kumar
ls1088ardb-pb is another varinat of the ls1088ardb. This board support two m.2 x2 gen 3 pcie card slot. There is no support of sata, pcie standard slot, miniPCIE slot and TDM in this board. Signed-off-by: Pramod Kumar --- arch/arm/Kconfig | 14 +++ arch/arm/cpu/armv8

Re: [U-Boot] Can't boot my FIT image: 'Could not find configuration node'

2018-08-08 Thread Grant Jurgensen
Hi Johann, I apologize, that typo is actually just in the email. My actual file has "kernel-0" in both locations. It seems my fit image is formed correctly based on the header information: ...$ mkimage -F sel4.itb FIT description: SeL4 Created: Tue Aug 7 10:56:42 2018 Image 0 (kernel-0)

Re: [U-Boot] [RESEND PATCH V2 3/3] imx: mx7: add system suspend/resume support

2018-08-08 Thread Stefan Agner
On 08.08.2018 11:09, Anson Huang wrote: > Hi, Stefan > > Anson Huang > Best Regards! > > >> -Original Message- >> From: Stefan Agner [mailto:ste...@agner.ch] >> Sent: Wednesday, August 8, 2018 5:03 PM >> To: Anson Huang >> Cc: sba...@denx.de; Fabio Estevam ; >> albert.u.b...@aribaud.net

[U-Boot] [PATCH v2 10/17] cmd: fpga: Extract fpga info command to separate function

2018-08-08 Thread Michal Simek
Move fpga info to U_BOOT_CMD_MKENT subcommand. Also use strtol instead of simple_strtoul. The reason is that if -1 is passed (or fpga info without "fpga" variable) the list of all fpgas is shown. This functionality is in the fpga core but it couldn't be performed. Signed-off-by: Michal Simek Revi

[U-Boot] [PATCH v2 12/17] cmd: fpga: Fix loadfs command

2018-08-08 Thread Michal Simek
Convert loadfs command to fpga subcommands. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpga.c | 58 -- 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/cmd/fpga.c b

[U-Boot] [PATCH v2 13/17] cmd: fpga: Fix loadmk command

2018-08-08 Thread Michal Simek
Convert loadmk command to fpga subcommands. Not all combinations are working but they have never worked properly. This will be fixed later. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpga.c | 238 ---

[U-Boot] [PATCH v2 15/17] cmd: fpga: Use CMD_RET_FAILURE instead of simple 1

2018-08-08 Thread Michal Simek
Use standard return command failure macro. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpga.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index de9d19dd8e91..89fae86b8253 10

[U-Boot] [PATCH v2 16/17] cmd: fpga: Fix loads command

2018-08-08 Thread Michal Simek
Convert last loads command to fpga subcommands. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpga.c | 148 +++-- 1 file changed, 36 insertions(+), 112 deletions(-) diff --git a/cmd

Re: [U-Boot] [PATCH v1 14/17] cmd: fpga: Add support for missing fpga loadmk commands

2018-08-08 Thread Michal Simek
On 8.8.2018 11:56, Simon Glass wrote: > Hi Michal, > > On 3 August 2018 at 00:13, Michal Simek wrote: >> On 2.8.2018 22:37, Simon Glass wrote: >>> On 26 July 2018 at 08:16, Michal Simek wrote: Not all 4 fpga loadmk FIT image commands >>> >>> I don't understand this. Can you explain what you

[U-Boot] [PATCH v2 14/17] cmd: fpga: Add support for missing fpga loadmk commands

2018-08-08 Thread Michal Simek
There are ways how to call fpga loadmk 1. Full command fpga loadmk [dev] [address] 2. Dev setup via variable set fpga [dev] fpga loadmk [address] 3. Address setup via variable set fpgadata [address] fpga loadmk [dev] 4. Dev and address setup via variables set fpga [dev] set fpgadata [address] f

[U-Boot] [PATCH v2 08/17] cmd: fpga: Clean wrong_parms handling

2018-08-08 Thread Michal Simek
There is no reason to check parameters in separate switch. Check them directly when they are read. Also there is no reason to check loadmk case separately because fpga_data address must be non zero too. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1:

[U-Boot] [PATCH v2 07/17] cmd: fpga: Remove parameter checking from fpga loadfs command

2018-08-08 Thread Michal Simek
Parameter checking is dead code because all the time there must be all params assigned. If they are not assigned there is no 9th parameters passed and checking before return CMD_RET_USAGE. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpg

[U-Boot] [PATCH v2 09/17] cmd: fpga: Create new do_fpga_wrapper for using u-boot subcommands

2018-08-08 Thread Michal Simek
Create command wrapper to clean fpga subcommands. The function logic is taken from cmd_dm.c Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpga.c | 42 -- 1 file changed, 40 insertions(+), 2 deletion

[U-Boot] [PATCH v2 11/17] cmd: fpga: Fix dump and all direct fpga load commands

2018-08-08 Thread Michal Simek
Separate dump, load, loadb, loadp and loadbp commands to separate functions to make it clear how they are called and what parameters they need. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None Maybe they can be still groupped together with one sw

[U-Boot] [PATCH v2 17/17] MAINTAINERS: Add myself as the FPGA maintainer

2018-08-08 Thread Michal Simek
FPGA subsystem requires special care that's why it should be maintained via one tree. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 58b61a

[U-Boot] [PATCH v2 06/17] cmd: fpga: Move parameter checking for loadfs/loads

2018-08-08 Thread Michal Simek
There is no reason to check parameters in separate switch before main one. This patch is simplifying error path and checking parameters right after assignment. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpga.c | 44

[U-Boot] [PATCH v2 04/17] cmd: fpga: Move fpga_get_op to avoid local function declaration

2018-08-08 Thread Michal Simek
Move fpga_get_op() to top of file to remove local function declaration and also remove useless retyping. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpga.c | 85 ++ 1 file chan

[U-Boot] [PATCH v2 02/17] test/py: Extend fpga command to test all fpga load types

2018-08-08 Thread Michal Simek
Add support for info, load, loadp, loadb, loadbp, loadmk_legacy, loadmk_legacy_gz, loadmk_fit, loadfs also with variable support. There are probably missing failed tests. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: - Remove debug message checking

[U-Boot] [PATCH v2 05/17] cmd: fpga: Cleanup error handling in connection to FPGA_NONE

2018-08-08 Thread Michal Simek
Incorrect command is already handled and FPGA_NONE should be used only one. In case of error CMD_RET_USAGE can be returned directly without any addition logic around. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpga.c | 8 ++-- 1 fi

[U-Boot] [PATCH v2 01/17] cmd: fpga: Remove fit image support passed without fpga device

2018-08-08 Thread Michal Simek
The patch applied in 2010 "cmd_fpga: cleanup help and check parameters" (sha1: a790b5b2326be9d7c9ad9e3d9b51a8bfabc62d07" was adding this checking + if (dev == FPGA_INVALID_DEVICE) { + puts("FPGA device not specified\n"); + op = FPGA_NONE; + } which simply b

[U-Boot] [PATCH v2 03/17] cmd: fpga: Move error handling to do_fpga()

2018-08-08 Thread Michal Simek
Clean fpga_get_op() error handling by moving checking/print to do_fpga. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None cmd/fpga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index 791fe5cb7

[U-Boot] [PATCH v2 00/17] cmd: fpga: Fix fpga command handling and add some fpga tests

2018-08-08 Thread Michal Simek
Hi, We are using this framework for a while and by adding more and more features it requires small redesigned how commands are handled. This is something what I have put together to improve readability of this code and also remove code which is bogus and completely untested. The patch https://lis

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Jean-Jacques Hiblot
Hi all, On 08/08/2018 11:17, Eugeniu Rosca wrote: Hello, FWIW, patch "[7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line" contributes with a compiler warning, as described in https://patchwork.ozlabs.org/patch/933310/#1952127 . This looks like a false posit

[U-Boot] [PATCH] [RFC] blk: Increase cache element size

2018-08-08 Thread Marek Vasut
Cache up to 4 kiB entries. 4 kiB is the default block size on ext4, yet the underlying block layer devices usually report support for 512B . In most cases, the 512B support is emulated (ie. SD cards, SSDs, USB sticks etc.) and the real block size of those devices is much bigger. To avoid performan

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Eugeniu Rosca
On Wed, Aug 8, 2018 at 11:58 AM Michal Simek wrote: > > On 8.8.2018 11:17, Eugeniu Rosca wrote: > > Hello, > > > > FWIW, patch "[7/7] cmd: Add bind/unbind commands to bind a device to a > > driver from the command line" contributes with a compiler warning, as > > described in https://patchwork.ozl

Re: [U-Boot] [PATCH v6 00/27] SPI-NAND support

2018-08-08 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Mon, 6 Aug 2018 23:20:19 +0530: > Are you planning to send the next version? I was not as we gave you a branch to pull patches from and test with Travis if the warnings were gone [1]. Of course I can send the patches if you want them here also. If Stefan sends a

Re: [U-Boot] [PATCH 3/4] console: unify fgetc function when console MUX is deactivated

2018-08-08 Thread Simon Glass
On 3 August 2018 at 05:38, Patrick Delaunay wrote: > Unify the fgetc function when MUX is activated or not: > - always call tstc() : it is the normal behavior expected > by serial uclass (call tstc then getc) and that avoids > issue when SERIAL_RX_BUFFER is activated > - reload WATCHDOG in the

Re: [U-Boot] [PATCH v1 14/17] cmd: fpga: Add support for missing fpga loadmk commands

2018-08-08 Thread Simon Glass
Hi Michal, On 3 August 2018 at 00:13, Michal Simek wrote: > On 2.8.2018 22:37, Simon Glass wrote: >> On 26 July 2018 at 08:16, Michal Simek wrote: >>> Not all 4 fpga loadmk FIT image commands >> >> I don't understand this. Can you explain what you mean? > > hm not sure why I have written this sh

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-08 Thread Miquel Raynal
Hi Stefan, Minor typo if you decide to send a v3. Boris Brezillon wrote on Tue, 7 Aug 2018 15:28:02 +0200: > On Tue, 7 Aug 2018 14:16:52 +0200 > Stefan Roese wrote: > > > Some SPI controller do not support full-duplex SPI transfers. This patch > > changes the SPI transfer into 2 separate tra

Re: [U-Boot] [PATCH v2 0/5] Add get_alternate_function ops

2018-08-08 Thread Simon Glass
Hi Patrice, On 3 August 2018 at 09:01, Patrice Chotard wrote: > > This series : > - Add new gpio ops get_alternate_function > - Add get_function and get_alternate_function support to stm32 gpio driver > - Add get_alternate_function test > > Changes in v2: >- Rename get_function_number t

[U-Boot] [PATCH v9 12/18] sandbox: Enhance map_to_sysmem() to handle foreign pointers

2018-08-08 Thread Simon Glass
At present map_sysmem() maps an address into the sandbox RAM buffer, return a pointer, while map_to_sysmem() goes the other way. The mapping is currently just 1:1 since a case was not found where a more flexible mapping was needed. PCI does have a separate and more complex mapping, but uses its ow

Re: [U-Boot] [PATCH v2 2/2] sandbox: Enable bitrev library build

2018-08-08 Thread Simon Glass
On 3 August 2018 at 00:58, Bin Meng wrote: > Imply CONFIG_BITREVERSE for Sandbox. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - Change to imply in the Kconfig > > arch/Kconfig | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-08-08 Thread Simon Glass
On 3 August 2018 at 05:38, Patrick Delaunay wrote: > Add test to avoid access to rx buffer when this buffer is empty. > In this case directly call getc() function to avoid issue when tstc() > is not called. > > Signed-off-by: Patrick Delaunay > --- > > drivers/serial/serial-uclass.c | 3 +++ > 1

Re: [U-Boot] [PATCH v3 1/4] dm: serial: Replace setparity by setconfig

2018-08-08 Thread Simon Glass
On 3 August 2018 at 07:07, Patrice Chotard wrote: > Replace setparity by more generic setconfig ops > to allow uart parity, bits word length and stop bits > number change. > > Adds SERIAL_GET_PARITY/BITS/STOP macros. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice Chotard > --- > >

Re: [U-Boot] [PATCH v2 1/5] dm: gpio: Add get_alternate_function ops

2018-08-08 Thread Simon Glass
Hi Patrice, +Stephen and Masahiro for comment on this vs. pinctrl. On 3 August 2018 at 09:01, Patrice Chotard wrote: > From: Patrick Delaunay > > When a pin is not configured as a GPIO, it could > have several alternate function. > > To be able to identify the alternate function, > add ops get_

Re: [U-Boot] [PATCH 1/2] tpm: sandbox: fix wrong check on pcr_map

2018-08-08 Thread Simon Glass
On 5 August 2018 at 10:53, Miquel Raynal wrote: > The second check on pcr_map in sandbox_tpm2_xfer() is wrong. It should > check for pcr_map not being empty. Instead, it is a pure copy/paste of > the first check which is redundant. > > This has been found thanks to a Coverity Scan report: > >

[U-Boot] [PATCH v9 18/18] efi: sandbox: Enable selftest command

2018-08-08 Thread Simon Glass
Enable this for sandbox since it passes now. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v8: - Drop 'efi: Adjust memory handling to support sandbox' - Drop 'efi: sandbox: Add relocation constants' - Drop 'sandbox: smbios: Update to support sandbox' - Expand series substantially

[U-Boot] [PATCH v9 15/18] efi: sandbox: Tidy up copy_fdt() to work with sandbox

2018-08-08 Thread Simon Glass
At present this function takes a pointer as its argument, then passes this to efi_allocate_pages(), which actually takes an address. It uses casts, which are not supported on sandbox. Also the function calculates the FDT size rounded up to the neared EFI page size, then its caller recalculates the

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Michal Simek
On 8.8.2018 11:17, Eugeniu Rosca wrote: > Hello, > > FWIW, patch "[7/7] cmd: Add bind/unbind commands to bind a device to a > driver from the command line" contributes with a compiler warning, as > described in https://patchwork.ozlabs.org/patch/933310/#1952127 . any other problem? M ___

Re: [U-Boot] [PATCH v2 5/5] test: dm: Add gpio get_alternate_function ops test

2018-08-08 Thread Simon Glass
On 3 August 2018 at 09:01, Patrice Chotard wrote: > In order to test get_alternate_function ops, add > sandbox_gpio_set_function() and sandbox_gpio_set_alternate_function() > to be able to configure a pin not as a GPIO and to select the > alternate function index. > > Signed-off-by: Patrice Chotar

Re: [U-Boot] [PATCH v3 3/4] dm: serial: Remove setparity ops

2018-08-08 Thread Simon Glass
On 3 August 2018 at 07:07, Patrice Chotard wrote: > setparity users has been updated to use new setconfig ops, > so we can safely remove setparity ops > > Signed-off-by: Patrice Chotard > --- > > Changes in v3: > - Add patch to remove obsolete setparity ops > > Changes in v2: None > > include/

Re: [U-Boot] [PATCH v3 4/4] sandbox: Add serial test

2018-08-08 Thread Simon Glass
On 3 August 2018 at 07:07, Patrice Chotard wrote: > Signed-off-by: Patrice Chotard > --- > > Changes in v3: > - Update serial test when wrong serial options are specified > - Add SERIAL_CONFIG(par, bits, stop) macro to create serial mask > > Changes in v2: > - Add sandbox serial test > > d

Re: [U-Boot] [PATCH 2/2] tpm: sandbox: fix wrong assignment with a simplification

2018-08-08 Thread Simon Glass
On 5 August 2018 at 10:53, Miquel Raynal wrote: > The recv variable in sandbox_tpm2_fill_buf() is a pointer on a pointer > of a char array. It means accessing *recv is the char array pointer > itself while **recv is the first character of that array. There is no > need for such indirection here, s

[U-Boot] [PATCH v9 17/18] efi_loader: Pass address to fs_read()

2018-08-08 Thread Simon Glass
From: Alexander Graf The fs_read() function wants to get an address rather than the pointer to a buffer. So let's convert the passed buffer from pointer back a the address to make efi_loader on sandbox happier. Signed-off-by: Alexander Graf Reviewed-by: Simon Glass Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v3 2/4] serial: stm32: Replace setparity by setconfig

2018-08-08 Thread Simon Glass
On 3 August 2018 at 07:07, Patrice Chotard wrote: > Replace stm32_serial_setparity by stm32_serial_setconfig > which allows to set serial bits number, parity and stop > bits number. > Only parity setting is implemented. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice Chotard > --- >

Re: [U-Boot] [PATCH v2 4/5] gpio: sandbox: Rename GPIOF_(OUTPUT|HIGH|ODR) to SDBX_GPIO_(OUTPUT|HIGH|ODR)

2018-08-08 Thread Simon Glass
On 3 August 2018 at 09:01, Patrice Chotard wrote: > To avoid confusion with enum gpio_func_t GPIOF_OUTPUT defined in > asm-generic/gpio.h, rename all sandbox flags GPIOF_(OUTPUT|HIGH|ODR) > to SDBX_GPIO_(OUTPUT|HIGH|ODR) > > Signed-off-by: Patrice Chotard > --- > > Changes in v2: None > > driver

[U-Boot] [PATCH v9 10/18] sandbox: Try to start the RAM buffer at a particular address

2018-08-08 Thread Simon Glass
Use a starting address of 256MB which should be available. This helps to make sandbox RAM buffers pointers more recognisable. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None

[U-Boot] [PATCH v9 16/18] efi: Add more debugging for memory allocations

2018-08-08 Thread Simon Glass
Add some more verbose debugging when doing memory allocations. This might help to find bugs later. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None lib/

Re: [U-Boot] [PATCH v2 3/5] gpio: stm32f7: Add ops get_alternate_function

2018-08-08 Thread Simon Glass
On 3 August 2018 at 09:01, Patrice Chotard wrote: > From: Patrick Delaunay > > Allow to display alternate function index using "gpio" command. > Example, display all gpio state : > > gpio status -a > GPIOD2: func: 12 > GPIOD3: func: 9 > GPIOE3: func: 9 > GPIOG6: func: 10 > > It's useful t

[U-Boot] [PATCH v9 08/18] efi: Rename bootefi_test_finish() to bootefi_run_finish()

2018-08-08 Thread Simon Glass
This function can be used from do_bootefi_exec() so that we use mostly the same code for a normal EFI application and an EFI test. Rename the function and use it in both places. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v8: None Changes in v7: - Drop patch "efi: Init the 'ro

[U-Boot] [PATCH v9 11/18] sandbox: Add support for calling abort()

2018-08-08 Thread Simon Glass
This function is useful to signal that the application needs to exit immediate. It can be caught with a debugger (e.g. gdb). Add a stub for it so that it can be called from within sandbox when an internal error occurs. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v8: None Change

  1   2   >