[U-Boot] [PATCH 00/12] Drop old pre-generic-board code

2016-05-14 Thread Simon Glass
The deadline for converting boards passed long ago. It is time to convert the two remaining architectures (openrisc and sh) and remove the old code. Both of these architectures will likely need work to get them running again. If this doesn't happen we could consider removing the code at some

[U-Boot] [PATCH 12/12] Drop HAVE_GENERIC_BOARD and SYS_GENERIC_BOARD options

2016-05-14 Thread Simon Glass
These are no longer used. The migration is complete. Drop these options. Signed-off-by: Simon Glass --- arch/Kconfig | 32 1 file changed, 32 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index ec12013..566f044 100644 ---

[U-Boot] [PATCH 06/12] avr32: Drop unused code in u-boot.h

2016-05-14 Thread Simon Glass
Since generic board init is enabled, this is not used. Drop it. Signed-off-by: Simon Glass --- arch/avr32/include/asm/u-boot.h | 20 1 file changed, 20 deletions(-) diff --git a/arch/avr32/include/asm/u-boot.h b/arch/avr32/include/asm/u-boot.h index

[U-Boot] [PATCH 10/12] Drop use of CONFIG_SYS_GENERIC_BOARD in U-Boot

2016-05-14 Thread Simon Glass
This option is always enabled and is about to be removed. Drop references to it. Signed-off-by: Simon Glass --- common/Makefile| 4 ++-- common/main.c | 6 -- include/watchdog.h | 3 +-- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git

[U-Boot] [PATCH 11/12] Drop references to CONFIG_SYS_GENERIC_BOARD in config files

2016-05-14 Thread Simon Glass
This option is no longer used so need not be enabled. Signed-off-by: Simon Glass --- arch/sh/include/asm/config.h | 2 -- include/configs/gr_cpci_ax2000.h | 1 - include/configs/gr_ep2s60.h| 1 - include/configs/gr_xc3s_1500.h | 1 -

[U-Boot] [PATCH 09/12] powerpc: Drop unused code related to generic board

2016-05-14 Thread Simon Glass
Since generic board init is enabled, this is not used. Drop it. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc5xxx/start.S | 3 +- arch/powerpc/cpu/ppc4xx/cpu_init.c | 7 --- arch/powerpc/cpu/ppc4xx/start.S| 4 -- arch/powerpc/include/asm/u-boot.h | 104

[U-Boot] [PATCH 07/12] m68k: Drop unused code in u-boot.h

2016-05-14 Thread Simon Glass
Since generic board init is enabled, this is not used. Drop it. Signed-off-by: Simon Glass --- arch/m68k/include/asm/u-boot.h | 39 --- 1 file changed, 39 deletions(-) diff --git a/arch/m68k/include/asm/u-boot.h

[U-Boot] [PATCH 01/12] openrisc: Drop the arch-specific board init

2016-05-14 Thread Simon Glass
It is well past the deadline for conversion to generic board init. Remove the old code. Stefan, can you test this please and perhaps send a follow-up patch if needed? Signed-off-by: Simon Glass --- arch/openrisc/lib/Makefile | 1 - arch/openrisc/lib/board.c

[U-Boot] [PATCH 08/12] mips: Drop unused code in u-boot.h

2016-05-14 Thread Simon Glass
Since generic board init is enabled, this is not used. Drop it. Signed-off-by: Simon Glass --- arch/mips/include/asm/u-boot.h | 16 1 file changed, 16 deletions(-) diff --git a/arch/mips/include/asm/u-boot.h b/arch/mips/include/asm/u-boot.h index

[U-Boot] [PATCH 04/12] sh: Fix build errors for generic board

2016-05-14 Thread Simon Glass
This includes the following fixes: - Define needed __init_end symbol - see initr_reloc_global_data() - Drop SH-specific struct bd_info - Add an empty relocate_code() function This prevents build errors with generic board, but the code will still need work. Perhaps this is a better alternative

[U-Boot] [PATCH 05/12] sh: Drop the arch-specific board init

2016-05-14 Thread Simon Glass
It is well past the deadline for conversion to generic board init. Remove the old code. Please test this and perhaps send a follow-up patch if needed. Signed-off-by: Simon Glass --- arch/sh/include/asm/config.h | 2 + arch/sh/lib/Makefile | 1 -

[U-Boot] [PATCH 03/12] board_f: Don't require CONFIG_SYS_MONITOR_BASE

2016-05-14 Thread Simon Glass
Allow this to be unset, such that gd->mon_len is invalid. This seems to be what the sh architecture does. Signed-off-by: Simon Glass --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index

[U-Boot] [PATCH 02/12] Remove/update old generic-board documentation and warning

2016-05-14 Thread Simon Glass
Remove the warning from the Makefile, since boards that do not use generic board will no longer build. Also update documentation. Signed-off-by: Simon Glass --- Makefile | 14 - README | 10 ---

Re: [U-Boot] [PATCH 5/5] ls2080ardb: Convert to distro boot

2016-05-14 Thread Bhupesh Sharma
Note that UEFI firmware support is already available on LS2080A-RDB and allows Booting distributions like CentOS on the same. Regards, Bhupesh > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of York > Sun > Sent: Saturday, May 14, 2016 1:23 AM > To:

Re: [U-Boot] Remove sh2, sh3, sh4 architecture?

2016-05-14 Thread Simon Glass
Hi, On 18 October 2015 at 10:19, Masahiro Yamada wrote: > 2015-10-19 0:54 GMT+09:00 Tom Rini : >> On Mon, Oct 19, 2015 at 12:30:43AM +0900, Masahiro Yamada wrote: >>> 2015-10-18 21:19 GMT+09:00 Simon Glass : >>> > Hi, >>> >

Re: [U-Boot] Converting openrisc to generic board

2016-05-14 Thread Simon Glass
Hi, On 19 October 2015 at 17:14, Tom Rini wrote: > On Sun, Oct 18, 2015 at 06:18:56AM -0600, Simon Glass wrote: > >> Hi Stefan, >> >> I would like to remove all the arch/*/lib/board.c files soon. >> >> Can you please take a look at converting openrisc to use generic board? >>

Re: [U-Boot] [PATCH] ARM: at91: Don't invoke spl_boot_device() twice

2016-05-14 Thread Marek Vasut
On 05/14/2016 11:42 PM, Marek Vasut wrote: > Since the spl_boot_mode() is now passed the boot device to boot from, > make use of it instead of inquiring for the boot device again. This > allows board_boot_order() to function correctly. > > Signed-off-by: Marek Vasut > Cc: Andreas

[U-Boot] [PATCH] ARM: at91: Fix PMC bit definitions

2016-05-14 Thread Marek Vasut
Add missing parenthesis around the variable into the macro. Signed-off-by: Marek Vasut Cc: Andreas Bießmann --- arch/arm/mach-at91/include/mach/at91_pmc.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[U-Boot] [PATCH] ARM: at91: sama5: Extend boot device autodetection

2016-05-14 Thread Marek Vasut
Extend the boot device autodetection from SAMA5D2 only to the entire SAMA5Dx family of microcontrollers. Signed-off-by: Marek Vasut Cc: Andreas Bießmann Cc: Wenyou Yang --- arch/arm/mach-at91/Makefile | 4

[U-Boot] [PATCH] ARM: at91: Don't invoke spl_boot_device() twice

2016-05-14 Thread Marek Vasut
Since the spl_boot_mode() is now passed the boot device to boot from, make use of it instead of inquiring for the boot device again. This allows board_boot_order() to function correctly. Signed-off-by: Marek Vasut Cc: Andreas Bießmann ---

[U-Boot] [PATCH] common: Pass the boot device into spl_boot_mode()

2016-05-14 Thread Marek Vasut
The SPL code already knows which boot device it calls the spl_boot_mode() on, so pass that information into the function. This allows the code of spl_boot_mode() avoid invokind spl_boot_device() again, but it also lets board_boot_order() correctly alter the behavior of the boot process. The later

Re: [U-Boot] [PATCH 07/20] arm: Avoid error messages in cache_v7

2016-05-14 Thread Marek Vasut
On 05/14/2016 11:22 PM, Simon Glass wrote: > Hi Marek, Hi! > On 14 May 2016 at 14:23, Marek Vasut wrote: >> On 05/14/2016 10:02 PM, Simon Glass wrote: >>> Move these to debug() like the one in check_cache range(), to save SPL >>> space. >> >> This hides cache problems, which

Re: [U-Boot] [PATCH] Rename reset to sysreset

2016-05-14 Thread Simon Glass
On 12 May 2016 at 12:03, Stephen Warren wrote: > The current reset API implements a method to reset the entire system. > In the near future, I'd like to introduce code that implements the device > tree reset bindings; i.e. the equivalent of the Linux kernel's reset API. >

Re: [U-Boot] [PATCH v2 00/25] exynos: video: Convert exynos LCD driver to use driver model

2016-05-14 Thread Simon Glass
Hi Jaehoon, On 13 May 2016 at 07:09, Jaehoon Chung wrote: > Hi Simon, > > On 05/09/2016 08:00 PM, Minkyu Kang wrote: >> Hi Jaehoon, >> >> On 08/05/16 06:25, Simon Glass wrote: >>> Hi, >>> >>> On 1 March 2016 at 18:51, Minkyu Kang wrote: Hi,

Re: [U-Boot] Adding SPI slave devices To DM

2016-05-14 Thread Simon Glass
Hi, On 14 May 2016 at 14:26, Lad, Prabhakar wrote: > Hi Simon, > > On Sat, May 14, 2016 at 8:34 PM, Simon Glass wrote: >> Hi, >> >> On 13 May 2016 at 10:58, Lad, Prabhakar wrote: >>> >>> Hello All, >>> >>> It's quite a

Re: [U-Boot] [PATCH 07/20] arm: Avoid error messages in cache_v7

2016-05-14 Thread Simon Glass
Hi Marek, On 14 May 2016 at 14:23, Marek Vasut wrote: > On 05/14/2016 10:02 PM, Simon Glass wrote: >> Move these to debug() like the one in check_cache range(), to save SPL space. > > This hides cache problems, which were visibly reported so far. > I am opposed to this patch.

Re: [U-Boot] [PATCH] mailbox: add Tegra186 HSP driver

2016-05-14 Thread Simon Glass
Hi Stephen, On 13 May 2016 at 15:52, Stephen Warren wrote: > From: Stephen Warren > > Tegra186's HSP module implements doorbells, mailboxes, semaphores, and > shared interrupts. This patch provides a driver for HSP, and hooks it > into the mailbox API.

Re: [U-Boot] [PATCH v3 1/7] efi_loader: Add network access support

2016-05-14 Thread Alexander Graf
> Am 14.05.2016 um 21:49 schrieb Simon Glass : > > Hi Alexander, > >> On 10 May 2016 at 15:25, Alexander Graf wrote: >> We can now successfully boot EFI applications from disk, but users >> may want to also run them from a PXE setup. >> >> This patch

[U-Boot] [PATCH 00/20] dm: rockchip: Move rockchip boards to to use CONFIG_BLK

2016-05-14 Thread Simon Glass
This series expands the CONFIG_BLK support to SPL, fixes up the EFI boot code and adds a few other tweaks so that all rockchip boards can move to using driver model for block devices. It also introduces snprintf() in the tiny-printf code and tidies up the mmc code a little. Overall the code size

Re: [U-Boot] Adding SPI slave devices To DM

2016-05-14 Thread Lad, Prabhakar
Hi Simon, On Sat, May 14, 2016 at 8:34 PM, Simon Glass wrote: > Hi, > > On 13 May 2016 at 10:58, Lad, Prabhakar wrote: >> >> Hello All, >> >> It's quite a long time, since I touched u-boot code, I was working on >> adding a slave SPI device to DM,

Re: [U-Boot] [PATCH 07/20] arm: Avoid error messages in cache_v7

2016-05-14 Thread Marek Vasut
On 05/14/2016 10:02 PM, Simon Glass wrote: > Move these to debug() like the one in check_cache range(), to save SPL space. This hides cache problems, which were visibly reported so far. I am opposed to this patch. Wouldn't it make more sense to completely disable printf() and co. in SPL if

[U-Boot] [PATCH 18/20] dm: mmc: Fix up mmc_bread/bwrite() prototypes for SPL

2016-05-14 Thread Simon Glass
When these functions are not compiled in, we still need to declare the correct function signature to avoid a build warnings in SPL. Fix this. Signed-off-by: Simon Glass --- drivers/mmc/mmc_private.h | 14 ++ 1 file changed, 14 insertions(+) diff --git

[U-Boot] [PATCH 17/20] dm: rockchip: mmc: Allow use of CONFIG_BLK

2016-05-14 Thread Simon Glass
Allow driver model to be used for block devices in the rockchip mmc driver. Signed-off-by: Simon Glass --- drivers/mmc/rockchip_dw_mmc.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/mmc/rockchip_dw_mmc.c

[U-Boot] [PATCH 12/20] dm: env: mmc: Convert env_mmc to support CONFIG_BLK

2016-05-14 Thread Simon Glass
Update the MMC environment code so that it works with driver-model enabled for block devices. Signed-off-by: Simon Glass --- common/env_mmc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/env_mmc.c b/common/env_mmc.c index

[U-Boot] [PATCH 14/20] dm: efi: Update for CONFIG_BLK

2016-05-14 Thread Simon Glass
This code does not currently build with driver model enabled for block devices. Update it to correct this. Signed-off-by: Simon Glass --- include/efi_loader.h | 2 +- lib/efi_loader/efi_disk.c | 61 +++ 2 files changed, 47

[U-Boot] [PATCH 19/20] dm: mmc: Use cfg directly in mmc_bind()

2016-05-14 Thread Simon Glass
This small change tidies up the code slightly. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index b7c936c..94f19ad 100644 --- a/drivers/mmc/mmc.c +++

[U-Boot] [PATCH 15/20] dm: mmc: spl: Add support for CONFIG_BLK

2016-05-14 Thread Simon Glass
Allow driver model to be used for block devices in SPL. Signed-off-by: Simon Glass --- common/spl/spl_mmc.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index cf527da..5d0c9f9 100644 ---

[U-Boot] [PATCH 16/20] dm: mmc: dwmmc: Support CONFIG_BLK

2016-05-14 Thread Simon Glass
Add support for using driver model for block devices in this driver. Signed-off-by: Simon Glass --- drivers/mmc/dw_mmc.c | 42 -- include/dwmmc.h | 7 ++- 2 files changed, 34 insertions(+), 15 deletions(-) diff --git

[U-Boot] [PATCH 11/20] rockchip: Drop SPL GPIO support for rk3288

2016-05-14 Thread Simon Glass
This is not currently used and saves a little over 1KB of SPL image size. Signed-off-by: Simon Glass --- include/configs/rk3288_common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h index

[U-Boot] [PATCH 10/20] rockchip: video: Flush the cache when the display is updated

2016-05-14 Thread Simon Glass
Enable this option to correct display artifacts when a write-back cache is in use. Signed-off-by: Simon Glass --- drivers/video/rockchip/rk_vop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index

[U-Boot] [PATCH 09/20] rockchip: Drop unnecessary SPL properties

2016-05-14 Thread Simon Glass
While we consider whether to drop use of DT in SPL, remove some unwanted properties. This reduces SPL size by about 250 bytes. Signed-off-by: Simon Glass --- configs/firefly-rk3288_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 03/20] reset: Drop the reset failure message

2016-05-14 Thread Simon Glass
This adds to code size and is not needed, since hang() will print a message. Signed-off-by: Simon Glass --- drivers/misc/reset-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/reset-uclass.c b/drivers/misc/reset-uclass.c index

[U-Boot] [PATCH 13/20] dm: mmc: Convert sdhci to support CONFIG_BLK

2016-05-14 Thread Simon Glass
Update sdhci.c so that it works with driver model enabled for block devices. Signed-off-by: Simon Glass --- drivers/mmc/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index ef7e615..5c71ab8 100644 ---

[U-Boot] [PATCH 07/20] arm: Avoid error messages in cache_v7

2016-05-14 Thread Simon Glass
Move these to debug() like the one in check_cache range(), to save SPL space. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/cache_v7.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu/armv7/cache_v7.c

[U-Boot] [PATCH 06/20] mmc: Use byte array for multipliers

2016-05-14 Thread Simon Glass
We don't need an int since no value is over 80. This saves a small amount of SPL space (about 44 bytes). Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index

[U-Boot] [PATCH 04/20] mmc: Drop mmc_register()

2016-05-14 Thread Simon Glass
This function is no longer used. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 9 - include/mmc.h | 1 - 2 files changed, 10 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 74b3d68..1ddeff4 100644 --- a/drivers/mmc/mmc.c +++

[U-Boot] [PATCH 05/20] mmc: Drop dead mmc code for non-generic MMC

2016-05-14 Thread Simon Glass
All boards that use MMC define CONFIG_GENERIC_MMC now, so we can drop this old code. Signed-off-by: Simon Glass --- cmd/mmc.c | 62 --- include/mmc.h | 4 2 files changed, 66 deletions(-) diff --git

[U-Boot] [PATCH 02/20] tiny-printf: Support snprintf()

2016-05-14 Thread Simon Glass
Add a simple version of this function for SPL. It does not check the buffer size as this would add to the code size. Signed-off-by: Simon Glass --- lib/tiny-printf.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 08/20] rockchip: Check image name for the rksd image

2016-05-14 Thread Simon Glass
We need a correct name (rk3288, rk3036) so check this to avoid a crash later. Signed-off-by: Simon Glass --- tools/rkimage.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/rkimage.c b/tools/rkimage.c index f9fdcfa..ef31cb6 100644 ---

[U-Boot] [PATCH 01/20] tiny-printf: Tidy up a few nits

2016-05-14 Thread Simon Glass
- Rename 'w' to 'width' to make it more obvious what it is used for - Use bool and int types instead of char to avoid register-masking on 32-bit machines Signed-off-by: Simon Glass --- lib/tiny-printf.c | 16 1 file changed, 8 insertions(+), 8 deletions(-)

Re: [U-Boot] [PATCH v3 1/7] efi_loader: Add network access support

2016-05-14 Thread Simon Glass
Hi Alexander, On 10 May 2016 at 15:25, Alexander Graf wrote: > We can now successfully boot EFI applications from disk, but users > may want to also run them from a PXE setup. > > This patch implements rudimentary network support, allowing a payload > to send and receive network

Re: [U-Boot] [PATCH] mailbox: implement a sandbox test

2016-05-14 Thread Simon Glass
Hi Stephen, On 13 May 2016 at 16:59, Stephen Warren wrote: > From: Stephen Warren > > This adds a sandbox mailbox implementation (provider), a test client > device, instantiates them both from Sandbox's DT, and adds a DM test > that excercises

Re: [U-Boot] [PATCH v2 20/24] dm: mmc: Add support for driver-model block devices

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Add support for enabling CONFIG_BLK with MMC. This involves changing a > few functions to use struct udevice and adding a MMC block device driver. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > >

Re: [U-Boot] [PATCH v2 21/24] dm: mmc: sandbox: Add an SD-card emulation

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Add an emulation of an SD card to sandbox, allowing MMC to be used in tests. > The emulation is very simple, supporting only card detection and reading > test data. > > Signed-off-by: Simon Glass > --- > > Changes

Re: [U-Boot] [PATCH v2 22/24] dm: sandbox: mmc: Enable building MMC code for sandbox

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Enable building the MMC code for sandbox. This increases build > coverage for sandbox. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > configs/sandbox_defconfig | 2 ++ >

Re: [U-Boot] [PATCH v2 23/24] dm: mmc: test: Add tests for MMC

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Add a simple test which checks that a sandbox-emulated SD card can be used > correctly. This tests plumbing through the MMC stack's block-device > implementaion. > > Signed-off-by: Simon Glass > --- > > Changes in

Re: [U-Boot] [PATCH v2 18/24] dm: mmc: Implement the MMC functions for block devices

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Implement the functions in mmc_legacy.c for driver-model block devices, so > that MMC can use driver model for these. This allows CONFIG_BLK to be enabled > with DM_MMC. > > Signed-off-by: Simon Glass > --- > >

Re: [U-Boot] [PATCH v2 16/24] dm: mmc: Adjust mmc_switch_part() to use a struct mmc

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Instead of looking up the MMC device by number, just pass it in. This makes > it possible to use this function with driver model. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/mmc/mmc.c

Re: [U-Boot] [PATCH v2 15/24] dm: blk: Use the correct error code for blk_get_device_by_str()

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Return -EINVAL instead of -1 in this function, to provide a more meaningful > error. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > disk/part.c | 6 +++--- > 1 file changed, 3 insertions(+), 3

Re: [U-Boot] [PATCH v2 14/24] dm: mmc: Move the device list into a separate file

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > At present the MMC subsystem maintains its own list of MMC devices. This > cannot work with driver model, which needs to maintain this itself. Move the > list code into a separate 'legacy' file. The core MMC code remains, and will >

Re: [U-Boot] [PATCH v2 19/24] dm: mmc: Add a way to bind MMC devices with driver model

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Binding an MMC device when CONFIG_BLK is enabled requires that a block > device be bound as a child of the MMC device. Add a function to do this. > The mmc_create() method will be used only when DM_BLK is disabled. > > Add an unbind

Re: [U-Boot] [PATCH v2 17/24] dm: sandbox: Only enable the sandbox MMC driver when valid

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > This driver will require generic MMC and block-device support in a future > commit. To avoid test errors, make this change now. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > >

Re: [U-Boot] [PATCH v2 13/24] dm: mmc: Set up the device pointer when using the MMC uclass

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Update the existing drivers to set up this new pointer. This will be required > by the MMC uclass. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/mmc/omap_hsmmc.c | 1 + >

Re: [U-Boot] [PATCH v2 11/24] dm: part: Drop the block_drvr table

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > This is not needed since we can use the functions provided by the legacy > block device support. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > disk/part.c | 67 >

Re: [U-Boot] [PATCH v2 12/24] dm: blk: Add a comment as to why the bdev member is needed

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > This member should be explained, since it is not obvious why it is needed. > Add a comment. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > include/blk.h | 5 + > 1 file changed, 5

Re: [U-Boot] [PATCH v2 08/24] dm: mmc: Use the new select_hwpart() API

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Avoid calling directly into the MMC code - use the new API call instead. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > cmd/mmc.c | 8 +--- > common/env_mmc.c| 4 ++--

Re: [U-Boot] [PATCH v2 09/24] dm: blk: Add functions to select a hardware partition

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > The block device uclass does not currently support selecting a particular > hardware partition but this is needed for MMC. Add it so that the blk API > can support MMC properly. > > Signed-off-by: Simon Glass >

Re: [U-Boot] [PATCH v2 10/24] dm: part: Use the legacy block driver for hardware partition support

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Drop use of the table in part.c for this feature. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > disk/part.c | 12 +--- > 1 file changed, 1 insertion(+), 11 deletions(-) Applied to

Re: [U-Boot] [PATCH v2 06/24] dm: mmc: Add a function to obtain the block device

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > The MMC block device is contained within struct mmc. But with driver model > this will not be the case. Add a function to obtain the block device. We > can later implement this for CONFIG_BLK. > > Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v2 07/24] dm: mmc: spl: Use the legacy block interface in SPL

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Bring this in for SPL so that we can use generic code for loading from > block devices. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/Makefile | 1 + > 1 file changed, 1 insertion(+)

Re: [U-Boot] [PATCH v2 05/24] dm: mmc: Implement the select_hwpart() method

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Implement this method so that hardware partitions will work correctly with > MMC. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/mmc/mmc.c | 22 ++ > 1 file changed,

Re: [U-Boot] [PATCH v2 02/24] dm: core: Allow device names to be freed automatically

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Some devices have a name that is stored in allocated memory. At present > there is no mechanism to free this memory when the device is unbound. > > Add a device flag to track whether a name is allocated and a function to > add the

Re: [U-Boot] [PATCH v2 04/24] dm: mmc: Move mmc_switch_part() above its callers

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > This function is defined after it is used. In preparation for making it > static, move it up a little. Also drop the printf() which should not appear > in a driver. > > Signed-off-by: Simon Glass > --- > > Changes

Re: [U-Boot] [PATCH v2 44/44] dm: sandbox: Enable systemace

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Enable building the systemace code for sandbox. This increases build > coverage for sandbox. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > include/configs/sandbox.h | 4 > 1 file changed,

Re: [U-Boot] [PATCH v2 03/24] dm: blk: Free the block device name when unbound

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Mark the device name as allocated so that it will be freed correctly when the > device is unbound. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/block/blk-uclass.c | 12 ++-- >

Re: [U-Boot] [PATCH v2 43/44] dm: systemace: Add driver-mode block-device support

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Add support for CONFIG_BLK to the systemace driver. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/block/systemace.c | 44 > 1 file changed,

Re: [U-Boot] [PATCH v2 01/24] dm: blk: Fix allocation of block-device numbering

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass wrote: > Due to code ordering the block devices are not numbered sequentially. Fix > this. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/block/blk-uclass.c | 18 +- > 1 file

Re: [U-Boot] [PATCH v2 42/44] dm: systemace: Reorder function to avoid forward declarataions

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Move the systemace_get_dev() function below systemace_read() so that we can > avoid a forward declaration. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/block/systemace.c | 57 >

Re: [U-Boot] [PATCH v2 41/44] dm: blk: Add a easier way to create a named block device

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Add a function that automatically builds the device name given the parent > and a supplied string. Most callers will want to do this, so putting this > functionality in one place makes more sense. > > Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v2 40/44] dm: blk: Allow blk_create_device() to allocate the device number

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Allow a devnum parameter of -1 to indicate that the device number should be > alocated automatically. The next highest available device number for that > interface type is used. > > Signed-off-by: Simon Glass >

Re: [U-Boot] [PATCH v2 39/44] dm: sandbox: Enable SATA

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Enable building the SATA code for sandbox. This increases build coverage > for sandbox. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > include/configs/sandbox.h | 3 +++ > 1 file changed, 3

Re: [U-Boot] [PATCH v2 37/44] dm: sandbox: Enable SCSI

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Enable building the SCSI code for sandbox. This increases build coverage > for sandbox. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > include/configs/sandbox.h | 6 ++ > 1 file changed, 6

Re: [U-Boot] [PATCH v2 38/44] dm: sata: Add support for driver-model block devices

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Add driver-model block-device support to the SATA implementation. This is > just a dummy implementation for now, since the SATA low-level API uses > numbered devices and that doesn't fit with driver model. > > Signed-off-by: Simon

Re: [U-Boot] [PATCH v2 36/44] dm: scsi: Add support for driver-model block devices

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Add driver-model block-device support to the SCSI implementation. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > common/scsi.c | 32 > 1 file changed, 32

Re: [U-Boot] [PATCH v2 33/44] dm: part: Drop the get_dev() method

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > This is now handled by the legacy block driver. The get_dev() method is > no-longer used. Drop it. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > include/part.h | 1 - > 1 file changed, 1

Re: [U-Boot] [PATCH v2 35/44] dm: sandbox: Enable IDE

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Enable building the IDE code for sandbox. This is for build coverage only. > It does not currently work. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Update the commit message to indicate that IDE

Re: [U-Boot] [PATCH v2 34/44] dm: ide: Add support for driver-model block devices

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Add driver-model block-device support to the IDE implementation. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > common/ide.c | 32 > include/ide.h | 8

Re: [U-Boot] [PATCH v2 32/44] dm: sandbox: Drop the host_get_dev() function

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > This function is implemented by the legacy block functions now. Drop it. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > disk/part.c | 2 +- > drivers/block/sandbox.c | 10 --

Re: [U-Boot] [PATCH v2 31/44] dm: blk: Drop the systemace.h header

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > This has nothing of consequence. Remove it and its only inclusion site. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/block/systemace.c | 1 - > include/systemace.h | 10

Re: [U-Boot] [PATCH v2 28/44] dm: scsi: Drop the get_dev() function

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > This function is implemented by the legacy block functions now. Drop it. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > common/scsi.c | 7 --- > common/spl/spl_sata.c | 2 +- >

Re: [U-Boot] [PATCH v2 29/44] dm: sata: Drop the get_dev() function

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > This function is implemented by the legacy block functions now. Drop it. > > We cannot yet make sata_dev_desc[] private to common/sata.c as it is used by > the SATA drivers. This will require the SATA interface to be reworked. > >

Re: [U-Boot] [PATCH v2 26/44] dm: ide: Drop the get_dev() function

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > This function is implemented by the legacy block functions now. Drop it. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > common/ide.c | 7 --- > disk/part.c| 2 +- > include/part.h | 2

Re: [U-Boot] [PATCH v2 27/44] dm: mmc: Drop the get_dev() function

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > This function is implemented by the legacy block functions now. Drop it. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > cmd/mmc.c | 2 +- > disk/part.c | 1 - > drivers/mmc/mmc.c

Re: [U-Boot] [PATCH v2 30/44] dm: systemace: Drop the get_dev() function

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > This function is implemented by the legacy block functions now. Drop it. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > disk/part.c | 2 +- > drivers/block/systemace.c | 14

Re: [U-Boot] [PATCH v2 24/44] dm: disk: Use legacy block driver info for block device access

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Instead of calling xx_get_dev() functions for each interface type, use the > new legacy block driver which can provide the device through its interface. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None

Re: [U-Boot] [PATCH v2 25/44] dm: usb: Drop the get_dev() function

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > This function is implemented by the legacy block functions now. Drop it. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > board/cm5200/fwupdate.c | 2 +- > cmd/usb.c | 16

Re: [U-Boot] [PATCH v2 21/44] dm: scsi: Separate the non-command code into its own file

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > At present the SCSI command code includes both the command-processing code > and the core SCSI functions and data structures. > > Separate the latter into its own file, adding functions as needed to avoid > the command code accessing

Re: [U-Boot] [PATCH v2 22/44] dm: ide: Separate the non-command code into its own file

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > > At present the IDE command code includes both the command-processing code > and the core IDE functions and data structures. > > Separate the latter into its own file, adding functions as needed to avoid > the command code accessing

Re: [U-Boot] [PATCH v2 23/44] dm: sata: Separate the non-command code into its own file

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > At present the SATA command code includes both the command-processing code > and the core SATA functions and data structures. > > Separate the latter into its own file, adding functions as needed to avoid > the command code accessing

Re: [U-Boot] [PATCH v2 19/44] dm: mmc: Add a legacy block interface for MMC

2016-05-14 Thread Simon Glass
On 1 May 2016 at 11:36, Simon Glass wrote: > Add a legacy block interface for MMC. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/mmc/mmc.c | 30 +++--- > 1 file changed, 27 insertions(+), 3 deletions(-)

  1   2   >