[U-Boot] [PATCH] QE/DeepSleep: add QE deepsleep support for arm

2015-04-07 Thread Zhao Qiang
Muram will power off during deepsleep, and the microcode of qe in muram will be lost, it should be reload when resume. Signed-off-by: Zhao Qiang b45...@freescale.com --- board/freescale/common/arm_sleep.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [U-Boot] [PATCH v3 0/3] i2c: sunxi: Support every i2c controller on each supported platform

2015-04-07 Thread Paul Kocialkowski
Le dimanche 05 avril 2015 à 22:59 +0200, Paul Kocialkowski a écrit : Hi Hans, Le dimanche 05 avril 2015 à 10:44 +0200, Hans de Goede a écrit : Hi, [snip] Thanks for your work on this, may I request one more change ? For sunxi I would like to also see a CONFIG_I2C0_ENABLE, the

[U-Boot] u-boot summit / miniconf this year?

2015-04-07 Thread Hans de Goede
Hi, I'm thinking about going to ELCE, assuming I will not have some schedule conflict, one of the reasons is that I would like to attend the u-boot summit / miniconf again this year. Which raises the question will it be held at ELCE again ? Regards, Hans

Re: [U-Boot] printf(%d) breaks u-boot 2015.01+

2015-04-07 Thread Heiko Schocher
Hello Pavel, Am 07.04.2015 09:56, schrieb Pavel Machek: Hi! In u-boot 2015.04-rc, as soon as execution hits printf(%d), it hangs. (Usually, that's after DRAM: message). Now, I have to admit I'm chainloading u-boot from U-Boot 2013.01.01 (Mar 25 2015 - 15:57:21) tftp 0x0140

Re: [U-Boot] printf(%d) breaks u-boot 2015.01+

2015-04-07 Thread Pavel Machek
On Mon 2015-04-06 23:02:48, Marek Vasut wrote: On Monday, April 06, 2015 at 09:23:23 PM, Pavel Machek wrote: On Mon 2015-04-06 20:48:45, Marek Vasut wrote: On Monday, April 06, 2015 at 08:14:44 PM, Pavel Machek wrote: On Mon 2015-04-06 16:59:55, Marek Vasut wrote: On Monday, April

Re: [U-Boot] [PATCH v2 3/8] sandbox: Add support for bootz

2015-04-07 Thread Sjoerd Simons
On Mon, 2015-04-06 at 15:40 -0600, Stephen Warren wrote: On 04/06/2015 03:02 PM, Sjoerd Simons wrote: Add dummy bootz_setup implementation allowing the u-boot sandbox to run bootz. This recognizes both ARM and x86 zImages to validate a valid zImage was loaded. diff --git

Re: [U-Boot] printf(%d) breaks u-boot 2015.01+

2015-04-07 Thread Pavel Machek
Hi! In u-boot 2015.04-rc, as soon as execution hits printf(%d), it hangs. (Usually, that's after DRAM: message). Now, I have to admit I'm chainloading u-boot from U-Boot 2013.01.01 (Mar 25 2015 - 15:57:21) tftp 0x0140 .../u-boot.bin Waiting for PHY auto negotiation to complete..

Re: [U-Boot] Regarding patch: http://patchwork.ozlabs.org/patch/373593/

2015-04-07 Thread Paul Kocialkowski
Hi, Le jeudi 18 décembre 2014 à 12:16 +0100, Marek Vasut a écrit : On Thursday, December 18, 2014 at 09:32:56 AM, Ramneek Mehresh wrote: Hi Marex, Following u-boot patch is pending for your review for some time. Please let me know if you have any concerns. fsl/usb: Add USB XHCI

Re: [U-Boot] [RESEND PATCH 5/6] usb: host: Add ehci-vf USB driver for ARM Vybrid SoC's

2015-04-07 Thread maitysanchayan
Hello, On 15-04-01 21:15:21, Marek Vasut wrote: On Wednesday, April 01, 2015 at 11:54:22 AM, Sanchayan Maity wrote: The commit message is missing, please fix in v2. Signed-off-by: Sanchayan Maity maitysancha...@gmail.com [...] +#define USB_NC_REG_OFFSET

Re: [U-Boot] [PATCH v3 1/3] i2c: mvtwsi: Support for up to 4 different controllers

2015-04-07 Thread Paul Kocialkowski
Le mardi 07 avril 2015 à 08:29 +0200, Hans de Goede a écrit : Hi, On 07-04-15 07:24, Heiko Schocher wrote: Hello Paul, Am 05.04.2015 09:51, schrieb Paul Kocialkowski: Orion5x, Kirkwood and Armada XP platforms come with a single TWSI (I2C) MVTWSI controller. However, other

Re: [U-Boot] Regarding patch: http://patchwork.ozlabs.org/patch/373593/

2015-04-07 Thread Ramneek Mehresh
-Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Monday, April 06, 2015 8:42 PM To: Mehresh Ramneek-B31383 Cc: u-boot; s...@denx.de Subject: Re: Regarding patch: http://patchwork.ozlabs.org/patch/373593/ On Monday, April 06, 2015 at 10:58:30 AM, Ramneek Mehresh

Re: [U-Boot] [PATCH v3 1/3] i2c: mvtwsi: Support for up to 4 different controllers

2015-04-07 Thread Hans de Goede
Hi, On 07-04-15 07:24, Heiko Schocher wrote: Hello Paul, Am 05.04.2015 09:51, schrieb Paul Kocialkowski: Orion5x, Kirkwood and Armada XP platforms come with a single TWSI (I2C) MVTWSI controller. However, other platforms using MVTWSI may come with more: this is the case on Allwinner (sunxi)

Re: [U-Boot] [PATCH v3 0/3] i2c: sunxi: Support every i2c controller on each supported platform

2015-04-07 Thread Hans de Goede
Hi, On 07-04-15 09:51, Paul Kocialkowski wrote: Le dimanche 05 avril 2015 à 22:59 +0200, Paul Kocialkowski a écrit : Hi Hans, Le dimanche 05 avril 2015 à 10:44 +0200, Hans de Goede a écrit : Hi, [snip] Thanks for your work on this, may I request one more change ? For sunxi I would like

Re: [U-Boot] u-boot summit / miniconf this year?

2015-04-07 Thread Stefano Babic
Hi Hans, On 07/04/2015 09:50, Hans de Goede wrote: Hi, I'm thinking about going to ELCE, assuming I will not have some schedule conflict, one of the reasons is that I would like to attend the u-boot summit / miniconf again this year. Which raises the question will it be held at ELCE again

[U-Boot] [PATCH] net/phy: fixup for get_phy_id

2015-04-07 Thread Shengzhou Liu
commit 3c6928fd7b0f84 net: phy: fix warnings with W=1 caused some PHYs(e.g. CS4315/CS4340) not working. This patch fixes the warning and make those special PHYs working as well. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- drivers/net/phy/phy.c | 2 +- include/phy.h | 1 +

[U-Boot] Zynq board is boken

2015-04-07 Thread Masahiro Yamada
Hi Michal, (cc Simon) Bad new. My Zedboard would not boot from MMC card with the U-Boot mainline. U-Boot hangs after printing reading system.dtb. I think, other zynq board types, too. I did git-bisect and the first bad commit is: commit 326a682358c16afcf2c7a9617e9811e72a1f0929 Author:

[U-Boot] Copy to Flash... 9Flash not Erased

2015-04-07 Thread Rudolf J Streif
I am getting the Flash not Erased error when writing to NOR flash with cp.b. I checked all of the obvious such as file exceeding the erased area etc. Below is the log including environment settings etc. You can see that about 14k of data is written and then the error occurs for a reason

[U-Boot] Question about license information

2015-04-07 Thread Viitanen, Ingrid (Nokia - FI/Espoo)
Hi, Uboot contains several header files which specify copyright information, but no license information. For example: 2: * U-Boot additions to enable a generic Exynos GPIO driver 3: * 4: * Copyright (c) 2014 Google, Inc Could you confirm which license applies to these files? Can

[U-Boot] u-boot 2015.04 on socfpga was Re: printf(%d) breaks u-boot 2015.01+

2015-04-07 Thread Pavel Machek
Hi! In u-boot 2015.04-rc, as soon as execution hits printf(%d), it hangs. (Usually, that's after DRAM: message). I tried on different board, and same hang. Does u-boot 2015.01+ work for you on socfpga? Do I need some kind of special configuration? Thanks,

Re: [U-Boot] u-boot summit / miniconf this year?

2015-04-07 Thread Thomas Petazzoni
Hello, On Tue, 07 Apr 2015 12:45:23 +0200, Stefano Babic wrote: ELC 2016 should be at the end of March (anybody knows location and date for ELC 2016 ?). We plan to start next week an online survey on the ML Location: San Diego. Dates: around early April 2016. The exact dates were announced

Re: [U-Boot] [PATCHv3 10/17] arm: socfpga: spl: Add s_init stub

2015-04-07 Thread Dinh Nguyen
On Fri, 3 Apr 2015, Marek Vasut wrote: On Tuesday, March 31, 2015 at 12:01:11 AM, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Add a stub s_init function in the board file. Why do you add this stub function ? The commit message should

Re: [U-Boot] Regarding patch: http://patchwork.ozlabs.org/patch/373593/

2015-04-07 Thread Ramneek Mehresh
-Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Tuesday, April 07, 2015 7:22 PM To: Mehresh Ramneek-B31383 Cc: u-boot; s...@denx.de Subject: Re: Regarding patch: http://patchwork.ozlabs.org/patch/373593/ On Tuesday, April 07, 2015 at 08:18:03 AM, Ramneek

Re: [U-Boot] Copy to Flash... 9Flash not Erased

2015-04-07 Thread Dirk Eibach
Hi Rudi, this sounds oddly familiar. Which gcc version are you using? 4.8? gcc 4.8 is broken for powerpc u-boot. For more background search for the Relocation issue - need help! started by Wolfgang Denk on the mailing list. Cheers Dirk ___ U-Boot

Re: [U-Boot] Regarding patch: http://patchwork.ozlabs.org/patch/373593/

2015-04-07 Thread Marek Vasut
On Tuesday, April 07, 2015 at 04:05:31 PM, Ramneek Mehresh wrote: -Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Tuesday, April 07, 2015 7:22 PM To: Mehresh Ramneek-B31383 Cc: u-boot; s...@denx.de Subject: Re: Regarding patch:

Re: [U-Boot] [PATCH 1/2] mtd: vf610_nfc: remove caching of page in buffer

2015-04-07 Thread Stefan Agner
On 2015-04-02 22:30, Bill Pringlemeir wrote: On 2 Apr 2015, ste...@agner.ch wrote: To improve performance we remember the current page in the buffer and avoid reading it twice. This implicit page cache increases complexity while does not increase performance in real world cases. This patch

Re: [U-Boot] [PATCH 1/2] mtd: vf610_nfc: mark page as dirty on block erase

2015-04-07 Thread Bill Pringlemeir
On 3 Apr 2015, scottw...@freescale.com wrote: On Fri, 2015-04-03 at 22:28 +0200, Stefan Agner wrote: Why not? IMHO, there are valid reason to do it, since we save coping data over the bus (we save copying page size - write len of bytes)... According to

Re: [U-Boot] Regarding patch: http://patchwork.ozlabs.org/patch/373593/

2015-04-07 Thread Ramneek Mehresh
-Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Tuesday, April 07, 2015 7:44 PM To: Mehresh Ramneek-B31383 Cc: u-boot; s...@denx.de Subject: Re: Regarding patch: http://patchwork.ozlabs.org/patch/373593/ On Tuesday, April 07, 2015 at 04:05:31 PM, Ramneek

Re: [U-Boot] [PATCHv3 13/17] arm: socfpga: spl: add board_init_f to SPL

2015-04-07 Thread Dinh Nguyen
On Fri, 3 Apr 2015, Marek Vasut wrote: On Tuesday, March 31, 2015 at 11:07:57 PM, Pavel Machek wrote: Hi! On Mon 2015-03-30 17:01:14, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Remap SDRAM to 0x0, and clear OCRAM's ECC in

Re: [U-Boot] Regarding patch: http://patchwork.ozlabs.org/patch/373593/

2015-04-07 Thread Marek Vasut
On Tuesday, April 07, 2015 at 08:18:03 AM, Ramneek Mehresh wrote: [...] Hi, Is this similar hardware bug to the one which MX6 PCIe is suffering ? On MX6, the bug is that you cannot reset the PCIe and PCIe PHY from software, which means that if you start PCIe in U-Boot, you cannot

Re: [U-Boot] [PATCH v2 0/80] dm: Add USB support

2015-04-07 Thread Marek Vasut
On Tuesday, April 07, 2015 at 12:38:58 AM, Simon Glass wrote: Hi Marek, Hi Simon, On 6 April 2015 at 07:13, Marek Vasut ma...@denx.de wrote: On Monday, April 06, 2015 at 01:38:13 AM, Simon Glass wrote: Hi Marek, Hi Simon, On 26 March 2015 at 13:40, Marek Vasut ma...@denx.de

Re: [U-Boot] [PATCH 1/2] mtd: vf610_nfc: remove caching of page in buffer

2015-04-07 Thread Stefan Agner
On 2015-04-07 16:24, Bill Pringlemeir wrote: On 7 Apr 2015, ste...@agner.ch wrote: On 2015-04-02 22:30, Bill Pringlemeir wrote: On 2 Apr 2015, ste...@agner.ch wrote: [snip] I also measured 'write performance' with the mtd_speedtest (performing similar patch to the Linux driver) and I

Re: [U-Boot] [PATCH 4/4] mtd: vf610_nfc: support subpage write

2015-04-07 Thread Bill Pringlemeir
On 3 Apr 2015, ste...@agner.ch wrote: I will remove the page read on NAND_CMD_SEQIN, since we memcpy the full page anyway. I also just realized that the page read actually happens always and hence slows down even full page writes... Yes, I remove this in Linux (4.0) and it corrupted things

Re: [U-Boot] [PATCH 1/2] mtd: vf610_nfc: remove caching of page in buffer

2015-04-07 Thread Bill Pringlemeir
On 7 Apr 2015, ste...@agner.ch wrote: On 2015-04-02 22:30, Bill Pringlemeir wrote: On 2 Apr 2015, ste...@agner.ch wrote: [snip] I also measured 'write performance' with the mtd_speedtest (performing similar patch to the Linux driver) and I see no difference. I think a write benchmark is

Re: [U-Boot] [PATCH] usb: hub: allow pgood_delay to be specified via env

2015-04-07 Thread Tim Harvey
On Mon, Apr 6, 2015 at 7:58 AM, Marek Vasut ma...@denx.de wrote: On Monday, April 06, 2015 at 04:05:07 PM, Tim Harvey wrote: Some USB devices break the spec and require longer warm-up times. Allow the usb_pgood_delay env variable to override the calculated time. I have encountered this

Re: [U-Boot] Regarding patch: http://patchwork.ozlabs.org/patch/373593/

2015-04-07 Thread Ramneek Mehresh
-Original Message- From: Mehresh Ramneek-B31383 Sent: Tuesday, April 07, 2015 8:12 PM To: 'Marek Vasut' Cc: u-boot; s...@denx.de Subject: RE: Regarding patch: http://patchwork.ozlabs.org/patch/373593/ -Original Message- From: Marek Vasut [mailto:ma...@denx.de]

Re: [U-Boot] [PATCH] usb: hub: allow pgood_delay to be specified via env

2015-04-07 Thread Stephen Warren
On 04/07/2015 08:52 AM, Tim Harvey wrote: On Mon, Apr 6, 2015 at 7:58 AM, Marek Vasut ma...@denx.de wrote: On Monday, April 06, 2015 at 04:05:07 PM, Tim Harvey wrote: Some USB devices break the spec and require longer warm-up times. Allow the usb_pgood_delay env variable to override the

Re: [U-Boot] [PATCH] usb: hub: allow pgood_delay to be specified via env

2015-04-07 Thread Tim Harvey
On Tue, Apr 7, 2015 at 8:34 AM, Stephen Warren swar...@wwwdotorg.org wrote: On 04/07/2015 08:52 AM, Tim Harvey wrote: On Mon, Apr 6, 2015 at 7:58 AM, Marek Vasut ma...@denx.de wrote: On Monday, April 06, 2015 at 04:05:07 PM, Tim Harvey wrote: Some USB devices break the spec and require

Re: [U-Boot] [PATCH] net/phy: fixup for get_phy_id

2015-04-07 Thread Joe Hershberger
Hi Shengzhou Liu, On Tue, Apr 7, 2015 at 5:46 AM, Shengzhou Liu shengzhou@freescale.com wrote: commit 3c6928fd7b0f84 net: phy: fix warnings with W=1 caused some PHYs(e.g. CS4315/CS4340) not working. This patch fixes the warning and make those special PHYs working as well. Signed-off-by:

Re: [U-Boot] [PATCH 4/4] mtd: vf610_nfc: support subpage write

2015-04-07 Thread Scott Wood
On Tue, 2015-04-07 at 09:48 -0400, Bill Pringlemeir wrote: On 3 Apr 2015, ste...@agner.ch wrote: I will remove the page read on NAND_CMD_SEQIN, since we memcpy the full page anyway. I also just realized that the page read actually happens always and hence slows down even full page

Re: [U-Boot] [PATCH 1/2] mtd: vf610_nfc: mark page as dirty on block erase

2015-04-07 Thread Scott Wood
On Tue, 2015-04-07 at 10:06 -0400, Bill Pringlemeir wrote: On 3 Apr 2015, scottw...@freescale.com wrote: On Fri, 2015-04-03 at 22:28 +0200, Stefan Agner wrote: Why not? IMHO, there are valid reason to do it, since we save coping data over the bus (we save copying page size - write len

Re: [U-Boot] [PATCH v3 06/17] dm: regulator: add implementation of driver model regulator uclass

2015-04-07 Thread Przemyslaw Marczak
Hello Simon, On 04/05/2015 08:30 PM, Simon Glass wrote: Hi Przemyslaw, On 3 April 2015 at 10:09, Przemyslaw Marczak p.marc...@samsung.com wrote: Hello Simon, On 03/29/2015 03:07 PM, Simon Glass wrote: Hi Przemyslaw, On 24 March 2015 at 14:30, Przemyslaw Marczak p.marc...@samsung.com

Re: [U-Boot] Copy to Flash... 9Flash not Erased

2015-04-07 Thread Rudolf Streif
Hi Dirk, this sounds oddly familiar. Which gcc version are you using? 4.8? gcc 4.8 is broken for powerpc u-boot. Thanks for the pointer. I am using gcc 4.7.2. For more background search for the Relocation issue - need help! started by Wolfgang Denk on the mailing list. I will

Re: [U-Boot] [PATCH 1/2] mtd: vf610_nfc: remove caching of page in buffer

2015-04-07 Thread Bill Pringlemeir
On 7 Apr 2015, ste...@agner.ch wrote: On 2015-04-07 16:24, Bill Pringlemeir wrote: The OOB patch also significantly decreases UbiFS mounting time in Linux. I load Linux itself via tftp/network and not using u-boot with nand. I guess I should try that. Is it UBIFS mounting time or is it

Re: [U-Boot] kbuild: include config.mk when auto.conf is not older than .config

2015-04-07 Thread Tom Rini
On Fri, Apr 03, 2015 at 12:30:25PM +0900, Masahiro Yamada wrote: Since the Kconfig conversion, config.mk has been included only when include/config/auto.conf is newer than the .config file. It causes build error if both files have the same time-stamps. It is actually possible because EXT*

Re: [U-Boot] fix makefiles to respect DTC setting

2015-04-07 Thread Tom Rini
On Mon, Apr 06, 2015 at 03:46:44PM +0200, Pavel Machek wrote: Top-level Makefile has option to select dtc binary, but it is ignored due to bug in Makefile.lib. Fix it. Signed-off-by: Pavel Machek pa...@denx.de diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index

Re: [U-Boot] [U-Boot, v3] MAKEALL: fix get_target_arch() to adjust to '-' in Status field

2015-04-07 Thread Tom Rini
On Mon, Apr 06, 2015 at 11:12:28AM +0900, Masahiro Yamada wrote: Since the Kconfig conversion, boards.cfg scanned by MAKEALL is generated by tools/genboardscfg.py. Every board is supposed to have its own MAINTAINERS that contains maintainer and status information, but, in fact, MAINTAINERS

Re: [U-Boot] [PATCH v2 34/80] dm: usb: tegra: Drop use of global controller variable

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: We don't need this anymore, so adjust the code to avoid using it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/usb/host/ehci-tegra.c | 16 +--- 1 file changed, 9 insertions(+), 7

Re: [U-Boot] [PATCH v2 33/80] dm: usb: Pass EHCI controller pointer to ehci_powerup_fixup()

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Adjust this function so that it is passed an EHCI controller pointer so that implementations can look up their controller. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

Re: [U-Boot] [PATCH v2 35/80] dm: usb: Pass EHCI controller pointer to ehci_set_usbmode()

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Adjust this function so that it is passed an EHCI controller pointer so that implementations can look up their controller. This makes the weak functions use a consistent API. Signed-off-by: Simon Glass s...@chromium.org ---

Re: [U-Boot] [PATCH v2 12/80] dm: usb: Adjust usb command to prepare for driver model

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Use 'udev' instead of 'dev' in a few places, reserving 'dev' for driver model's struct udevice. Also adjust the code in a few minor ways to make it easier to plumb in driver model. Signed-off-by: Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH v2 15/80] dm: usb: Drop the legacy USB init sequence

2015-04-07 Thread Simon Glass
On 26 March 2015 at 12:22, Marek Vasut ma...@denx.de wrote: On Wednesday, March 25, 2015 at 07:22:03 PM, Simon Glass wrote: This CONFIG is not used anywhere in U-Boot, so drop it. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Marek Vasut ma...@denx.de Applied to u-boot-dm/next.

Re: [U-Boot] [PATCH v2 22/80] dm: usb: Add driver model support for hubs

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Adjust the existing hub code to support driver model, and add a USB driver for hubs. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/usb_hub.c | 94

Re: [U-Boot] [PATCH v2 23/80] dm: usb: Move USB storage definitions to usb_defs.h

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: These are better off in a header file so they can be used by other code (e.g. the sandbox USB storage emulator). Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/usb_storage.c | 45

Re: [U-Boot] Regarding patch: http://patchwork.ozlabs.org/patch/373593/

2015-04-07 Thread Marek Vasut
On Tuesday, April 07, 2015 at 04:42:36 PM, Ramneek Mehresh wrote: -Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Tuesday, April 07, 2015 7:44 PM To: Mehresh Ramneek-B31383 Cc: u-boot; s...@denx.de Subject: Re: Regarding patch:

Re: [U-Boot] [PATCH 1/2] mtd: vf610_nfc: mark page as dirty on block erase

2015-04-07 Thread Bill Pringlemeir
On 7 Apr 2015, scottw...@freescale.com wrote: On Tue, 2015-04-07 at 10:06 -0400, Bill Pringlemeir wrote: In any case the document has, If the NAND flash supports sub-pages, then what can be done is ECC codes can be calculated on per-sub-page basis, instead of per-NAND page basis. In this

Re: [U-Boot] [PATCH v2 01/80] linker_lists: Add a function to access a linker list entry

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:21, Simon Glass s...@chromium.org wrote: Once declared, you cannot access a linker_list entry since you do not have a symbol name for it. Add llsym() macro to provide this. This avoids searching for the symbol at run-time based on name. An example usage is to declare a

Re: [U-Boot] [PATCH v2] dm: spi: Convert Freescale QSPI driver to driver model

2015-04-07 Thread Simon Glass
On 6 April 2015 at 16:47, Simon Glass s...@chromium.org wrote: On 1 April 2015 at 01:19, Peng Fan peng@freescale.com wrote: Hi Haikun, On 4/1/2015 11:10 AM, Haikun Wang wrote: Move the Freescale QSPI driver over to driver model. Signed-off-by: Haikun Wang haikun.w...@freescale.com

Re: [U-Boot] [PATCH v2] dm: eth: Provide a way for drivers to manage packet buffers

2015-04-07 Thread Simon Glass
On 5 April 2015 at 12:31, Simon Glass s...@chromium.org wrote: Hi Joe, On 3 April 2015 at 19:09, Joe Hershberger joe.hershber...@ni.com wrote: Some drivers need a chance to manage their receive buffers after the packet has been handled by the network stack. Add an operation that will allow

Re: [U-Boot] [PATCH v2 03/80] dm: test: bus: Use a local variable to simplify code

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:21, Simon Glass s...@chromium.org wrote: Adjust this test to avoid repeating the same code too often. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None test/dm/bus.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) Applied

Re: [U-Boot] [PATCH v2 14/80] dm: usb: Convert 'usb' command to support driver model

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Adjust this command to work with the new driver model uclass. It needs to iterate through multiple independent controllers to find hubs, and work through their children recursively in a different way. Otherwise the functionality

Re: [U-Boot] [PATCH v2 20/80] dm: usb: Convert core usb.c file to support driver model

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Add the required #ifdefs and remove unwanted data structures so that the USB uclass will be able to use this file. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/usb.c | 31

Re: [U-Boot] [PATCH v2 19/80] dm: usb: Complete the splitting up of usb_new_device()

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: This function now calls usb_setup_device() to set up the device and usb_hub_probe() to check if it is a hub. The XHCI special case is now a parameter to usb_setup_device(). The latter will be used by the USB uclass when it is

Re: [U-Boot] [PATCH v2 18/80] dm: usb: Split out more code from usb_new_device()

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Move the code that sets up the device with a new address into its own function, usb_prepare_device(). Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/usb.c | 72

Re: [U-Boot] [PATCH v2 13/80] dm: usb: Adjust usb_alloc_new_device() to return an error

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: This function returns NULL on error at present. Adjust it so that we can return a real error, as is needed with driver model. Also improve the error handling in its caller, usb_hub_port_connect_change(), and adjust the code order

Re: [U-Boot] [PATCH v2 17/80] dm: usb: Move descriptor setup code into its own function

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: usb_new_device() is far too long and does far too much. As a first step, move the code that does initial setup and reads a descriptor into its own function called usb_setup_descriptor(). For XHCI the init order is different - we

Re: [U-Boot] [PATCH v2 16/80] dm: usb: Refactor port resets

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Move the port reset code into its own function. Rename usb_hub_reset() to indicate that is is now a legacy function. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/usb.c | 40

[U-Boot] [PATCH] cmd_mem.c: Update 'iteration_limit' to unsigned long

2015-04-07 Thread Tom Rini
With e37f1eb we now use strict_strtoul() in do_mem_mtest() and this gives us a warning: ../include/vsprintf.h:38:5: note: expected 'long unsigned int *' but argument is of type 'int *' Signed-off-by: Tom Rini tr...@konsulko.com --- common/cmd_mem.c |2 +- 1 file changed, 1 insertion(+), 1

Re: [U-Boot] am33xx/ddr.c: Fix regression on DDR2 platforms

2015-04-07 Thread Tom Rini
On Thu, Apr 02, 2015 at 04:01:33PM -0400, Tom Rini wrote: Back in fc46bae a clean up was introduced that intended to reconcile some of the AM335x codepaths based on how AM43xx operates. Unfortunately this introduced a regression on the DDR2 platforms. This was un-noticed on DDR3 (everything

Re: [U-Boot] ahci: Fix a wrong parameter pass

2015-04-07 Thread Tom Rini
On Tue, Mar 31, 2015 at 03:02:43PM +0800, tang yuantian wrote: From: Tang Yuantian yuantian.t...@freescale.com In stead of user_buffer_size, transfer_size should be used to pass to ahci_device_data_io(). transfer_size is the length that we want the low level function to transfer each time.

Re: [U-Boot] cmd_mem: cleanups, catch bad usage

2015-04-07 Thread Tom Rini
On Wed, Apr 01, 2015 at 01:50:41PM +0200, Pavel Machek wrote: Currently, memtest will silently accept bad data. Perform error checking on user intput. Signed-off-by: Pavel Machek pa...@denx.de diff --git a/common/cmd_mem.c b/common/cmd_mem.c index bfca59e..e6623b0 100644 Applied to

Re: [U-Boot] env_sf: Fix recovery default

2015-04-07 Thread Tom Rini
On Tue, Mar 24, 2015 at 08:59:00AM +0100, Mario Schuknecht wrote: The u-boot environment is redundantly stored in a NOR flash on our boards. Redundant means that there are two places to store the environment. But only one of the two is active. I discovered that on one board the u-boot (env_sf)

Re: [U-Boot] Pull request: u-boot-spi/master

2015-04-07 Thread Tom Rini
On Tue, Mar 31, 2015 at 12:44:46PM +0530, Jagannadha Sutradharudu Teki wrote: Hi Tom, Please pull this PR. thanks! Jagan. The following changes since commit 662e2acb46250881ec26bc8366fc9eb1856cb7c2: sunxi: UTOO_P66: Add missing MAINTAINERS entry (2015-03-29 14:56:48 +0200) are

Re: [U-Boot] [PATCH v2 21/80] dm: usb: Split hub detection into its own function

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Split out the hub detection logic so it can be used by driver model. Also adjust the code to return errors correctly. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/usb_hub.c | 57

Re: [U-Boot] [PATCH v2 24/80] dm: usb: Fix type problems in usb_stor_get_info()

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: This function assumes that unsigned long is 32-bits wide, but it is not on 64-bit machines. Use the correct type, and add a few debug() lines also. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

Re: [U-Boot] [PATCH v2 25/80] dm: usb: Simply device finding code in usb_storage

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: The for() loop is not needed since the value is immediately accessible. Use this instead to simplify the code. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/usb_storage.c | 30

Re: [U-Boot] [PATCH v2 28/80] dm: usb: Convert usb_storage to driver model

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Add support for scanning USB storage devices with driver model. This mostly involves adding a USB device ID for storage devices. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/usb_storage.c | 51

Re: [U-Boot] [PATCH v2 29/80] dm: usb: Move all the EHCI weak functions together and declare them

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Put these at the top of the file so they are in one place. Also add function prototypes to the header file to avoid call site mismatches. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

Re: [U-Boot] [PATCH v2 27/80] dm: usb: Move storage device scanning into its own function

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: The usb_stor_scan() function is quite long, so split out the code that scans each device into its own function. Also, rather than setting up the block device list once at the start, set it up as each device is scanned. This makes

Re: [U-Boot] [PATCH v2 26/80] dm: usb: Adjust usb_storage to work with sandbox

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: With a few tweaks we can compile this code with sandbox and enable testing of the USB storage layer. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/usb_storage.c | 8 +--- 1 file changed, 5

Re: [U-Boot] [PATCH v2 46/80] dm: usb: Support driver model with USB keyboards

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Allow USB keyboards to work with driver model. The main difference is that we can have multiple buses (each with its own device numbering) and each bus must be scanned. Signed-off-by: Simon Glass s...@chromium.org --- Changes

Re: [U-Boot] [PATCH v2 37/80] dm: usb: ehci: Use a function to find the controller from struct udevice

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: With driver model we want to remove the controller pointer in struct udevice and use driver model data structures instead. To prepare for this, move access to this field to a function which can provide a different implementation

Re: [U-Boot] [PATCH v2 54/80] dm: usb: dts: sandbox: Add some sample USB devices to sandbox

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: These allow basic testing of the USB functionality within sandbox. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/sandbox/dts/sandbox.dts | 40 1 file

Re: [U-Boot] [PATCH v2 57/80] dm: usb: tegra: Remove the port_addr_clear_csc variable

2015-04-07 Thread Simon Glass
On 26 March 2015 at 03:01, Jim Lin ji...@nvidia.com wrote: Please ignore my question because it is answered by [PATCH v2 34/80]. On 03/26/2015 11:38 AM, Jim Lin wrote: -Original Message- From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Simon Glass Sent: Thursday,

Re: [U-Boot] [PATCH v2 53/80] dm: usb: sandbox: Add a driver for sandbox

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: This driver supports using emulation devices to provide a USB bus within sandbox. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/usb/host/Makefile | 1 + drivers/usb/host/usb-sandbox.c |

Re: [U-Boot] [PATCH v2 52/80] dm: usb: sandbox: Add an emulator for USB hub emulation

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: All USB controllers need a root hub. Add a sandbox emulation for this so that we can add USB devices to sandbox. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/usb/emul/Makefile | 1 +

Re: [U-Boot] [PATCH v2 56/80] dm: usb: exynos: Add driver model support to exynos EHCI

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Update this driver with driver model support for USB. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/usb/host/ehci-exynos.c | 112 - 1 file changed, 111

Re: [U-Boot] [PATCH] cmd_mem.c: Update 'iteration_limit' to unsigned long

2015-04-07 Thread Tom Rini
On Tue, Apr 07, 2015 at 01:57:50PM -0400, Tom Rini wrote: With e37f1eb we now use strict_strtoul() in do_mem_mtest() and this gives us a warning: ../include/vsprintf.h:38:5: note: expected 'long unsigned int *' but argument is of type 'int *' Signed-off-by: Tom Rini tr...@konsulko.com

Re: [U-Boot] [PATCH v2 07/80] dm: core: Rename driver data function to dev_get_driver_data()

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:21, Simon Glass s...@chromium.org wrote: The existing get_get_of_data() function provides access to both the driver's compatible string and its driver data. However only the latter is actually useful. Update the interface to reflect this and fix up existing users.

Re: [U-Boot] [PATCH v2 10/80] dm: gpio: Add an implementation for gpio_get_number()

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:21, Simon Glass s...@chromium.org wrote: This has a prototype but no implementation. It returns the global GPIO number given a gpio_desc. It is useful for debugging in some cases. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

Re: [U-Boot] [PATCH v2 08/80] dm: core: Mark device as active before calling uclass probe() methods

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:21, Simon Glass s...@chromium.org wrote: The uclass pre-probe functions may end up calling back into the device in some circumstances. This can fail if recursion takes place. Adjust the ordering so that we mark the device as active early, then retract this later if

Re: [U-Boot] [PATCH v2 09/80] dm: core: Add device children and sibling functions

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:21, Simon Glass s...@chromium.org wrote: Add some utility functions to check for children and for the last sibling in a device's parent. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/core/device.c | 28

Re: [U-Boot] [PATCH v2 11/80] dm: usb: Add a uclass for USB controllers

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:21, Simon Glass s...@chromium.org wrote: Add a uclass that can represent a USB controller. For now we do not create devices for things attached to the controller. This will be added later. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

Re: [U-Boot] [PATCH v2 32/80] dm: usb: tegra: Store the controller type explicitly

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: At present the tegra driver uses a separate pointer to know which controller type is in use. This works because only one controller type is used at a time. With driver model we want to make the controller state hermetic in the

Re: [U-Boot] [PATCH v2 30/80] dm: usb: Pass EHCI controller pointer to ehci_get_port_speed()

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Adjust this function so that it is passed an EHCI controller pointer so that implementations can look up their controller. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/usb/host/ehci-faraday.c

Re: [U-Boot] [PATCH v2 31/80] dm: usb: Allow ECHI to hold private data for the controller

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: Add a private data pointer that clients of EHCI can use to access their private information. This establishes a link between struct ehci_ctrl and its associated controller data structure. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v2 49/80] dm: usb: sandbox: Add a uclass for USB device emulation

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: With sandbox we want to be able to emulate USB devices so that we can test the USB stack. Add a uclass to support this. It implements the same operations as a normal USB device driver, but in this case passes them on to an

Re: [U-Boot] [PATCH v2 50/80] dm: usb: sandbox: Reset emulation devices in usb stop()

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: These devices must have their addresses removed ready for the next USB bus enumeration. Add this logic to usb_stop(). Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/usb/host/usb-uclass.c | 11

Re: [U-Boot] [PATCH v2 47/80] dm: usb: tegra: Add vbus GPIOs for nyan

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: These are needed to enable the USB bus (although not sufficient since it still does not work). Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/arm/dts/tegra124-nyan-big.dts | 2 ++ 1 file changed,

Re: [U-Boot] [PATCH v2 48/80] dm: usb: Move struct usb_string to a common place

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: This is needed for sandbox USB device emulation, so move it to a place where it can be found by things other than gadgets. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None include/linux/usb/ch9.h| 13

Re: [U-Boot] [PATCH v2 51/80] dm: usb: sandbox: Add an emulator for USB flash devices

2015-04-07 Thread Simon Glass
On 25 March 2015 at 12:22, Simon Glass s...@chromium.org wrote: This emulator supports USB enumeration and allows a local file to be provided as the contents of the emulated flash stick. U-Boot can then use the file as it would a normal device, with all access passing through the usb_stor layer

  1   2   >