[U-Boot] [PATCH v3] spi: tegra20: Add support for mode selection

2015-09-08 Thread Mirza Krak
From: Mirza Krak Respect the mode passed in set_mode ops. Signed-off-by: Mirza Krak --- Changes in v3: * Move mode selection to .set_mode ops from .claim_bus ops Changes in v2: * Refactor clearing the CPOL and CPHA bits. Based on

[U-Boot] [PATCH] gpio: atmel: Add the PIO4 driver support

2015-09-08 Thread Wenyou Yang
The PIO4 is introduced from SAMA5D2, as a new version for Atmel PIO controller. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/include/mach/atmel_pio4.h | 48 + drivers/gpio/Kconfig | 11 + drivers/gpio/Makefile|

[U-Boot] [PATCH] arm: at91: Change the Chip ID registers' addresses

2015-09-08 Thread Wenyou Yang
Provide the specific addresses for the Chip ID and Chip ID Extension registers, instead of the offset, which make it use on other chips. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/armv7/cpu.c |7 --- arch/arm/mach-at91/include/mach/at91_dbu.h |

Re: [U-Boot] [PATCH 1/4] sf: params: Add IS25LP032 part support

2015-09-08 Thread Jagan Teki
Hi Siva, On 4 September 2015 at 18:33, Jagan Teki wrote: > Added support for IS25LP032 flash part. > > Signed-off-by: Jagan Teki > Cc: Siva Durga Prasad Paladugu > Cc: Michal Simek > --- Can you test this

Re: [U-Boot] Zynq build failure

2015-09-08 Thread Jagan Teki
On 4 September 2015 at 14:22, Jagan Teki wrote: > Hi Michal/Siva, > > Any fix for this failure? > > CC spl/drivers/mtd/spi/spi_spl_load.o > drivers/mtd/spi/spi_spl_load.c: In function 'spi_load_image_os': > drivers/mtd/spi/spi_spl_load.c:26:24: error: >

Re: [U-Boot] [PATCH v3 1/9] net: Revert "tftp: adjust settings to be suitable for 100Mbit ethernet"

2015-09-08 Thread Heiko Schocher
Hello Bin, Am 28.08.2015 um 07:25 schrieb Bin Meng: Commit 620776d "tftp: adjust settings to be suitable for 100Mbit ethernet" causes the following error message when trying to load a file using 'tftp' command via a tftp server. TFTP error: 'Unsupported option(s) requested' (8) This is

Re: [U-Boot] [PATCH v3] spi: tegra20: Add support for mode selection

2015-09-08 Thread Jagan Teki
On 8 September 2015 at 14:00, Mirza Krak wrote: > From: Mirza Krak > > Respect the mode passed in set_mode ops. > > Signed-off-by: Mirza Krak Reviewed-by: Jagan Teki thanks! -- Jagan |

Re: [U-Boot] [PATCH] fs: ext4: fix symlink read function

2015-09-08 Thread Gary Bisson
Hi Simon, On Tue, Sep 8, 2015 at 5:56 AM, Simon Glass wrote: > Hi Gary, > > On 7 September 2015 at 03:20, Gary Bisson > wrote: >> Since last API changes for files >2GB, the read of symlink is broken as >> ext4fs_read_file now returns 0 instead

Re: [U-Boot] [PATCH 3/3] omap3: cm-t3517: change environment size

2015-09-08 Thread Igor Grinberg
Hi Dima, On 09/08/15 09:50, Dmitry Lifshitz wrote: > Mainline CM-T3517 U-Boot environment size differs from the that one > shipped with CM-T3517 boards. There is some strangeness in the above sentence... > > Update environment size, to avoid backward compatability issues.

[U-Boot] [PATCH 1/2] ARM: tegra124: Clear IDDQ when enabling PLLC

2015-09-08 Thread Thierry Reding
From: Thierry Reding Enabling a PLL while IDDQ is high. The Linux kernel checks for this condition and warns about it verbosely, so while this seems to work fine, fix it up according to the programming guidelines provided in the Tegra K1 TRM (v02p), Section 5.3.8.1 ("PLLC and

[U-Boot] [PATCH 2/2] ARM: tegra114: Clear IDDQ when enabling PLLC

2015-09-08 Thread Thierry Reding
From: Thierry Reding Enabling a PLL while IDDQ is high. The Linux kernel checks for this condition and warns about it verbosely, so while this seems to work fine, fix it up according to the programming guidelines provided in the Tegra K1 TRM (v02p), Section 5.3.8.1 ("PLLC and

Re: [U-Boot] [PATCH 1/3] omap3: cm-t3517: enable 'netretry' and setup timeout

2015-09-08 Thread Igor Grinberg
On 09/08/15 09:50, Dmitry Lifshitz wrote: > SBC-T3517 evaluation board has two Eth interfaces. > Enable network retry of another interface if the default if failed > or disconnected. > > Add 'netretry=yes' in the default env. Setup relevant > timeout values in the board config file. > >

Re: [U-Boot] [PATCH 2/3] omap3: cm-t3517: fix MMC1 pinmux

2015-09-08 Thread Igor Grinberg
On 09/08/15 09:50, Dmitry Lifshitz wrote: > Fix MMC1 pinmux setup, thus enable SD/MMC card support with CM-T3517. > > Signed-off-by: Dmitry Lifshitz Acked-by: Igor Grinberg > --- > board/compulab/cm_t3517/mux.c | 12 ++-- > 1

[U-Boot] [PATCH 3/3] omap3: cm-t3517: change environment size

2015-09-08 Thread Dmitry Lifshitz
Mainline CM-T3517 U-Boot environment size differs from the that one shipped with CM-T3517 boards. Update environment size, to avoid backward compatability issues. Signed-off-by: Dmitry Lifshitz --- include/configs/cm_t3517.h |4 ++-- 1 files changed, 2

[U-Boot] [PATCH 2/3] omap3: cm-t3517: fix MMC1 pinmux

2015-09-08 Thread Dmitry Lifshitz
Fix MMC1 pinmux setup, thus enable SD/MMC card support with CM-T3517. Signed-off-by: Dmitry Lifshitz --- board/compulab/cm_t3517/mux.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/board/compulab/cm_t3517/mux.c

[U-Boot] [PATCH 1/3] omap3: cm-t3517: enable 'netretry' and setup timeout

2015-09-08 Thread Dmitry Lifshitz
SBC-T3517 evaluation board has two Eth interfaces. Enable network retry of another interface if the default if failed or disconnected. Add 'netretry=yes' in the default env. Setup relevant timeout values in the board config file. Signed-off-by: Dmitry Lifshitz ---

[U-Boot] [PATCH 0/3] omap3: cm-t3517: series of non critical fixes

2015-09-08 Thread Dmitry Lifshitz
These patches fix non critical issues, required to sync CM-T3517 mainline U-Boot with the that, shipped with the boards. Dmitry Lifshitz (3): omap3: cm-t3517: enable 'netretry' and setup timeout omap3: cm-t3517: fix MMC1 pinmux omap3: cm-t3517: change environment size

Re: [U-Boot] [PATCH 2/4] spi: cadence_qspi: Fix fdt read of spi-max-frequency

2015-09-08 Thread Marek Vasut
On Tuesday, September 08, 2015 at 03:16:58 AM, Chin Liang See wrote: > Hi, Hi! > On Thu, 2015-09-03 at 16:19 +0200, ma...@denx.de wrote: > > On Thursday, September 03, 2015 at 03:42:00 PM, Chin Liang See wrote: > > > Fix the fdt read for spi-max-frequency as it's contained > > > in the child

Re: [U-Boot] [PATCH v2 7/8] nios2: show fdt blob address in board info command

2015-09-08 Thread Marek Vasut
On Tuesday, September 08, 2015 at 05:55:59 AM, Simon Glass wrote: > Hi, > > On 6 September 2015 at 08:27, Marek Vasut wrote: > > On Sunday, September 06, 2015 at 03:20:21 PM, Thomas Chou wrote: > >> Hi Marek, > >> > >> >>> I think this will not work on 64bit machines. > >> > >>

Re: [U-Boot] [PATCH v3 1/9] net: Revert "tftp: adjust settings to be suitable for 100Mbit ethernet"

2015-09-08 Thread Stefan Roese
Hi Hannes, On 08.09.2015 12:13, Hannes Schmelzer wrote: what about: https://patchwork.ozlabs.org/patch/510476/ I think the current plan is to first revert this patch for this release. To not introduce a risk of a new setup as done in the patch you are referencing above. This patch will most

Re: [U-Boot] [PATCH 2/4] spi: cadence_qspi: Fix fdt read of spi-max-frequency

2015-09-08 Thread Marek Vasut
On Tuesday, September 08, 2015 at 03:18:24 AM, Chin Liang See wrote: > Fix the fdt read for spi-max-frequency as it's contained > in the child node. Current state of code is always > returning default value. > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen

Re: [U-Boot] [PATCH 4/4] arm: dts: socfpga: Increase the spi-max-frequency for QSPI flash

2015-09-08 Thread Marek Vasut
On Tuesday, September 08, 2015 at 03:19:08 AM, Chin Liang See wrote: > With a working QSPI calibration, the SCLK can now run up to 100MHz > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen > Cc: Dinh Nguyen > Cc: Marek

Re: [U-Boot] [PATCH 01/10] usb: gadget: don't leak configs when unbinding

2015-09-08 Thread Lukasz Majewski
Hi Stephen, > From: Stephen Warren > > By the time g_dnl_unbind() is run, cdev->config has been set to NULL, > so the free() there does nothing, and the config struct is leaked. > Equally, struct usb_gadget contains a linked list of config structs, > so the code should

Re: [U-Boot] [PATCH 1/4] spi: cadence_qspi: Ensure spi_calibration is run when sclk change

2015-09-08 Thread Jagan Teki
On 8 September 2015 at 06:47, Chin Liang See wrote: > Ensuring spi_calibration is run when there is a change of sclk > frequency. This will ensure the qspi flash access works for high > sclk frequency > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen

Re: [U-Boot] [PATCH 05/10] dfu: don't keep freeing/reallocating

2015-09-08 Thread Lukasz Majewski
Hi Stephen, > From: Stephen Warren > > DFU currently allocates buffer memory at the start of each data > transfer operation and frees it at the end. Especially since > memalign() is used to allocate the buffer, and various other > allocations happen during the transfer, this

[U-Boot] [PATCH v5 0/3] add dfu support for at91 sam9260 based boards

2015-09-08 Thread Heiko Schocher
add dfu supprt for at91 sam9260 based boards. The USB gadget driver is ported from linux: c94e289f195e: usb: gadget: remove incorrect __init/__exit annotations it drops a lot of checkpatch warnings/errors: checkpatch.pl found 12 error(s), 28 warning(s), 38 checks(s) but for further updates I

Re: [U-Boot] [PATCH v3 1/9] net: Revert "tftp: adjust settings to be suitable for 100Mbit ethernet"

2015-09-08 Thread Hannes Schmelzer
Hi, what about: https://patchwork.ozlabs.org/patch/510476/ best regards, Hannes On 08.09.2015 11:23, Heiko Schocher wrote: Hello Bin, Am 28.08.2015 um 07:25 schrieb Bin Meng: Commit 620776d "tftp: adjust settings to be suitable for 100Mbit ethernet" causes the following error message when

[U-Boot] [PATCH 3/8] x86: quark: Convert to use clrbits, setbits, clrsetbits macros

2015-09-08 Thread Bin Meng
Change existing codes to use clrbits, setbits, clrsetbits macros. Signed-off-by: Bin Meng --- arch/x86/cpu/quark/quark.c | 72 ++ 1 file changed, 21 insertions(+), 51 deletions(-) diff --git a/arch/x86/cpu/quark/quark.c

[U-Boot] [PATCH 1/8] x86: galileo: Enable random mac address for Quark

2015-09-08 Thread Bin Meng
Not like other Intel Ethernet controllers (e.g.: E1000), Intel Quark SoC integrated designware Ethernet controller does not have a chipset defined way to store/restore mac address. Enable random mac address so that we can use Ethernet even without 'ethaddr'. Signed-off-by: Bin Meng

[U-Boot] [PATCH 2/8] x86: quark: Add clrbits, setbits, clrsetbits macros for message port access

2015-09-08 Thread Bin Meng
On Intel Quark, lots of registers on the message port need be programmed. Add handy clrbits, setbits, clrsetbits macros for message port access. Signed-off-by: Bin Meng --- arch/x86/include/asm/arch-quark/msg_port.h | 39 ++ 1 file changed, 39

Re: [U-Boot] [PATCH v3 1/9] net: Revert "tftp: adjust settings to be suitable for 100Mbit ethernet"

2015-09-08 Thread Hannes Schmelzer
Hi, okay ... just wanted to get sure that the patch has been noticed. best regards, Hannes On 08.09.2015 12:36, Stefan Roese wrote: Hi Hannes, On 08.09.2015 12:13, Hannes Schmelzer wrote: what about: https://patchwork.ozlabs.org/patch/510476/ I think the current plan is to first revert

Re: [U-Boot] [PATCH 4/4] arm: dts: socfpga: Increase the spi-max-frequency for QSPI flash

2015-09-08 Thread Jagan Teki
On 8 September 2015 at 16:50, Marek Vasut wrote: > On Tuesday, September 08, 2015 at 03:19:08 AM, Chin Liang See wrote: >> With a working QSPI calibration, the SCLK can now run up to 100MHz >> >> Signed-off-by: Chin Liang See >> Cc: Dinh Nguyen

Re: [U-Boot] [PATCH 1/4] spi: cadence_qspi: Ensure spi_calibration is run when sclk change

2015-09-08 Thread Marek Vasut
On Tuesday, September 08, 2015 at 02:25:54 PM, Jagan Teki wrote: > On 8 September 2015 at 16:38, Marek Vasut wrote: > > On Tuesday, September 08, 2015 at 03:17:49 AM, Chin Liang See wrote: > >> Ensuring spi_calibration is run when there is a change of sclk > >> frequency. This will

[U-Boot] [PATCH] malloc_simple: fix malloc_ptr calculation

2015-09-08 Thread Philipp Rosenberger
The gd->malloc_ptr and the gd->malloc_limit are offsets to gd->malloc_base. But the addr variable contains the absolute address. The new_ptr must be: addr + bytes - gd->malloc_base. Signed-off-by: Philipp Rosenberger --- common/malloc_simple.c | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH 1/4] spi: cadence_qspi: Ensure spi_calibration is run when sclk change

2015-09-08 Thread Marek Vasut
On Tuesday, September 08, 2015 at 03:17:49 AM, Chin Liang See wrote: > Ensuring spi_calibration is run when there is a change of sclk > frequency. This will ensure the qspi flash access works for high > sclk frequency > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen

Re: [U-Boot] [PATCH v5 5/9] arm: serial: Add ability to use pre-initialized UARTs

2015-09-08 Thread Sergei Temerkhanov
On Tue, Sep 8, 2015 at 6:56 AM, Simon Glass wrote: > Hi Sergey, > > On 7 September 2015 at 09:18, Sergey Temerkhanov > wrote: >> On some systems, UART initialization is performed before running U-Boot. >> This commit allows to skip UART

[U-Boot] [PATCH v5 2/3] usb: gadget: at91_udc: add at91_udc into U-Boot

2015-09-08 Thread Heiko Schocher
add U-Boot specific changes to the at91_udc linux driver, so it works with U-Boot. Signed-off-by: Heiko Schocher --- Changes in v5: - add comment from Andreas Biessmann: remove BIT() usage in driver, also removed patch which introduced it for U-Boot Changes in v4: None

[U-Boot] [PATCH v5 1/3] usb: gadget: at91_udc: port linux driver at91_udc

2015-09-08 Thread Heiko Schocher
port at91_udc driver from linux: original commit Message: commit c94e289f195e0e13cf34d27f9338d28221a85751 Author: Arnd Bergmann Date: Sat Apr 11 00:14:21 2015 +0200 usb: gadget: remove incorrect __init/__exit annotations A recent change introduced a link error for the

Re: [U-Boot] [PATCH 2/4] spi: cadence_qspi: Fix fdt read of spi-max-frequency

2015-09-08 Thread Jagan Teki
On 8 September 2015 at 06:48, Chin Liang See wrote: > Fix the fdt read for spi-max-frequency as it's contained > in the child node. Current state of code is always > returning default value. > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen

Re: [U-Boot] [PATCH v3 1/9] net: Revert "tftp: adjust settings to be suitable for 100Mbit ethernet"

2015-09-08 Thread Bin Meng
Hi Hannes, On Tue, Sep 8, 2015 at 6:13 PM, Hannes Schmelzer wrote: > Hi, > > what about: > https://patchwork.ozlabs.org/patch/510476/ > > best regards, > Hannes > > The patch you mentioned does not completely revert the changes. It was a mix of partial revert plus

[U-Boot] [PATCH 4/8] x86: quark: Lock HMBOUND register before jumping to kernel

2015-09-08 Thread Bin Meng
When Linux kernel boots, it hangs at: [0.829408] Intel Quark side-band driver registered This happens when Quark kernel Isolated Memory Region (IMR) driver tries to lock an IMR register to protect kernel's text and rodata sections. However in order to have IMR function correctly, HMBOUND

[U-Boot] [PATCH 5/8] x86: quark: Initialize thermal sensor properly

2015-09-08 Thread Bin Meng
Thermal sensor on Quark SoC needs to be properly initialized per Quark firmware writer guide, otherwise when booting Linux kernel, it triggers system shutdown because of wrong temperature in the thermal sensor is detected by the kernel driver (see below): [5.119819] thermal_sys: Critical

Re: [U-Boot] [PATCH 1/2] arm: socfpga: mmc: Enable calibration for drvsel and smpsel

2015-09-08 Thread Marek Vasut
On Tuesday, September 08, 2015 at 03:32:33 AM, Chin Liang See wrote: > Hi, Hi, > On Mon, 2015-09-07 at 03:33 +, Jaehoon Chung wrote: > > Hi, > > > > On 09/04/2015 07:41 PM, Pavel Machek wrote: > > > Hi! > > > > > >>> How is this SMPLSEL and DRVSEL implemented on Exynos ? > > > > >

[U-Boot] [PATCH 8/8] x86: doc: Add DMI to the TODO list

2015-09-08 Thread Bin Meng
Desktop Management Interface (DMI) is not supported by U-Boot now. Add it to the TODO list. Signed-off-by: Bin Meng --- doc/README.x86 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/README.x86 b/doc/README.x86 index f76db7f..98ad7b2 100644 --- a/doc/README.x86

[U-Boot] [PATCH 7/8] x86: doc: Document some porting hints about Intel Quark

2015-09-08 Thread Bin Meng
Document porting considerations for Intel Quark based board, including MRC parameters and PCIe initialization. Signed-off-by: Bin Meng --- doc/README.x86 | 23 +++ 1 file changed, 23 insertions(+) diff --git a/doc/README.x86 b/doc/README.x86 index

[U-Boot] [PATCH 0/8] x86: Support booting Linux kernel on Intel Galileo

2015-09-08 Thread Bin Meng
Currently U-Boot works great on Intel Galileo board, but it still has some issues when booting a Linux kernel. The issues are mainly with Isolated Memory Region (IMR) and thermal sensor support in the Linux kernel for Intel Quark SoC. For example, kernel just hangs after kernel IMR driver is

[U-Boot] [PATCH 6/8] x86: galileo: Add PCIe root port IRQ routing

2015-09-08 Thread Bin Meng
Now we have enabled PCIe root port on Quark SoC, add its PIRQ routing information in the device tree as well. Signed-off-by: Bin Meng --- arch/x86/dts/galileo.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/x86/dts/galileo.dts

Re: [U-Boot] [PATCH 3/4] spi: cadence_qspi: Ensure check for max frequency in place

2015-09-08 Thread Jagan Teki
On 8 September 2015 at 06:48, Chin Liang See wrote: > Ensure the intended SCLK frequency not exceeding the maximum > frequency. If that happen, SCLK will set to maximum frequency. > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen

Re: [U-Boot] [PATCH 1/4] spi: cadence_qspi: Ensure spi_calibration is run when sclk change

2015-09-08 Thread Jagan Teki
On 8 September 2015 at 16:38, Marek Vasut wrote: > On Tuesday, September 08, 2015 at 03:17:49 AM, Chin Liang See wrote: >> Ensuring spi_calibration is run when there is a change of sclk >> frequency. This will ensure the qspi flash access works for high >> sclk frequency >> >>

[U-Boot] [PATCH v5 3/3] at91, taurus, smartweb: add dfu support

2015-09-08 Thread Heiko Schocher
[root@pollux dfu-util]# ./src/dfu-util -l dfu-util 0.8 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2014 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to dfu-u...@lists.gnumonks.org Found DFU:

[U-Boot] DM: uclass for timer

2015-09-08 Thread Thomas Chou
Hi Simon, Shall we have a timer class in driver model? I am trying to get the base address and clock rate of timer from device tree, and use them for timer_init() in common/board_f.c and lib/time.c . As almost every board needs a timer, I wonder if it makes sense to use driver model? Or

Re: [U-Boot] [PATCH 07/10] ARM: tegra: fix malloc region sizing

2015-09-08 Thread Stephen Warren
On 09/08/2015 09:53 AM, Tom Warren wrote: > Stephen, > > Stephen Warren wrote at Friday, September 04, 2015 9:04 PM: >> From: Stephen Warren >> >> Commit 52a7c98a1772 "tegra-common: increase malloc pool len by dfu mmc file >> buffer size" updated the definition of

Re: [U-Boot] [PATCH 01/10] usb: gadget: don't leak configs when unbinding

2015-09-08 Thread Stephen Warren
On 09/08/2015 05:00 AM, Lukasz Majewski wrote: > Hi Stephen, > >> From: Stephen Warren >> >> By the time g_dnl_unbind() is run, cdev->config has been set to NULL, >> so the free() there does nothing, and the config struct is leaked. >> Equally, struct usb_gadget contains a

Re: [U-Boot] [PATCH 07/10] ARM: tegra: fix malloc region sizing

2015-09-08 Thread Tom Rini
On Tue, Sep 08, 2015 at 02:52:06PM -0700, Stephen Warren wrote: > On 09/08/2015 02:45 PM, Stephen Warren wrote: > > On 09/08/2015 09:53 AM, Tom Warren wrote: > >> Stephen, > >> > >> Stephen Warren wrote at Friday, September 04, 2015 9:04 PM: > >>> From: Stephen Warren > >>> >

Re: [U-Boot] [PATCH 07/10] ARM: tegra: fix malloc region sizing

2015-09-08 Thread Stephen Warren
On 09/08/2015 02:45 PM, Stephen Warren wrote: > On 09/08/2015 09:53 AM, Tom Warren wrote: >> Stephen, >> >> Stephen Warren wrote at Friday, September 04, 2015 9:04 PM: >>> From: Stephen Warren >>> >>> Commit 52a7c98a1772 "tegra-common: increase malloc pool len by dfu mmc file

Re: [U-Boot] [PATCH 03/10] ext4: free allocations by parse_path()

2015-09-08 Thread Lukasz Majewski
Hi Stephen, > From: Stephen Warren > > parse_path() malloc()s the entries in the array it's passed. Those > allocations must be free()d by the caller, > ext4fs_get_parent_inode_num(). Add code to do this. > > For this to work, all the array entries must be dynamically

Re: [U-Boot] [PATCH v2 09/11] net: designware: Add support to PCI designware devices

2015-09-08 Thread Simon Glass
Hi Joe, On 4 September 2015 at 23:57, Bin Meng wrote: > Hi Joe, > > On Fri, Sep 4, 2015 at 11:29 PM, Joe Hershberger > wrote: >> Hi Bin, >> >> On Wed, Sep 2, 2015 at 4:17 AM, Bin Meng wrote: >>> The Designware ethernet

Re: [U-Boot] [PATCH 10/13] sunxi: Make the fastboot buffer larger

2015-09-08 Thread Rob Herring
On Tue, Sep 1, 2015 at 2:14 AM, Maxime Ripard wrote: > On Mon, Aug 31, 2015 at 02:17:50PM -0500, Rob Herring wrote: >> On Mon, Aug 31, 2015 at 10:01 AM, Hans de Goede wrote: >> > Hi, >> > >> > On 31-08-15 16:46, Maxime Ripard wrote: >> >> >>

Re: [U-Boot] [PATCH] driver: misc: correct Kconfig entry

2015-09-08 Thread Simon Glass
Hi Peng, On 7 September 2015 at 17:56, Peng Fan wrote: > Hi, > > On Wed, Aug 26, 2015 at 06:19:38AM -0700, Simon Glass wrote: >>On 26 August 2015 at 00:41, Peng Fan wrote: >>> Should use FSL_SEC_MON, not CONFIG_FSL_SEC_MON as Kconfig entry. >>> >>>

Re: [U-Boot] [PATCH 11/13] sunxi: Add support for android boot image

2015-09-08 Thread Rob Herring
On Tue, Sep 1, 2015 at 2:08 AM, Ian Campbell wrote: > On Mon, 2015-08-31 at 16:46 +0200, Maxime Ripard wrote: >> When using the fastboot boot command, the image sent to U-Boot will be an >> Android boot image. If the support is missing, that won't obviously work, >> so we

Re: [U-Boot] [PATCH v5 3/3] at91, taurus, smartweb: add dfu support

2015-09-08 Thread Lukasz Majewski
Hi Heiko, > [root@pollux dfu-util]# ./src/dfu-util -l > dfu-util 0.8 > > Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. > Copyright 2010-2014 Tormod Volden and Stefan Schmidt > This program is Free Software and has ABSOLUTELY NO WARRANTY > Please report bugs to

Re: [U-Boot] [PATCH v5 2/3] pinctrl: add pin control uclass support

2015-09-08 Thread Linus Walleij
On Thu, Aug 27, 2015 at 5:44 AM, Masahiro Yamada wrote: > This creates a new framework for handling of pin control devices, > i.e. devices that control different aspects of package pins. Hey cool! For things like this: > +/** > + * struct pinctrl_ops - pin

Re: [U-Boot] [PATCH 02/10] ext4: avoid calling ext4fs_mount() twice, which leaks

2015-09-08 Thread Lukasz Majewski
Hi Stephen, > From: Stephen Warren > > ext4_write_file() is only called from the "fs" layer, which calls both > ext4fs_mount() and ext4fs_close() before/after calling > ext4_write_file(). Fix ext4_write_file() not to call ext4fs_mount() > again, since the mount operation

Re: [U-Boot] [PATCH] smsc95xx: Use zero length packets when RX fifo is empty

2015-09-08 Thread Joe Hershberger
On Mon, Sep 7, 2015 at 10:12 PM, Stefan Brüns wrote: > Using NAKs on empty RX fifo for bulk in transfers is the right choice > for a interrupt driven model, but U-Boot uses polling and expects an > immediate answer if there is no incoming packet. Using ZLP Bulk In

Re: [U-Boot] [PATCH 1/3] tpm: Move tpm_tis_i2c to tpm_i2c_infineon

2015-09-08 Thread Simon Glass
Hi Christophe, On 2 September 2015 at 11:54, Christophe Ricard wrote: > Hi Simon, > > Apologies for the delay. I will try to rework this patch end of this week > and send it back to you middle of next week. OK thanks, sounds good. [snip] Regards, Simon

Re: [U-Boot] [PATCH 07/10] ARM: tegra: fix malloc region sizing

2015-09-08 Thread Stephen Warren
On 09/08/2015 02:56 PM, Tom Rini wrote: > On Tue, Sep 08, 2015 at 02:52:06PM -0700, Stephen Warren wrote: >> On 09/08/2015 02:45 PM, Stephen Warren wrote: >>> On 09/08/2015 09:53 AM, Tom Warren wrote: Stephen, Stephen Warren wrote at Friday, September 04, 2015 9:04 PM: > From:

[U-Boot] [PATCH 08/10] debug_uart: Add an option to announce the debug UART

2015-09-08 Thread Simon Glass
It is useful to see a message from the debug UART early during boot so that you know things are working. Add an option to enable this. The message will be displayed as soon as debug_uart_init() is called. Signed-off-by: Simon Glass --- drivers/serial/Kconfig | 10 ++

[U-Boot] [PATCH 03/10] dm: pci: Tidy up auto-config error handling

2015-09-08 Thread Simon Glass
When the auto-configuration process fails for a device (generally due to lack of memory) we should return the error correctly so that we don't continue to try memory allocations which will fail. Adjust the code to check for errors and abort if something goes wrong. Signed-off-by: Simon Glass

[U-Boot] [PATCH 10/10] x86: chromebook_link: Enable the debug UART

2015-09-08 Thread Simon Glass
Add support for the debug UART on link. This is useful for early debugging. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/cpu.c | 7 +++ configs/chromebook_link_defconfig | 10 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 06/10] debug_uart: Adjust the declaration of debug_uart_init()

2015-09-08 Thread Simon Glass
We want to be able to add other common code to this function. So change the driver's version to have an underscore before it, just like _debug_uart_putc(). Define debug_uart_init() to call this version. Update all drivers to this new method. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 09/10] x86: Init the debug UART if enabled

2015-09-08 Thread Simon Glass
If the debug UART is enabled, get it ready for use at the earliest possible opportunity. This is not actually very early, but until we have a stack it is difficult to make it work. Signed-off-by: Simon Glass --- arch/x86/cpu/start.S | 3 +++ 1 file changed, 3 insertions(+)

[U-Boot] [PATCH 01/10] x86: chromebook_link: Expand early malloc() memory

2015-09-08 Thread Simon Glass
Now that PCI bridges are probed before relocation we need additional memory. Each PCI bridge takes 240 bytes at present since it uses the same uclass as the PCI controller. Probably we should split this out so that bridges have their own uclass. Expand the memory on link so that it works

[U-Boot] [PATCH 02/10] malloc_simple: Add debug() information

2015-09-08 Thread Simon Glass
It's useful to get a a trace of memory allocations in early init. Add a debug() call to provide that. It can be enabled by adding '#define DEBUG' to the top of the file. Signed-off-by: Simon Glass --- common/malloc_simple.c | 4 1 file changed, 4 insertions(+) diff

[U-Boot] [PATCH 07/10] debug_uart: Support board-specific UART initialisation

2015-09-08 Thread Simon Glass
Some boards need to set things up before the debug UART can be used. On these boards a call to debug_uart_init() is insufficient. When this option is enabled, the function board_debug_uart_init() will be called when debug_uart_init() is called. You can put any code here that is needed to set up

[U-Boot] [PATCH 05/10] dm: pci: Adjust pci_find_and_bind_driver() to return -EPERM

2015-09-08 Thread Simon Glass
The current code returns 0 even if it failed to find or bind a driver. The caller then has to check the returned device to see if it is NULL. It is better to return an error code in this case so that it is clear what happened. Adjust the code to return -EPERM, indicating that the device was not

[U-Boot] [PATCH 00/10] x86: Early debug enhancements

2015-09-08 Thread Simon Glass
This series adds a few more features to the debug UART, making it possible to use it even when the board needs to perform additional init for the UART to work. The debug UART is anabled on link. Some minor PCI tidy-ups are also included. Link currently does not boot due to lack of early malloc()

[U-Boot] [PATCH 04/10] dm: pci: Correct a few debug() statements

2015-09-08 Thread Simon Glass
One debug() statement is missing a newline. The other has a repeated word. Fix these. Signed-off-by: Simon Glass --- drivers/pci/pci-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index

Re: [U-Boot] [PATCH v5 3/3] at91, taurus, smartweb: add dfu support

2015-09-08 Thread Lukasz Majewski
Hi Heiko, > Hello Lukasz, > > Am 08.09.2015 um 15:45 schrieb Lukasz Majewski: > > Hi Heiko, > > > >> [root@pollux dfu-util]# ./src/dfu-util -l > >> dfu-util 0.8 > >> > >> Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. > >> Copyright 2010-2014 Tormod Volden and Stefan Schmidt

Re: [U-Boot] [PATCH 10/13] sunxi: Make the fastboot buffer larger

2015-09-08 Thread Maxime Ripard
On Tue, Sep 08, 2015 at 08:00:50AM -0500, Rob Herring wrote: > On Tue, Sep 1, 2015 at 2:14 AM, Maxime Ripard > wrote: > > On Mon, Aug 31, 2015 at 02:17:50PM -0500, Rob Herring wrote: > >> On Mon, Aug 31, 2015 at 10:01 AM, Hans de Goede > >>

Re: [U-Boot] [PATCH] net: eth: Do sanity test on eth dev before eth_get_ops(dev)->start

2015-09-08 Thread Bin Meng
Hi Joe, On Tue, Sep 8, 2015 at 11:32 PM, Joe Hershberger wrote: > Hi Bin, > > On Sat, Sep 5, 2015 at 9:38 PM, Bin Meng wrote: >> In eth_init(), eth_get_dev() can return NULL. We should do sanity >> test on eth dev before calling its start function.

Re: [U-Boot] [PATCH 2/2] ARM: tegra114: Clear IDDQ when enabling PLLC

2015-09-08 Thread Tom Warren
Thierry, > -Original Message- > From: Thierry Reding [mailto:thierry.red...@gmail.com] > Sent: Tuesday, September 08, 2015 2:38 AM > To: Tom Warren > Cc: Nicolas Chauvet; u-boot@lists.denx.de > Subject: [PATCH 2/2] ARM: tegra114: Clear IDDQ when enabling PLLC > > From: Thierry Reding

Re: [U-Boot] [PATCH] net: eth: Do sanity test on eth dev before eth_get_ops(dev)->start

2015-09-08 Thread Joe Hershberger
Hi Bin, On Tue, Sep 8, 2015 at 10:44 AM, Bin Meng wrote: > Hi Joe, > > On Tue, Sep 8, 2015 at 11:32 PM, Joe Hershberger > wrote: >> Hi Bin, >> >> On Sat, Sep 5, 2015 at 9:38 PM, Bin Meng wrote: >>> In eth_init(), eth_get_dev()

Re: [U-Boot] [PATCH v5] bitops: introduce BIT() definition

2015-09-08 Thread Tom Warren
> -Original Message- > From: Andreas Bießmann [mailto:andreas.de...@googlemail.com] > Sent: Monday, September 07, 2015 4:44 AM > To: U-Boot ML > Cc: Tom Rini; Simon Glass; Tom Warren; Stephen Warren; Lukasz Majewski; > Scott Wood; Jagan Teki; Michal Simek; Prafulla Wadaskar; Anatolij

Re: [U-Boot] Zynq build failure

2015-09-08 Thread Michal Simek
On 09/08/2015 11:48 AM, Jagan Teki wrote: > On 4 September 2015 at 14:22, Jagan Teki wrote: >> Hi Michal/Siva, >> >> Any fix for this failure? >> >> CC spl/drivers/mtd/spi/spi_spl_load.o >> drivers/mtd/spi/spi_spl_load.c: In function 'spi_load_image_os': >>

Re: [U-Boot] [PATCH 1/5] net: mdio: Add mdio_free() and mdio_unregister() API

2015-09-08 Thread Bin Meng
Hi Joe, On Fri, Sep 4, 2015 at 10:53 PM, Bin Meng wrote: > Currently there is no API to uninitialize mdio. Add two APIs for this. > > Signed-off-by: Bin Meng > --- > > common/miiphyutil.c | 19 +++ > include/miiphy.h| 2 ++ > 2 files

Re: [U-Boot] [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-09-08 Thread Stephen Warren
On 09/03/2015 03:11 PM, Marek Vasut wrote: > On Tuesday, September 01, 2015 at 09:45:12 PM, Stephen Warren wrote: >> On 08/30/2015 12:26 AM, Peng Fan wrote: >>> Hi Stephen, > > Hi, > > sorry for the delayed reply, I had to dig into the code myself. > >>> On Fri, Aug 28, 2015 at 08:05:36AM

Re: [U-Boot] [PATCH] Don't wrap to negative after 2G sectors

2015-09-08 Thread Stefan Monnier
Any chance this can make it into 2015.10? Stefan > "Stefan" == Stefan Monnier writes: > Signed-off-by: Stefan Monnier > --- > disk/part_dos.c | 29 + > include/ide.h | 8 > 2 files

Re: [U-Boot] [PATCH 1/3] net: phy: Don't create phy device when there is no phy

2015-09-08 Thread Bin Meng
Hi Joe, On Fri, Sep 4, 2015 at 7:56 PM, Bin Meng wrote: > In get_phy_device_by_mask(), when no phy is found, we should not > create any phy device. > > Signed-off-by: Bin Meng > --- > > drivers/net/phy/phy.c | 3 ++- > 1 file changed, 2 insertions(+), 1

Re: [U-Boot] [PATCH 1/2] mx6: remove SYS_SOC from board Kconfig

2015-09-08 Thread Troy Kisky
On 9/6/2015 11:59 PM, Peng Fan wrote: > Remove duplicated SYS_SOC Kconfig entry from board Kconfig, > because we have this entry in arch/arm/cpu/armv7/mx6/Kconfig. > > Signed-off-by: Peng Fan > Cc: Stefano Babic > Cc: Heiko Schocher > Cc:

[U-Boot] [PATCH] arm: mmu: Add missing volatile for reading SCTLR register

2015-09-08 Thread Alison Wang
When building u-boot with the latest Linaro toolchain, such as gcc-linaro-4.9, u-boot will hang at PCIE init on LS1021A platform. The issue is reported on http://comments.gmane.org/gmane.linux.linaro.toolchain/5163. As volatile is missing when reading SCTLR register and SCTLR is set according to

[U-Boot] [PATCH] arm: at91: clock: Add the generated clock support

2015-09-08 Thread Wenyou Yang
Some peripherals may need a second clock source that may be different from the system clock. This second clock is the generated clock (GCK) and is managed by the PMC via PMC_PCR. For simplicity, the source of the GCK is fixed to PLLA_CLK. Signed-off-by: Wenyou Yang ---

Re: [U-Boot] [PATCH] net: eth: Do sanity test on eth dev before eth_get_ops(dev)->start

2015-09-08 Thread Bin Meng
Hi Joe, On Wed, Sep 9, 2015 at 1:23 AM, Joe Hershberger wrote: > Hi Bin, > > On Tue, Sep 8, 2015 at 11:24 AM, Bin Meng wrote: >> Hi Joe, >> >> On Wed, Sep 9, 2015 at 12:01 AM, Joe Hershberger >> wrote: >>> Hi Bin, >>>

Re: [U-Boot] [PATCH] net: eth: Do sanity test on eth dev before eth_get_ops(dev)->start

2015-09-08 Thread Bin Meng
Hi Joe, On Wed, Sep 9, 2015 at 12:01 AM, Joe Hershberger wrote: > Hi Bin, > > On Tue, Sep 8, 2015 at 10:44 AM, Bin Meng wrote: >> Hi Joe, >> >> On Tue, Sep 8, 2015 at 11:32 PM, Joe Hershberger >> wrote: >>> Hi Bin, >>>

[U-Boot] [PATCH] sunxi: Fix wrong serial console setup in Forfun Q88DB tablet

2015-09-08 Thread Siarhei Siamashka
The Forfun Q88DB tablet was unbootable since commit b6006baf9c2553543e3384983d23d95efbf24fa6 ("sunxi: Move all boards to the driver-model"). Appears that this is caused by the wrong serial console setup in the SPL. The serial console should use PG3/PG4 pins according to the FEX file.

Re: [U-Boot] [PATCH v5 3/3] at91, taurus, smartweb: add dfu support

2015-09-08 Thread Heiko Schocher
Hello Lukasz, Am 08.09.2015 um 15:45 schrieb Lukasz Majewski: Hi Heiko, [root@pollux dfu-util]# ./src/dfu-util -l dfu-util 0.8 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2014 Tormod Volden and Stefan Schmidt This program is Free Software and has

Re: [U-Boot] [PATCH v2 09/11] net: designware: Add support to PCI designware devices

2015-09-08 Thread Joe Hershberger
Hi Simon, On Tue, Sep 8, 2015 at 9:22 AM, Simon Glass wrote: > Hi Joe, > > On 4 September 2015 at 23:57, Bin Meng wrote: >> Hi Joe, >> >> On Fri, Sep 4, 2015 at 11:29 PM, Joe Hershberger >> wrote: >>> Hi Bin, >>> >>> On Wed, Sep

Re: [U-Boot] [PATCH] sunxi: Fix wrong serial console setup in Forfun Q88DB tablet

2015-09-08 Thread Siarhei Siamashka
On Tue, 8 Sep 2015 17:49:08 +0300 Siarhei Siamashka wrote: > The Forfun Q88DB tablet was unbootable since commit > b6006baf9c2553543e3384983d23d95efbf24fa6 ("sunxi: Move all > boards to the driver-model"). Appears that this is caused > by the wrong serial console

Re: [U-Boot] [PATCH] net: eth: Do sanity test on eth dev before eth_get_ops(dev)->start

2015-09-08 Thread Joe Hershberger
Hi Bin, On Sat, Sep 5, 2015 at 9:38 PM, Bin Meng wrote: > In eth_init(), eth_get_dev() can return NULL. We should do sanity > test on eth dev before calling its start function. > > Signed-off-by: Bin Meng > --- > > net/eth.c | 4 > 1 file changed, 4

Re: [U-Boot] [PATCH 06/10] dfu: mmc: buffer file reads too

2015-09-08 Thread Lukasz Majewski
Hi Stephen, > From: Stephen Warren > > When writing to files in a filesystem on MMC, dfu_mmc.c buffers up the > entire file content until the end of the transaction, at which point > the file is written in one go. This allows writing files larger than > the USB transfer size

Re: [U-Boot] [PATCH 04/10] ext4: fix leak in check_filename()

2015-09-08 Thread Lukasz Majewski
Hi Stephen, > From: Stephen Warren > > root_first_block_buffer should be free()d in all cases, not just when > an error occurs. Fix the success exit path of the function to do this. > > Signed-off-by: Stephen Warren > --- > fs/ext4/ext4_common.c | 5

  1   2   >