[U-Boot] OMAP35xx boards working on master?

2017-07-29 Thread Derald Woods
Are any OMAP35xx boards/systems working since this commit: "arm: omap: Unify get_device_type() function" http://git.denx.de/?p=u-boot.git;a=commit;h=00bbe96ebabbc83777cd8d6c6fd2791c5c8cf619 I have an OMAP3EVM (3530) system which stopped booting, with the default config, at this commit. The com

[U-Boot] Please pull u-boot-x86

2017-07-29 Thread Bin Meng
Hi Tom, The following changes since commit 19d1f1a2f3ccfbf85125150f7876ce22714b38bd: Merge git://git.denx.de/u-boot-socfpga (2017-07-29 11:44:08 -0400) are available in the git repository at: git://git.denx.de/u-boot-x86.git for you to fetch changes up to 55f228b07e2d84938a88737445441e736d

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

2017-07-29 Thread Tom Rini
On Sat, Jul 29, 2017 at 05:26:45PM +0200, Marek Vasut wrote: > The following changes since commit 26722335253a9fa384ceb423419254cb00d0def1: > > rockchip: puma-rk3399: remove duplicate code (merge artifact) > (2017-07-27 14:59:04 +0200) > > are available in the git repository at: > > git://g

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

2017-07-29 Thread Tom Rini
On Sat, Jul 29, 2017 at 05:27:19PM +0200, Marek Vasut wrote: > The following changes since commit 609bf924117950b88987a5fa477acf1239bfdbc1: > > Convert CONFIG_ENV_IS_IN_ONENAND to Kconfig (2017-07-25 21:34:39 -0400) > > are available in the git repository at: > > git://git.denx.de/u-boot-so

[U-Boot] [PATCH v2 31/40] dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init()

2017-07-29 Thread Simon Glass
We want to use fsl_esdhc_init() with driver model. Move the mmc_init() out of this function so that we can use it for our common init. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/fsl_esdhc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/d

[U-Boot] [PATCH v2 26/40] dm: mmc: fsl_esdhc: Pass private data to internal functions

2017-07-29 Thread Simon Glass
With driver model we will not use mmc->priv to access driver-private data. To accomodate this, update internal functions so that we can pass the private data directly. This will allow the caller to obtain it as it prefers. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/fsl_esdh

[U-Boot] [PATCH v2 33/40] dm: mmc: fsl_esdhc: Update to support MMC operations

2017-07-29 Thread Simon Glass
This driver does not currently support CONFIG_DM_MMC_OPS. Update it to fully convert it to driver model. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/fsl_esdhc.c | 69 + 1 file changed, 64 insertions(+), 5 deletions(-) diff --g

[U-Boot] [PATCH v2 32/40] dm: mmc: fsl_esdhc: Update to support livetree

2017-07-29 Thread Simon Glass
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/fsl_esdhc.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 9796b174c8..46707c6def 10064

[U-Boot] [PATCH v2 36/40] dm: imx: cm_fx6: Add MMC support for CONFIG_BLK

2017-07-29 Thread Simon Glass
When CONFIG_BLK is enabled our weak board_mmc_init() will not be called. Since there is no clock driver for MX6 yet, we must manually enable the clocks. Signed-off-by: Simon Glass --- Changes in v2: None board/compulab/cm_fx6/cm_fx6.c | 11 +++ 1 file changed, 11 insertions(+) diff --

[U-Boot] [PATCH v2 40/40] dm: mmc: Drop CONFIG_DM_MMC_OPS

2017-07-29 Thread Simon Glass
All boards which use DM_MMC have now been converted to use DM_MMC_OPS. Drop the option and good riddance. Signed-off-by: Simon Glass --- Changes in v2: - Rebase to u-boot-mmc/master arch/arm/Kconfig | 2 -- drivers/mmc/Kconfig | 39 +-

[U-Boot] [PATCH v2 38/40] dm: imx: Move i.MX devices to use CONFIG_DM_MMC_OPS

2017-07-29 Thread Simon Glass
Now that the driver supports it, move these boards over to use driver model fully for MMC. Signed-off-by: Simon Glass --- Changes in v2: None configs/imx6q_logic_defconfig | 1 - configs/imx6qdl_icore_mmc_defconfig | 1 - configs/imx6qdl_icore_rqs_defconfig | 1 - confi

[U-Boot] [PATCH v2 28/40] dm: mmc: fsl_esdhc: Detect reset failure

2017-07-29 Thread Simon Glass
Since esdhc_reset() can fail it should return an error code. Update this and also adjust the timeout mechanism to use get_timer(), which is a more common approach. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/fsl_esdhc.c | 22 +++--- 1 file changed, 15 inserti

[U-Boot] [PATCH v2 35/40] dm: imx: cm_fx6: Add device tree for cm_fx6

2017-07-29 Thread Simon Glass
Add this file so we can use device-tree control for cm_fx6. It comes from linux 4.12. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/Makefile | 1 + arch/arm/dts/imx6q-cm-fx6.dts | 115 ++ 2 files changed, 116 insertions(+) cr

[U-Boot] saveenv command on odroid c2

2017-07-29 Thread Tyna Pelletier-Bilodeau
Hi there, I recently installed mainline u-boot on my odroid c2, that is latest release which is 2017.07. However I'm having a small issue and I don't know if it should be reported here or not, please feel free to correct me if not. I'm noticing that once it's installed, if I interrupt automati

[U-Boot] [PATCH v2 29/40] dm: mmc: fsl_esdhc: Detect init failure

2017-07-29 Thread Simon Glass
Since esdhc_init_common() can fail it should return an error code. Update this and also adjust the timeout mechanism to use get_timer(), which is a more common approach. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/fsl_esdhc.c | 9 ++--- 1 file changed, 6 insertions(+), 3

[U-Boot] [PATCH v2 34/40] dm: imx: cm_fx6: Support driver model for SATA

2017-07-29 Thread Simon Glass
Add support for using driver model for SATA with the cm_fx6 board. The old code remains for now to permit testing. Signed-off-by: Simon Glass --- Changes in v2: None board/compulab/cm_fx6/cm_fx6.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/b

[U-Boot] [PATCH v2 25/40] dm: sata: dwc_ahsata: Add support for driver model

2017-07-29 Thread Simon Glass
Update this driver to support driver model. This involves implementing the AHCI operations and reusing existing common code. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 113 +++ include/dwc_ahsata.h | 16 +++

[U-Boot] [PATCH v2 27/40] dm: mmc: fsl_esdhc: Set up common versions of operations

2017-07-29 Thread Simon Glass
Driver model wants to use the core functions in this file but accesses the driver-private data in a different way. Move the code into new 'common' functions and set up stubs to call these. Also sort the operations into alphabetical order for consistency. Signed-off-by: Simon Glass --- Changes in

[U-Boot] [PATCH v2 21/40] dm: sata: dw_sata: Set up common versions of operations

2017-07-29 Thread Simon Glass
Driver model wants to use the core functions in this file but accesses the uclass-private data in a different way. Move the code into new 'common' functions and set up stubs to call these. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 236 +++

[U-Boot] [PATCH v2 15/40] dm: sata: dw_sata: Pass uc_priv to internal functions

2017-07-29 Thread Simon Glass
With driver model sata_dev_desc[] does not exist. We still want to use the common code of this driver so update it to pass struct ahci_uc_priv * to each of these functions, instead of an integer which must be looked up in sata_dev_desc[]. Signed-off-by: Simon Glass --- Changes in v2: None driv

[U-Boot] [PATCH v2 39/40] dm: mmc: Correct Kconfig condition for SPL_DM_MMC_OPS

2017-07-29 Thread Simon Glass
This should depend on SPL_DM_MMC, not SPL_DM. For it and update the only affected board's defconfig. Signed-off-by: Simon Glass --- Changes in v2: None configs/Linksprite_pcDuino3_defconfig | 3 --- drivers/mmc/Kconfig | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-)

[U-Boot] [PATCH v2 18/40] dm: sata: dw_sata: Rename the dwc_ahsata private header

2017-07-29 Thread Simon Glass
Rename dwc_ahsata.h to indicate that it is a private header file. We plan to create another header with some public functions. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c| 2 +- drivers/ata/{dwc_ahsata.h => dwc_ahsata_priv.h} | 6 +++---

[U-Boot] [PATCH v2 24/40] dm: sata: Update the AHCI uclass to support operations

2017-07-29 Thread Simon Glass
At present the AHCI uclass is just a shell and we still use the global functions to access SATA. Fix this by adding operations to the uclass. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/sata.c | 37 + include/ahci.h | 54 ++

[U-Boot] [PATCH v2 14/40] dm: sata: dw_sata: Drop unnecessary casts

2017-07-29 Thread Simon Glass
Most of the casts in this driver are not necessary. With driver model we do not cast from void *. Update the driver to follow this rule. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 60 ++-- 1 file changed, 22 inserti

[U-Boot] [PATCH v2 06/40] dm: ide: Adjust the 'ide' command to use blk_common_cmd()

2017-07-29 Thread Simon Glass
Instead of having separate code in the 'ide' command, adjust it to use the common function. Signed-off-by: Simon Glass --- Changes in v2: None cmd/ide.c | 107 ++ 1 file changed, 3 insertions(+), 104 deletions(-) diff --git a/cmd/ide

[U-Boot] [PATCH v2 30/40] dm: mmc: fsl_esdhc: Set up platform data

2017-07-29 Thread Simon Glass
With driver model we want to store the mmc and configuration structure in platform data. Set up structure up and use it for non-DM as well. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/fsl_esdhc.c | 61 +++-- 1 file changed, 39 inse

[U-Boot] [PATCH v2 37/40] dm: imx: cm_fx6: Enable more driver model support

2017-07-29 Thread Simon Glass
Enable driver model for MMC (including BLK), SATA and USB. Note that USB does not yet work correctly since the nodes are disabled. Hopefully this can be resolved by the maintainer. Signed-off-by: Simon Glass --- Changes in v2: None configs/cm_fx6_defconfig | 8 +++- drivers/mmc/fsl_esdhc.c

[U-Boot] [PATCH v2 04/40] dm: sata: Adjust the 'sata' command to use blk_common_cmd()

2017-07-29 Thread Simon Glass
Instead of having separate code in the 'sata' command, adjust it to use the common function. Signed-off-by: Simon Glass --- Changes in v2: None cmd/sata.c | 83 +- 1 file changed, 1 insertion(+), 82 deletions(-) diff --git a/cmd/sata

[U-Boot] [PATCH v2 07/40] dm: usb: Adjust the 'usb' command to use blk_common_cmd()

2017-07-29 Thread Simon Glass
Instead of having separate code in the 'usb' command, adjust it to use the common function. Signed-off-by: Simon Glass --- Changes in v2: None cmd/usb.c | 111 ++ 1 file changed, 3 insertions(+), 108 deletions(-) diff --git a/cmd/usb

[U-Boot] [PATCH v2 11/40] dm: sata: dw_sata: Drop dwc_ahsata_rw_ncq_cmd()

2017-07-29 Thread Simon Glass
This function is not called from anywhere. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 43 --- 1 file changed, 43 deletions(-) diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index b587ec4492..

[U-Boot] [PATCH v2 20/40] dm: sata: dw_sata: More ahci_init_one() futher down

2017-07-29 Thread Simon Glass
This function will not be used with driver model and it relates to the other exported functions. Move it down next to them. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 66 1 file changed, 33 insertions(+), 33 de

[U-Boot] [PATCH v2 23/40] dm: sata: imx: Allow driver model to be used for sata

2017-07-29 Thread Simon Glass
Update the sata call to work with driver model. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-imx/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index 9e83b4221e..1017eb84f9 100644 --- a/arch/arm/ma

[U-Boot] [PATCH v2 09/40] dm: core: Add a comment about the device_remove() flags

2017-07-29 Thread Simon Glass
We should explain which flags are used for this function. Update the comment to indicate this. Signed-off-by: Simon Glass --- Changes in v2: None include/dm/device-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/device-internal.h b/include/dm/device-in

[U-Boot] [PATCH v2 13/40] dm: sata: dw_sata: Rename 'probe_ent' to uc_priv

2017-07-29 Thread Simon Glass
With driver model this becomes uclass-private data. Rename the parameter varable to reflect this. With the driver model conversion we will not have any exported functions. Move all exported functions to be together at the end of the file so that we can deal with them in one #ifdef block. Signed-o

[U-Boot] [PATCH v2 12/40] dm: sata: dw_sata: Move exported functions to the end

2017-07-29 Thread Simon Glass
With the driver model conversion we will not have any exported functions. Move all exported functions to be together at the end of the file so that we can deal with them in one #ifdef block. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 124 +

[U-Boot] [PATCH v2 17/40] dm: sata: dw_sata: Sort #include directives

2017-07-29 Thread Simon Glass
Sort the header file inclusions into the correct order. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index 63e7b7d7a1..b6915d217b

[U-Boot] [PATCH v2 08/40] dm: blk: Update return value in blk_create_devicef()

2017-07-29 Thread Simon Glass
This returns 'ret' but the value is always zero. Update it to simply return 0, for clarity. Signed-off-by: Simon Glass --- Changes in v2: None drivers/block/blk-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c

[U-Boot] [PATCH v2 05/40] dm: scsi: Adjust the 'scsi' command to use blk_common_cmd()

2017-07-29 Thread Simon Glass
Instead of having separate code in the 'scsi' command, adjust it to use the common function. Signed-off-by: Simon Glass --- Changes in v2: None cmd/scsi.c | 79 +++--- 1 file changed, 3 insertions(+), 76 deletions(-) diff --git a/cmd/scs

[U-Boot] [PATCH v2 16/40] dm: sata: dw_sata: Drop unnecessary brackets

2017-07-29 Thread Simon Glass
There is a strange &(var) coding style in this driver. Adjust it to use &var instead, which is more usual. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 98 1 file changed, 48 insertions(+), 50 deletions(-) diff

[U-Boot] [PATCH v2 10/40] dm: sata: dwc_ahsata: Make functions static

2017-07-29 Thread Simon Glass
Some functions are not called from outside this file. Make these static to make that obvious. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_

[U-Boot] [PATCH v2 22/40] dm: sata: Support driver model with the 'sata' command

2017-07-29 Thread Simon Glass
Update this command to support driver model. This has a different way of starting and stopping SATA. Signed-off-by: Simon Glass --- Changes in v2: None cmd/sata.c | 95 -- common/splash_source.c | 2 +- include/sata.h | 5 ++

[U-Boot] [PATCH v2 19/40] dm: sata: dw_sata: Drop is_ready

2017-07-29 Thread Simon Glass
This variable is set but never used. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None drivers/ata/dwc_ahsata.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index 8056bc94a3..4b89a8b788 100644 --- a/drivers/ata/dwc_ahsata.

[U-Boot] [PATCH v2 01/40] dm: core: Avoid calling dm_scan_fdt_dev() with of-platdata

2017-07-29 Thread Simon Glass
We cannot call dm_scan_fdt_dev() with of-platdata since there is no device tree. Fix this with an #if check. Fixes: 3be9a37 (dm: syscon: scan sub-nodes of the syscon node) Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to avoid calling dm_scan_fdt_dev() with of-platdata drivers/

[U-Boot] [PATCH v2 03/40] dm: blk: Add a generic function for block device commands

2017-07-29 Thread Simon Glass
Most block devices provide a command (e.g. 'sata', 'scsi', 'ide') and these commands generally do the same thing. This makes it harder to maintain this code and keep it consistent. We now have a block device interface which is either implemented by driver model (when CONFIG_BLK is enabled) or with

[U-Boot] [PATCH v2 02/40] dm: blk: Add a function to find an interface-type name

2017-07-29 Thread Simon Glass
Add a function to find the name of an interface type (e.g. "sata", "scsi") from the interface type enum. This is useful for generic code (not specific to SATA or SCSI, for example) that wants to display the type of interface it is dealing with. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 00/40] dm: sata: Complete driver-model support for SATA

2017-07-29 Thread Simon Glass
Note: This series is rebased to u-boot-mmc/master with a fix-up patch for a broken patch there. This series completes the conversion of SATA to driver model. Previous work converted SCSI including the SCSI-based SATA driver. This series converts the AHCI uclass itself, adding operations and adjus

Re: [U-Boot] [PATCH] efi_gop.c: Store gd->fb_base as uintptr_t

2017-07-29 Thread Mark Kettenis
> From: Tom Rini > Date: Sat, 29 Jul 2017 11:43:21 -0400 > > Otherwise we get a warning about assignment about making a pointer from > int without a cast. That (uintptr_t *) cast makes no sense. Either leave the member as a "void *" and use a (void *) cast, or change it to uintptr_t and use a (

[U-Boot] [PATCH] efi_gop.c: Store gd->fb_base as uintptr_t

2017-07-29 Thread Tom Rini
Otherwise we get a warning about assignment about making a pointer from int without a cast. Cc: Alexander Graf Signed-off-by: Tom Rini --- lib/efi_loader/efi_gop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c index 8

[U-Boot] [PULL] u-boot-socfpga/master

2017-07-29 Thread Marek Vasut
The following changes since commit 609bf924117950b88987a5fa477acf1239bfdbc1: Convert CONFIG_ENV_IS_IN_ONENAND to Kconfig (2017-07-25 21:34:39 -0400) are available in the git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to 9af91b7c4041a455de5f3e3da4e

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

2017-07-29 Thread Marek Vasut
The following changes since commit 26722335253a9fa384ceb423419254cb00d0def1: rockchip: puma-rk3399: remove duplicate code (merge artifact) (2017-07-27 14:59:04 +0200) are available in the git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to b108d8a0de3dd

Re: [U-Boot] [PATCH v3 00/13] usb: xhci: Add interrupt transfer support and full speed device support

2017-07-29 Thread Marek Vasut
On 07/29/2017 05:25 PM, Bin Meng wrote: > Hi Marek, > > On Fri, Jul 21, 2017 at 8:36 PM, Marek Vasut wrote: >> On 07/21/2017 02:34 PM, Bin Meng wrote: >>> Hi Marek, >>> >>> On Fri, Jul 21, 2017 at 6:06 PM, Marek Vasut wrote: On 07/21/2017 12:04 PM, Bin Meng wrote: > Hi Marek, >

Re: [U-Boot] [PATCH v3 00/13] usb: xhci: Add interrupt transfer support and full speed device support

2017-07-29 Thread Bin Meng
Hi Marek, On Fri, Jul 21, 2017 at 8:36 PM, Marek Vasut wrote: > On 07/21/2017 02:34 PM, Bin Meng wrote: >> Hi Marek, >> >> On Fri, Jul 21, 2017 at 6:06 PM, Marek Vasut wrote: >>> On 07/21/2017 12:04 PM, Bin Meng wrote: Hi Marek, On Fri, Jul 21, 2017 at 4:56 PM, Marek Vasut wrote:

Re: [U-Boot] [PATCH] Use packed structures for networking

2017-07-29 Thread Tom Rini
On Sat, Jul 29, 2017 at 12:53:36PM +0300, Denis Pynkin wrote: > 28.07.2017 00:26, Joe Hershberger wrote: > > >>>PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled > >>>by default for '-O2': > > >>So, what I've been wondering, and others have poked me about (who can > >>chime in

Re: [U-Boot] [PATCH] Use packed structures for networking

2017-07-29 Thread Denis Pynkin
28.07.2017 00:26, Joe Hershberger wrote: PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled by default for '-O2': So, what I've been wondering, and others have poked me about (who can chime in if they like), how is the kernel not also tripping over this? Great question.

Re: [U-Boot] [PATCH] Use packed structures for networking

2017-07-29 Thread Denis Pynkin
28.07.2017 00:26, Joe Hershberger wrote: PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled by default for '-O2': So, what I've been wondering, and others have poked me about (who can chime in if they like), how is the kernel not also tripping over this? Great question.

[U-Boot] [PATCH 1/1] efi_loader: notify when ExitBootServices is invoked

2017-07-29 Thread Heinrich Schuchardt
All events of type EVT_SIGNAL_EXIT_BOOT_SERVICES have to be notified when ExitBootServices is invoked. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c i