[U-Boot] [Patch V3 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-07 Thread Gong Qianyu
From: Gong Qianyu In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to the dest memory. Signed-off-by: Gong Qian

[U-Boot] [Patch V3 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2016-01-07 Thread Gong Qianyu
From: Gong Qianyu In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu --- V3: - No change. V2: - New patch

[U-Boot] [Patch V3 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-07 Thread Gong Qianyu
From: Gong Qianyu It might be missed when converting spi_flash_probe() in cmd_sf.c. This commit refers to fbb099183e3a53f77a975964cdf2e73d11e565af. Signed-off-by: Gong Qianyu --- V3: - Remove redundant operations for saveenv() V2: - New patch. common/env_sf.c | 35 +

[U-Boot] [Patch V3 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-07 Thread Gong Qianyu
From: Gong Qianyu This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] priv->regs = (struct

Re: [U-Boot] [Patch V2 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-07 Thread Qianyu Gong
> -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Friday, January 08, 2016 11:34 AM > To: Gong Qianyu > Cc: U-Boot Mailing List ; Mingkai Hu > ; r58...@freescale.com; yao.y...@freescale.com; > Jagan Teki > Subject: Re: [Patch V2 4/4] dm

Re: [U-Boot] [PATCH v2 03/13] drivers: pinctrl: Add pinctrl driver for Microchip PIC32 microcontroller

2016-01-07 Thread Purna Chandra Mandal
On 01/08/2016 09:04 AM, Simon Glass wrote: > Hi Purna, > > On 4 January 2016 at 07:00, Purna Chandra Mandal > wrote: >> Signed-off-by: Purna Chandra Mandal >> > Please add a commit message. Ack. will add. >> --- >> >> Changes in v2: >> - add routine to configure pin properties >> >> drivers/p

[U-Boot] [PATCH v1] mmc: rockchip: the non-removable property must point to emmc

2016-01-07 Thread Lin Huang
the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it. Signed-off-by: Lin Huang --- drivers/mmc/rockchip_dw_mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index aeaec6c..9b4268e

[U-Boot] [PATCH] mmc: rockchip: the non-removable property must point to emmc

2016-01-07 Thread Lin Huang
the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it. Signed-off-by: Lin Huang --- drivers/mmc/rockchip_dw_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c inde

Re: [U-Boot] [PATCH v5] colibri_vf: Add board_usb_phy_mode function

2016-01-07 Thread maitysanchayan
Hello, On 16-01-07 22:12:29, Stefano Babic wrote: > Hi, > > On 07/01/2016 21:02, maitysancha...@gmail.com wrote: > > Hello Stefano, > > > > Ping? > > > > I just checked the master branch and this has not been picked up yet. > > > > Can you check ? I see: > > commit 01a8cf91513981d05bf89840d7

Re: [U-Boot] [RFC v2 PATCH] get_maintainer: fix perl 5.22/5.24 deprecated/incompatible "\C" use

2016-01-07 Thread Heiko Schocher
Hello Wolfgang, Am 07.01.2016 um 17:13 schrieb Wolfgang Denk: Dear Heiko, In message <1452170739-31351-1-git-send-email...@denx.de> you wrote: running get_maintainer.pl drops warnings with PERL > 5.22 . In linux this is fixed though above commit. ACK. But ... I get differences when runnin

[U-Boot] [PATCH] mmc: rockchip: the non-removable property must point to emmc

2016-01-07 Thread Lin Huang
the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it. Signed-off-by: Lin Huang --- drivers/mmc/rockchip_dw_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c inde

Re: [U-Boot] [PATCH v2 2/9] devicetree: support list of Device Tree in DEFAULT_DEVICE_TREE

2016-01-07 Thread Simon Glass
Hi Thomas, On 5 January 2016 at 18:49, Thomas Chou wrote: > Support list of Device Tree in DEFAULT_DEVICE_TREE. Each DT in the > list will be compiled. The first will be used as default to ship. > > Signed-off-by: Thomas Chou > --- > v2 > add list support as Simon suggested. > > dts/Kconfig

Re: [U-Boot] [PATCH] usb: Define USB_MAX_STOR_DEV in only one place

2016-01-07 Thread Simon Glass
Hi Marek, On 7 January 2016 at 15:50, Marek Vasut wrote: > On Thursday, January 07, 2016 at 11:16:08 PM, Simon Glass wrote: >> We can define this in the header file and use it in usb_storage.c. There is >> no need to define it twice. Remove the #define from usb_storage.c. >> >> Signed-off-by: Sim

Re: [U-Boot] [PATCH RFC 4/4] defconfig: am437x_sk_evm: enable usb driver model

2016-01-07 Thread Simon Glass
On 4 January 2016 at 07:03, Mugunthan V N wrote: > enable spi driver model for am437x_sk_evm as usb xhci-omap > supports driver model > > Signed-off-by: Mugunthan V N > --- > configs/am437x_sk_evm_defconfig | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH RFC 2/4] drivers: usb: xhci-omap: convert driver to adopt driver model

2016-01-07 Thread Simon Glass
On 4 January 2016 at 07:03, Mugunthan V N wrote: > Adopt usb xhci-omap to driver model > > Signed-off-by: Mugunthan V N > --- > drivers/usb/host/xhci-omap.c | 77 > > 1 file changed, 77 insertions(+) Reviewed-by: Simon Glass ___

Re: [U-Boot] [PATCH RFC 3/4] arm: dts: am4372: add xhci-omap compatible to host node

2016-01-07 Thread Simon Glass
On 4 January 2016 at 07:03, Mugunthan V N wrote: > since dwc3 node can support both host and device mode, but U-boot > driver for host and device are separate driver, adding host > compatible for host usb node. > > Signed-off-by: Mugunthan V N > --- > arch/arm/dts/am4372.dtsi | 2 +- > 1 file ch

Re: [U-Boot] [PATCH 2/3] usb: Allow up to 7 storage devices

2016-01-07 Thread Simon Glass
On 3 January 2016 at 14:23, Marek Vasut wrote: > On Sunday, January 03, 2016 at 09:50:30 PM, Simon Glass wrote: >> The current limit of 5 is not enough for the driver model USB tests. Really >> we should not have a limit but the driver model code still uses the >> usb_dev_desc[] array, which has a

Re: [U-Boot] [PATCH 1/8] fdt: Fix up stdout correctly in fdt_fixup_stdout()

2016-01-07 Thread Simon Glass
Hi Bin, On 31 December 2015 at 01:53, Bin Meng wrote: > When CONFIG_OF_STDOUT_VIA_ALIAS is on, always fix up kernel's stdout > string with hardcoded CONFIG_CONS_INDEX. > > This actually reverts commit 3e303f748cf57fb23e8ec95ab7eac0074be50e2b > "fdt_support: Add multi-serial support for stdout fix

Re: [U-Boot] [PATCH 00/10] Add support for Rockchip RK3288 Ethernet

2016-01-07 Thread Simon Glass
Hi Sjoerd, On 4 January 2016 at 01:32, Sjoerd Simons wrote: > On Sun, 2016-01-03 at 12:52 -0700, Simon Glass wrote: >> Hi Sjoerd, >> >> On 1 October 2015 at 03:48, Sjoerd Simons > .uk> wrote: >> > >> > >> > This series adds support for the GMAC Ethernet interface on RK3288 >> > SoC >> >> Are you

Re: [U-Boot] [Patch V2 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-07 Thread Simon Glass
Hi, On 15 December 2015 at 03:32, Gong Qianyu wrote: > It might be missed when converting spi_flash_probe() in cmd_sf.c. > > This commit refers to fbb099183e3a53f77a975964cdf2e73d11e565af. > > Signed-off-by: Gong Qianyu > --- > V2: > - New Patch. > > common/env_sf.c | 49 ++

Re: [U-Boot] [PATCH v1 6/6] rockchip: kylin: Check fastboot request

2016-01-07 Thread Simon Glass
On 4 January 2016 at 00:50, Jeffy Chen wrote: > We will save boot mode flag in grf's os_reg[0], if fastboot > requested or fastboot key pressed, try to enter fastboot mode > at preboot stage. > > Signed-off-by: Jeffy Chen > --- > > board/kylin/kylin_rk3036/kylin_rk3036.c | 32 +++

Re: [U-Boot] [PATCH v2 03/13] drivers: pinctrl: Add pinctrl driver for Microchip PIC32 microcontroller

2016-01-07 Thread Simon Glass
Hi Purna, On 4 January 2016 at 07:00, Purna Chandra Mandal wrote: > Signed-off-by: Purna Chandra Mandal > Please add a commit message. > --- > > Changes in v2: > - add routine to configure pin properties > > drivers/pinctrl/Kconfig | 6 + > drivers/pinctrl/Makefile| 1 + >

Re: [U-Boot] [PATCH v1 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-07 Thread Simon Glass
Hi Jeffy, On 4 January 2016 at 00:50, Jeffy Chen wrote: > The android kernel is using appended dtb by default, and store > ramdisk right after kernel & dtb. > So we needs to relocate ramdisk, and use atags to pass params. > > Signed-off-by: Jeffy Chen > --- > > include/configs/kylin_rk3036.h |

Re: [U-Boot] [PATCH v1 4/6] rockchip: kylin: Add default gpt partition table

2016-01-07 Thread Simon Glass
On 4 January 2016 at 00:50, Jeffy Chen wrote: > Add default android gpt partition table for kylin board. > > Use "gpt write mmc 0 $partitions" to apply. > > Signed-off-by: Jeffy Chen > --- > > include/configs/kylin_rk3036.h | 29 + > 1 file changed, 29 insertions(+)

Re: [U-Boot] [PATCH v1 3/6] rockchip: rk3036: Bind GPIO banks

2016-01-07 Thread Simon Glass
On 4 January 2016 at 00:50, Jeffy Chen wrote: > Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding. > > Signed-off-by: Jeffy Chen > --- > > drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8 > 1 file changed, 8 insertions(+) Acked-by: Simon Glass

Re: [U-Boot] [PATCH 2/3] sunxi: add support for LPDDR3 for A83T

2016-01-07 Thread Vishnu Patekar
Hello Hans, On Thu, Jan 7, 2016 at 10:04 PM, Hans de Goede wrote: > Hi, > > > On 06-01-16 17:11, Vishnu Patekar wrote: >> >> Banana-pi M3 has LPDDR3 DRAM. this adds support for LPDDR3 for A83T. >> Mostly the timing parameters are different from DDR3. >> >> Signed-off-by: Vishnu Patekar >> --- >>

Re: [U-Boot] [PATCH v1 2/6] ARM: bootm: Try to use relocated ramdisk

2016-01-07 Thread Simon Glass
Hi Jeffy, On 4 January 2016 at 00:50, Jeffy Chen wrote: > After boot_ramdisk_high(), ramdisk would be relocated to > initrd_start & initrd_end, so use them instead of rd_start & rd_end. > > Signed-off-by: Jeffy Chen > --- > > arch/arm/lib/bootm.c | 5 - > 1 file changed, 4 insertions(+), 1

Re: [U-Boot] [PATCH] image: fix getenv_bootm_size() function

2016-01-07 Thread Simon Glass
Hi Masahiro, On 17 December 2015 at 22:17, Masahiro Yamada wrote: > Currently, this function returns wrong size if "bootm_low" is defined, > but "bootm_size" is not. > > Signed-off-by: Masahiro Yamada > --- > > common/image.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff

Re: [U-Boot] [PATCH v1 1/6] common/image-fdt.c: Make boot_get_fdt() perform a check for Android images

2016-01-07 Thread Simon Glass
On 4 January 2016 at 00:50, Jeffy Chen wrote: > Android images don't have a fdt. > > Signed-off-by: Jeffy Chen > --- > > common/image-fdt.c | 4 > 1 file changed, 4 insertions(+) Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 1/3] sunxi: groundwork to support new dram type for A83T

2016-01-07 Thread Vishnu Patekar
Hello Hans, On Thu, Jan 7, 2016 at 10:01 PM, Hans de Goede wrote: > Hi, > > On 06-01-16 17:11, Vishnu Patekar wrote: >> >> Different A83T boards have different DRAM types. Banapi M3 has LPDDR3, >> Allwinner Homlet 1.2 has DDR3. >> >> This adds groundwork to support for new DRAM type for A83T. >>

Re: [U-Boot] [PATCH 06/11] imx: imx-common: introduce boot auxiliary core

2016-01-07 Thread Ye Li
Hi Stefan, On 1/7/2016 4:52 PM, Peng Fan wrote: Hi Stefan, On Wed, Jan 06, 2016 at 10:59:17PM -0800, Stefan Agner wrote: On 2016-01-04 21:56, Peng Fan wrote: From: Peng Fan To boot a auxiliary core in asymmetric multicore system, introduce the new command "bootaux"

Re: [U-Boot] [PATCH] fdt: fix setting MAC addresses for multiple interfaces

2016-01-07 Thread Lev Iserovich
Hi Bin, On 01/06/2016 09:42 PM, Bin Meng wrote: Could you please elaborate more under what situation the offset of '/aliases' will change? I believe the offset of '/aliases' will change because we're editing the device tree in place (adding the MAC address to it where it wasn't before), and '

[U-Boot] [PATCH v2] fdt: fix setting MAC addresses for multiple interfaces

2016-01-07 Thread Lev Iserovich
For multiple ethernet interfaces the FDT offset of '/aliases' will change as we are adding MAC addresses to the FDT. Therefore only the first interface ('ethernet0') will get properly updated in the FDT, with the rest getting FDT errors when we try to set their MAC address. Signed-off-by: Lev Ise

[U-Boot] u-boot building

2016-01-07 Thread Flavio Leonel
Good afternoon friends! I am new to the u-boot I have a unifi ubiquiti AC outdoor this with a bootloader version CEF I wanted to put the u-boot again It would be possible without having to rewrite the flash? ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Fabio Estevam
Hi Bin, On Fri, Jan 8, 2016 at 12:18 AM, Bin Meng wrote: > Yep, agreed. I can send a patch if others don't object :) If you send it, please add a 'Tested-by: Fabio Estevam ' on the imx patch. Thanks for your patience, Fabio Estevam ___ U-Boot mailin

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Bin Meng
Hi Fabio, On Fri, Jan 8, 2016 at 10:09 AM, Fabio Estevam wrote: > Hi Bin, > > On Thu, Jan 7, 2016 at 10:46 PM, Bin Meng wrote: > >> The pci_hose_read_config_byte_via_dword() and >> pci_hose_read_config_word_via_dword() only return -1 if the error >> number < 0. What if I call: >> >> u32 data; >>

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Fabio Estevam
Hi Bin, On Thu, Jan 7, 2016 at 10:46 PM, Bin Meng wrote: > The pci_hose_read_config_byte_via_dword() and > pci_hose_read_config_word_via_dword() only return -1 if the error > number < 0. What if I call: > > u32 data; > ret = pci_read_config_dword(dev, PCI_VENDOR_ID, &data); > > This will fail wi

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Bin Meng
Hi Marek, On Fri, Jan 8, 2016 at 8:35 AM, Marek Vasut wrote: > On Friday, January 08, 2016 at 01:31:17 AM, Bin Meng wrote: >> On Fri, Jan 8, 2016 at 8:15 AM, Fabio Estevam wrote: >> > On Thu, Jan 7, 2016 at 10:02 PM, Bin Meng wrote: >> >> What new feature would benefit from this? These two PCIe

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Bin Meng
On Fri, Jan 8, 2016 at 8:46 AM, Bin Meng wrote: > Hi Fabio, > > On Thu, Jan 7, 2016 at 9:31 PM, Fabio Estevam wrote: >> On Thu, Jan 7, 2016 at 10:58 AM, Bin Meng wrote: >> >>> Ah, yes! Sorry I wanted to say the original proposal to "return 0" >>> instead. But now I failed to understand why this

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Bin Meng
Hi Fabio, On Thu, Jan 7, 2016 at 9:31 PM, Fabio Estevam wrote: > On Thu, Jan 7, 2016 at 10:58 AM, Bin Meng wrote: > >> Ah, yes! Sorry I wanted to say the original proposal to "return 0" >> instead. But now I failed to understand why this fixed the issue >> because those error numbers are not zer

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Marek Vasut
On Friday, January 08, 2016 at 01:31:17 AM, Bin Meng wrote: > On Fri, Jan 8, 2016 at 8:15 AM, Fabio Estevam wrote: > > On Thu, Jan 7, 2016 at 10:02 PM, Bin Meng wrote: > >> What new feature would benefit from this? These two PCIe drivers are > >> non-DM drivers and DM PCI is not utilizing those e

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Bin Meng
On Fri, Jan 8, 2016 at 8:15 AM, Fabio Estevam wrote: > On Thu, Jan 7, 2016 at 10:02 PM, Bin Meng wrote: > >> What new feature would benefit from this? These two PCIe drivers are >> non-DM drivers and DM PCI is not utilizing those error codes, instead >> DM PCI is using U-Boot standard error codes

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Fabio Estevam
On Thu, Jan 7, 2016 at 10:02 PM, Bin Meng wrote: > What new feature would benefit from this? These two PCIe drivers are > non-DM drivers and DM PCI is not utilizing those error codes, instead > DM PCI is using U-Boot standard error codes. but what prevents DM PCI to use the kernel error codes in

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Bin Meng
Hi Fabio, On Fri, Jan 8, 2016 at 12:49 AM, Fabio Estevam wrote: > On Thu, Jan 7, 2016 at 2:28 PM, Tom Rini wrote: >> On Thu, Jan 07, 2016 at 11:31:06AM -0200, Fabio Estevam wrote: >>> On Thu, Jan 7, 2016 at 10:58 AM, Bin Meng wrote: >>> >>> > Ah, yes! Sorry I wanted to say the original proposal

Re: [U-Boot] [PATCH v1 05/16] usb: ulpi: Add Kconfig options for ULPI

2016-01-07 Thread Simon Glass
Hi, On 7 January 2016 at 15:12, Mateusz Kulikowski wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 06.01.2016 21:49, Marek Vasut wrote: >> On Wednesday, January 06, 2016 at 07:21:17 PM, Mateusz Kulikowski wrote: >>> The following options can be now enabled via defconfig: >>> - C

Re: [U-Boot] [PATCH] usb: Define USB_MAX_STOR_DEV in only one place

2016-01-07 Thread Marek Vasut
On Thursday, January 07, 2016 at 11:16:08 PM, Simon Glass wrote: > We can define this in the header file and use it in usb_storage.c. There is > no need to define it twice. Remove the #define from usb_storage.c. > > Signed-off-by: Simon Glass I guess you build tested this properly, right ? Revi

Re: [U-Boot] [PATCH v1 05/16] usb: ulpi: Add Kconfig options for ULPI

2016-01-07 Thread Marek Vasut
On Thursday, January 07, 2016 at 11:12:27 PM, Mateusz Kulikowski wrote: > On 06.01.2016 21:49, Marek Vasut wrote: > > On Wednesday, January 06, 2016 at 07:21:17 PM, Mateusz Kulikowski wrote: > >> The following options can be now enabled via defconfig: > >> - CONFIG_USB_ULPI > >> - CONFIG_USB_ULPI_V

[U-Boot] [PATCH] usb: Define USB_MAX_STOR_DEV in only one place

2016-01-07 Thread Simon Glass
We can define this in the header file and use it in usb_storage.c. There is no need to define it twice. Remove the #define from usb_storage.c. Signed-off-by: Simon Glass --- common/usb_storage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/usb_storage.c b/common/usb_storage.c index

Re: [U-Boot] [PATCH v1 05/16] usb: ulpi: Add Kconfig options for ULPI

2016-01-07 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 06.01.2016 21:49, Marek Vasut wrote: > On Wednesday, January 06, 2016 at 07:21:17 PM, Mateusz Kulikowski wrote: >> The following options can be now enabled via defconfig: >> - CONFIG_USB_ULPI >> - CONFIG_USB_ULPI_VIEWPORT >> - CONFIG_USB_ULPI_VIEW

Re: [U-Boot] [PATCH v7 3/9] armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure

2016-01-07 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07.01.2016 16:06, Michal Simek wrote: > On 6.1.2016 14:04, Mateusz Kulikowski wrote: >> On 14.10.2015 18:55, Sergey Temerkhanov wrote: [...] >> >> Idea: perhaps after this series is merged we can add 2 new commands to >> u-boot (SMC/HVC) to >>

Re: [U-Boot] [PATCH v5] colibri_vf: Add board_usb_phy_mode function

2016-01-07 Thread Stefano Babic
Hi, On 07/01/2016 21:02, maitysancha...@gmail.com wrote: > Hello Stefano, > > Ping? > > I just checked the master branch and this has not been picked up yet. > Can you check ? I see: commit 01a8cf91513981d05bf89840d768e9c060ee998b Author: Sanchayan Maity Date: Thu Nov 12 11:47:35 2015 +053

Re: [U-Boot] [PATCH] fdt: fix address cell count checking in fdt_translate_address()

2016-01-07 Thread Simon Glass
+Stephen On 4 January 2016 at 17:59, Simon Glass wrote: > Hi Przemyslaw, > > On 5 November 2015 at 23:47, Stefan Roese wrote: >> On 06.11.2015 04:16, Simon Glass wrote: >>> >>> Hi, >>> >>> On 3 November 2015 at 02:57, Przemyslaw Marczak >>> wrote: Hello All, On 10/29/20

Re: [U-Boot] [PATCH 3/3] dm: usb: Add a remove() method for USB keyboards

2016-01-07 Thread Simon Glass
On 3 January 2016 at 21:08, Simon Glass wrote: > Hi Joe, > > On Jan 3, 2016 9:04 PM, "Joe Hershberger" wrote: >> >> Hi Simon, >> >> On Sun, Jan 3, 2016 at 2:50 PM, Simon Glass wrote: >> > At present USB keyboards are not properly removed with driver model. Add >> > the >> > code to handle this.

Re: [U-Boot] [PATCH] net: Fix delay in net_retry test

2016-01-07 Thread Simon Glass
On 7 January 2016 at 09:32, Simon Glass wrote: > On 21 December 2015 at 15:31, Joe Hershberger wrote: >> Introduced in 45b4773 (net/arp: account for ARP delay, avoid duplicate >> packets on timeout) >> >> Check the arp timeout and adjust the timeout start time before the call >> to eth_recv() so

Re: [U-Boot] [PATCH 1/3] dm: Disable all SPI and SPI flash tests

2016-01-07 Thread Simon Glass
On 3 January 2016 at 13:50, Simon Glass wrote: > This subsystem has been broken since commit: > > 4efad20a sf: Update status reg check in spi_flash_cmd_wait_ready > > There has so far been no response from the maintainer, and a release is > imminent. For now, let's just disable the tests. > > S

[U-Boot] [PATCH 2/3] arm: mx5: m53evk: Minor tweaks to the default env

2016-01-07 Thread Marek Vasut
Polish the environment a bit, add two new variables so that the MMC boot and root partitions are not explicitly hard-coded in the env. Use one less if condition in the try_bootscript and handle possible mmc rescan failure there. Signed-off-by: Marek Vasut Cc: Stefano Babic --- include/configs/m

Re: [U-Boot] [PATCH] fdt: __of_translate_address(): check parent's 'ranges' before translate

2016-01-07 Thread Stephen Warren
On 01/07/2016 04:40 AM, Przemyslaw Marczak wrote: The present implementation of __of_translate_address() taken from the Linux, is designed for translate bus/child address mappings by using 'ranges' property - and it doesn't allow for checking an address for a device's node with zero size-cells.

Re: [U-Boot] [PATCH] fdt: Allow fdt_translate_address() to work with buses

2016-01-07 Thread Stephen Warren
On 01/07/2016 04:43 AM, Przemyslaw Marczak wrote: Hello, On 01/05/2016 06:26 PM, Stephen Warren wrote: On 01/05/2016 08:47 AM, Przemyslaw Marczak wrote: Hello, On 01/05/2016 02:00 AM, Simon Glass wrote: Hi Stephen, On 4 January 2016 at 13:15, Stephen Warren wrote: On 01/03/2016 04:04 PM,

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

2016-01-07 Thread Tom Rini
On Thu, Jan 07, 2016 at 10:32:08PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks! > Jagan. > > The following changes since commit 78680314c53a95c0bb25e942662979843b60d7b9: > > Merge branch 'master' of http://git.denx.de/u-boot-sunxi (2015-12-27 > 09:15:57 -0500) >

[U-Boot] [PATCH v3 4/4] arm: socfpga: Enable SPL_DM_SEQ_ALIAS for all SOCFPGA configs

2016-01-07 Thread Nathan Rossi
This feature is required in SPL to enable support for loading from SPI flash. Also clean up the #define in socfpga_common.h. Signed-off-by: Nathan Rossi Reviewed-by: Stefan Roese Cc: Dinh Nguyen Cc: Chin-Liang See Cc: Marek Vasut Cc: Stefan Roese --- v2: Added this patch v3: Dropped config

[U-Boot] [PATCH v3 3/4] arm: mvebu: Select SPL_DM_SEQ_ALIAS

2016-01-07 Thread Nathan Rossi
Select SPL_DM_SEQ_ALIAS which is required for certain uclasses, specifically SPI Flash. Signed-off-by: Nathan Rossi Reviewed-by: Stefan Roese Cc: Albert Aribaud Cc: Stefan Roese --- v2: Added this patch v3: no changes. --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/a

[U-Boot] [PATCH v3 0/4] Change DM_SEQ_ALIAS to be configurable for SPL

2016-01-07 Thread Nathan Rossi
Add a config option for SPL_DM_SEQ_ALIAS and enable it for the Zynq targets which require it for SPI flash support in SPL. Changes in v2: * Add patches to enable the config for mvebu and socfpga targets. Changes in v3: * Removed de0nano and mcvevk boards from socfpga config patch Nathan Ross

[U-Boot] [PATCH v3 1/4] spl: dm: Add SPL_DM_SEQ_ALIAS config option

2016-01-07 Thread Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured. The config option is disabled by default to reduce code size for targets that are not interested or do not require this feature. Signed-off-by: Nat

Re: [U-Boot] [PATCH] powerpc, mpc5xxx: fix missing bootflag init

2016-01-07 Thread york sun
On 11/25/2015 12:46 AM, Heiko Schocher wrote: > since: > commit: f05ad9ba "Add a way to skip relocation" > > tqm5200s board fails to boot. Reason is that > board_init_f has a function parameter bootflag, > which is not setup in > in arch/powerpc/cpu/mpc5xxx/start.S _start > > So board_init_f gets

Re: [U-Boot] [PATCH V3] imx: mx7: fix the temperature checking for Rev1.1

2016-01-07 Thread Stefano Babic
On 04/01/2016 14:12, Peng Fan wrote: > To TO1.0, we can not rely on finish bit to read temperature. But to > TO1.1, the issue was fixed by IC, we can rely on finish bit for > temperature reading for TO1.1. > > Signed-off-by: Peng Fan > Cc: Stefano Babic > Cc: Tim Harvey > Cc: Fabio Estevam > C

Re: [U-Boot] [PATCH] pfuze: Fix unsigned variable for less-than-zero comparison

2016-01-07 Thread Stefano Babic
On 04/01/2016 08:26, Peng Fan wrote: > From: "Ye.Li" > > According to the Coverity result, a unsigned int variable is used fo less- > than-zero comparison, the result is never true. Need to fix the variable > type to signed int. > > Signed-off-by: Ye.Li > Signed-off-by: Peng Fan > Cc: Przemysl

Re: [U-Boot] [PATCH v2 1/3] phy: atheros: Use ar8035_config for AR8031

2016-01-07 Thread Stefano Babic
On 05/01/2016 20:02, Fabio Estevam wrote: > From: Fabio Estevam > > Commit 08ad9b068afb88 (" ar8031: modify the config func of ar8031 to > ar8021_config") selected 'ar8021_config' as the configuration function > for AR8031. > > The correct would be to use 'ar8035_config' instead as AR8031/AR8035

Re: [U-Boot] [PATCH v2 3/3] wandboard: Simplify the Ethernet PHY configuration

2016-01-07 Thread Stefano Babic
On 05/01/2016 20:02, Fabio Estevam wrote: > From: Fabio Estevam > > As per the AR8031 datasheet: > > "For a reliable power on reset, suggest to keep asserting the reset > low long enough (10ms) to ensure the clock is stable and clock-to-reset > 1ms requirement is satisfied." > > So do as sugges

Re: [U-Boot] [RFC v2 PATCH] get_maintainer: fix perl 5.22/5.24 deprecated/incompatible "\C" use

2016-01-07 Thread Wolfgang Denk
Dear Heiko, In message <1452170739-31351-1-git-send-email...@denx.de> you wrote: > > running get_maintainer.pl drops warnings with PERL > 5.22 . > In linux this is fixed though above commit. ACK. > But ... I get differences when running the python script: So the Python script ... > re

Re: [U-Boot] [PATCH] net: Fix delay in net_retry test

2016-01-07 Thread Simon Glass
On 21 December 2015 at 15:31, Joe Hershberger wrote: > Introduced in 45b4773 (net/arp: account for ARP delay, avoid duplicate > packets on timeout) > > Check the arp timeout and adjust the timeout start time before the call > to eth_recv() so that the sandbox driver has the opportunity to adjust

Re: [U-Boot] Pull request: u-boot-net

2016-01-07 Thread Tom Rini
On Thu, Jan 07, 2016 at 10:49:51AM +0800, Bin Meng wrote: > On Tue, Jan 5, 2016 at 9:18 PM, Tom Rini wrote: > > On Tue, Jan 05, 2016 at 12:18:35PM +0800, Bin Meng wrote: > >> Hi Tom, > >> > >> On Mon, Jan 4, 2016 at 10:22 PM, Tom Rini wrote: > >> > On Mon, Jan 04, 2016 at 09:48:08PM +0800, Bin Me

Re: [U-Boot] [PATCH] arm: socfpga: set the fpga global bit to disable HPS to FPGA signals

2016-01-07 Thread Marek Vasut
On Thursday, January 07, 2016 at 04:23:09 PM, Dinh Nguyen wrote: > On 01/07/2016 09:03 AM, Dinh Nguyen wrote: > > On 01/06/2016 09:20 PM, Marek Vasut wrote: > >> On Thursday, January 07, 2016 at 03:50:00 AM, Dinh Nguyen wrote: > >>> On 01/06/2016 08:21 PM, Marek Vasut wrote: > On Wednesday, Ja

Re: [U-Boot] [PATCH] arm: socfpga: set the fpga global bit to disable HPS to FPGA signals

2016-01-07 Thread Dinh Nguyen
On 01/06/2016 09:20 PM, Marek Vasut wrote: > On Thursday, January 07, 2016 at 03:50:00 AM, Dinh Nguyen wrote: >> On 01/06/2016 08:21 PM, Marek Vasut wrote: >>> On Wednesday, January 06, 2016 at 08:48:43 PM, >>> dingu...@opensource.altera.com >>> >>> wrote: From: Dinh Nguyen We sho

Re: [U-Boot] [PATCH] spi: spi_flash: Fix the arguments of stm_is_locked_sr()

2016-01-07 Thread Jagan Teki
On Thursday 07 January 2016 08:19 PM, Fabio Estevam wrote: On Thu, Jan 7, 2016 at 12:47 PM, Jagan Teki wrote: And also did you test this? Yes, on a mx6qsabresd. Applied to u-boot-spi/master -- Jagan ___ U-Boot mailing list U-Boot@lists.denx.d

Re: [U-Boot] [PATCH] spi: spi_flash: Fix the arguments of stm_is_locked_sr()

2016-01-07 Thread Jagan Teki
On 7 January 2016 at 18:57, Fabio Estevam wrote: > On Thu, Jan 7, 2016 at 10:18 AM, Jagan Teki wrote: > >> This link seems too long >> >> What about this? >> >> http://git.infradead.org/linux-mtd.git/commit/a32d5b726ff8cf32bf491522b0ac8ae2545a063e > > Care to fix this while applying it? And also

Re: [U-Boot] [PATCH] power: pmic.h: Drop include

2016-01-07 Thread Tom Rini
On Thu, Jan 07, 2016 at 08:01:29PM +0530, Jagan Teki wrote: > On 6 January 2016 at 05:54, Simon Glass wrote: > > On 5 January 2016 at 01:14, Jagan Teki wrote: > >> include/power/pmic.h never used any generic spi code > >> from include/spi.h, but this has been added in below commit. > >> "dm: pmic

Re: [U-Boot] [PATCH] power: pmic.h: Drop include

2016-01-07 Thread Jagan Teki
On 6 January 2016 at 05:54, Simon Glass wrote: > On 5 January 2016 at 01:14, Jagan Teki wrote: >> include/power/pmic.h never used any generic spi code >> from include/spi.h, but this has been added in below commit. >> "dm: pmic: add implementation of driver model pmic uclass" >> (sha1: 4d9057e82b

Re: [U-Boot] [PATCH 2/3] sunxi: add support for LPDDR3 for A83T

2016-01-07 Thread Hans de Goede
Hi, On 06-01-16 17:11, Vishnu Patekar wrote: Banana-pi M3 has LPDDR3 DRAM. this adds support for LPDDR3 for A83T. Mostly the timing parameters are different from DDR3. Signed-off-by: Vishnu Patekar --- arch/arm/cpu/armv7/sunxi/dram_sun8i_a83t.c| 56 ++- arch/arm/

Re: [U-Boot] [PATCH 1/3] pci: Add error values definitions from the kernel

2016-01-07 Thread Bin Meng
Hi Fabio, On Thu, Jan 7, 2016 at 8:15 PM, Fabio Estevam wrote: > Hi Bin, > > On Thu, Jan 7, 2016 at 12:11 AM, Bin Meng wrote: > >> Why should we introduce another set of error values just to fix this > > We should better align this with the kernel code. > >> specific PCIe issue? Isn't -EINVAL en

Re: [U-Boot] [PATCH] spi: spi_flash: Fix the arguments of stm_is_locked_sr()

2016-01-07 Thread Jagan Teki
On 6 January 2016 at 05:54, Fabio Estevam wrote: > From: Fabio Estevam > > stm_is_locked_sr() takes the status register (SR) value as the last > parameter, not the second. > > Based on a patch from Brian Norris for the linux kernel: > http://git.infradead.org/linux-mtd.git/commitdiff/a32d5b726ff8

Re: [U-Boot] [PATCH] fdt: Allow fdt_translate_address() to work with buses

2016-01-07 Thread Przemyslaw Marczak
Hello, On 01/05/2016 06:26 PM, Stephen Warren wrote: On 01/05/2016 08:47 AM, Przemyslaw Marczak wrote: Hello, On 01/05/2016 02:00 AM, Simon Glass wrote: Hi Stephen, On 4 January 2016 at 13:15, Stephen Warren wrote: On 01/03/2016 04:04 PM, Simon Glass wrote: It is common for I2C and SPI b

[U-Boot] [PATCH] fix always succesful memory test

2016-01-07 Thread Rasmus Villemoes
Since 51209b1f42cb ("Use common mtest iteration counting"), do_mem_mtest has always reported 0 errors and hence returned 0, even if errors were detected. Fix the helpers mem_test_alt() and mem_test_quick() to return the number of errors found. Signed-off-by: Rasmus Villemoes --- common/cmd_mem.c

Re: [U-Boot] [PATCHv2 0/3] spl: Lightweight UBI and UBI fastmap support

2016-01-07 Thread Heiko Schocher
Hello Ladislav Michl, Soory for the late reply, but I am in holidays... Am 04.01.2016 um 16:52 schrieb Ladislav Michl: This is an update of Thomas's patchset: https://patchwork.ozlabs.org/patch/367305/ https://patchwork.ozlabs.org/patch/367306/ Changes from previous version: - fixes ubi_cal

Re: [U-Boot] [PATCH 11/11] imx: mx7d: isolate resources to domain 0 for A7 core

2016-01-07 Thread Peng Fan
Hi Stefan, On Wed, Jan 06, 2016 at 11:04:44PM -0800, Stefan Agner wrote: >On 2016-01-04 21:56, Peng Fan wrote: >> From: Peng Fan >> >> In current design, if any peripheral was assigned to both A7 and M4, >> it will receive ipg_stop or ipg_wait when any of the 2 platforms >> enter low power mode.

[U-Boot] [PATCH v6 8/8] x86: qemu: add documentaion for the fw_cfg interface

2016-01-07 Thread Miao Yan
Document the usage of 'qfw' command Signed-off-by: Miao Yan Reviewed-by: Simon Glass Reviewed-by: Bin Meng --- doc/README.x86 | 34 +++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/doc/README.x86 b/doc/README.x86 index 1271e5e..36aaef0 100644 --

[U-Boot] [PATCH v6 4/8] x86: fix a typo in function name

2016-01-07 Thread Miao Yan
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This should be a typo. Signed-off-by: Miao Yan Reviewed-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/cpu/mp_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_ini

[U-Boot] [PATCH v6 6/8] x86: qemu: fix cpu device in smp boot

2016-01-07 Thread Miao Yan
Currently, when booting with more that one CPU enabled, U-Boot scans 'cpu' node in device tree and calculates CPU number. This does not scale well as changing CPU number also requires modifying .dts and re-compiling U-Boot. This patch uses fw_cfg interface provided by QEMU to detect online CPU num

[U-Boot] [PATCH v6 2/8] x86: qemu: add fw_cfg support

2016-01-07 Thread Miao Yan
The QEMU fw_cfg interface allows the guest to retrieve various data information from QEMU. For example, APCI/SMBios tables, number of online cpus, kernel data and command line, etc. This patch adds support for QEMU fw_cfg interface. Signed-off-by: Miao Yan Reviewed-by: Simon Glass Reviewed-by:

[U-Boot] [PATCH v6 0/8] x86: qemu: add fw_cfg interface support for qemu-x86 targets

2016-01-07 Thread Miao Yan
The fw_cfg interface provided by QEMU allow guests to retrieve various information about the system, e.g. cpu number, variaous firmware data, kernel setup, etc. The fw_cfg interface can be accessed through 3 IO ports (on x86), using x86 in/out instructions. - 0x510: select configuration items