Re: [PATCH] powerpc/85xx: Add T4240RDB board support

2014-06-03 Thread Chunhe Lan
On 05/31/2014 05:25 AM, Scott Wood wrote: On Wed, 2014-05-28 at 16:11 +0800, Chunhe Lan wrote: diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c b/arch/powerpc/platforms/85xx/corenet_generic.c index 8e4b1e1..2f50526 100644 --- a/arch/powerpc/platforms/85xx/corenet_generic.c +++ b/arch

[PATCH v2] powerpc/85xx: Add T4240RDB board support

2014-06-03 Thread Chunhe Lan
SATA port UART: Dual RJ45 ports Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Scott Wood scottw...@freescale.com --- arch/powerpc/boot/dts/t4240rdb.dts| 186 + arch/powerpc/configs/corenet64_smp_defconfig |4 + arch/powerpc/platforms/85xx

Re: [PATCH v2] powerpc/85xx: Add T4240RDB board support

2014-06-03 Thread Chunhe Lan
On 06/03/2014 05:59 PM, Tudor Laurentiu wrote: Hi Chunhe Comment inline ... On 06/03/2014 12:10 PM, Chunhe Lan wrote: diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c b/arch/powerpc/platforms/85xx/corenet_generic.c index 8e4b1e1..2f50526 100644 --- a/arch/powerpc/platforms/85xx

[PATCH v3] powerpc/85xx: Add T4240RDB board support

2014-06-03 Thread Chunhe Lan
SATA port UART: Dual RJ45 ports Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Scott Wood scottw...@freescale.com --- arch/powerpc/boot/dts/t4240rdb.dts| 186 + arch/powerpc/configs/corenet64_smp_defconfig |4 + arch/powerpc/platforms/85xx

[PATCH] powerpc/85xx: Add T4240RDB board support

2014-05-28 Thread Chunhe Lan
SATA port UART: Dual RJ45 ports Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Scott Wood scottw...@freescale.com --- arch/powerpc/boot/dts/t4240rdb.dts| 186 + arch/powerpc/configs/corenet64_smp_defconfig |5 + arch/powerpc/platforms/85xx

[PATCH] t4240/dts: Enable third elo3 DMA engine support

2014-05-28 Thread Chunhe Lan
T4240QDS and T4240RDB have the third DMA engine controller. So add corresponding DMA node into dts file. Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Scott Wood scottw...@freescale.com --- arch/powerpc/boot/dts/fsl/t4240si-post.dtsi |1 + arch/powerpc/boot/dts/fsl/t4240si-pre.dtsi

[PATCH] powerpc: dma-mapping: Return dma_direct_ops variable when dev == NULL

2014-01-14 Thread Chunhe Lan
device ( - 0002) ixgbevf :01:10.0: No usable DMA configuration, aborting ixgbevf: probe of :01:10.0 failed with error -5 .. .. Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Tested-by: Chunhe Lan chunhe

Re: [PATCH] powerpc: dma-mapping: Return dma_direct_ops variable when dev == NULL

2014-01-14 Thread Chunhe Lan
On 01/14/2014 06:14 PM, Benjamin Herrenschmidt wrote: On Tue, 2014-01-14 at 17:44 +0800, Chunhe Lan wrote: Without this patch, kind of below error will be dumped if 'insmod ixgbevf.ko' is executed: ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver

[PATCH] powerpc/defconfig: Enable ath9k wireless card support

2013-12-02 Thread Chunhe Lan
On the P1023RDB, when board leaves the factory, it has two Atheros wireless cards on the PCIe slot. So enable ath9k wireless driver support. Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Scott Wood scottw...@freescale.com --- arch/powerpc/configs/85xx/p1023_defconfig |5 + 1

[PATCH] powerpc/pci: Change the DECLARE_PCI_FIXUP_{HEADER = EARLY} macro of pci quirk

2013-08-02 Thread Chunhe Lan
macro to fix this issue. Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Bjorn Helgaas bhelg...@google.com Cc: Paul Mackerras pau...@samba.org --- arch/powerpc/sysdev/fsl_pci.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions

[PATCH v3] powerpc/85xx: Add P1023RDB board support

2013-07-31 Thread Chunhe Lan
Type A ports I2C: AT24C08 8K Board EEPROM (8 bit address) Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Scott Wood scottw...@freescale.com --- Changes for v2: - Add the NAND flash node in the device tree - Rename defconfig from p1023rds_defconfig to p1023_defconfig

Re: powerpc/85xx: Add P1023RDB board support

2013-07-30 Thread Chunhe Lan
On 07/30/2013 09:09 AM, Scott Wood wrote: On Fri, Jun 14, 2013 at 04:26:20PM +0800, Chunhe Lan wrote: Ethernet: eTSEC1: Connected to Atheros AR8035 GETH PHY eTSEC2: Connected to Atheros AR8035 GETH PHY Where are the PHYs in the device tree? Atheros AR8035 GETH PHY driver

[PATCH v2] powerpc/85xx: Add P1023RDB board support

2013-07-30 Thread Chunhe Lan
Type A ports I2C: AT24C08 8K Board EEPROM (8 bit address) Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Scott Wood scottw...@freescale.com --- arch/powerpc/boot/dts/p1023rdb.dts | 237 ++ arch/powerpc/configs/85xx/p1023_defconfig| 183

Re: [PATCH v2] powerpc/85xx: Add P1023RDB board support

2013-07-30 Thread Chunhe Lan
On 07/31/2013 02:57 AM, Scott Wood wrote: On 07/30/2013 06:40:29 AM, Chunhe Lan wrote: + +lbc: localbus@ff605000 { +reg = 0 0xff605000 0 0x1000; + +/* NOR, NAND Flashes */ +ranges = 0x0 0x0 0x0 0xec00 0x0400 + 0x1 0x0 0x0 0xffa0 0x0800

[PATCH] powerpc/85xx: Add P1023RDB board support

2013-06-14 Thread Chunhe Lan
Type A ports I2C: AT24C08 8K Board EEPROM (8 bit address) Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Kumar Gala ga...@kernel.crashing.org --- arch/powerpc/boot/dts/p1023rdb.dts | 191 ++ arch/powerpc/configs/85xx/p1023rds_defconfig |4 + arch

[PATCH] powerpc/fsl: Enable CONFIG_E1000E in mpc85xx_smp_defconfig

2013-04-19 Thread Chunhe Lan
On the most boards of Freescale platform, they use the PCI-Express Intel(R) PRO/1000 gigabit ethernet card to work. So enable the corresponding driver for it. Signed-off-by: Chunhe Lan chunhe@freescale.com --- arch/powerpc/configs/mpc85xx_smp_defconfig |1 + 1 files changed, 1 insertions

[PATCH v2] edac/85xx: Add PCIe error interrupt edac support

2013-03-14 Thread Chunhe Lan
interrupts to mpic via interrupt 0. This patch can handle both of them. Signed-off-by: Chunhe Lan chunhe@freescale.com --- drivers/edac/mpc85xx_edac.c | 94 -- drivers/edac/mpc85xx_edac.h |5 ++ 2 files changed, 85 insertions(+), 14 deletions(-) diff

Re: [PATCH] edac/85xx: Add PCIe error interrupt edac support

2013-03-11 Thread Chunhe Lan
On 03/09/2013 03:22 AM, Gala Kumar-B11780 wrote: On Mar 8, 2013, at 2:32 AM, Chunhe Lan wrote: Adding pcie error interrupt edac support for mpc85xx, p3041, p4080, and p5020. The mpc85xx uses the legacy interrupt report mechanism - the error interrupts are reported directly to mpic. While

[PATCH] edac/85xx: Add PCIe error interrupt edac support

2013-03-08 Thread Chunhe Lan
interrupts to mpic via interrupt 0. This patch can handle both of them. Signed-off-by: Chunhe Lan chunhe@freescale.com --- drivers/edac/mpc85xx_edac.c | 169 --- drivers/edac/mpc85xx_edac.h |7 ++ 2 files changed, 165 insertions(+), 11 deletions(-) diff

[PATCH] mmc: sdhci-pltfm: Fix timeout on t4240's sdhci controller

2013-03-07 Thread Chunhe Lan
This patch fixes timeout problems on t4240's sdhci controller: mmc0: Too large timeout requested for CMD25! mmc0: Too large timeout requested for CMD25! mmc0: Too large timeout requested for CMD25! Signed-off-by: Chunhe Lan chunhe@freescale.com --- drivers/mmc/host

Re: [PATCH] mmc: sdhci-pltfm: Fix timeout on t4240's sdhci controller

2013-03-07 Thread Chunhe Lan
On 03/08/2013 12:30 AM, Gala Kumar-B11780 wrote: On Mar 7, 2013, at 2:05 AM, Chunhe Lan wrote: This patch fixes timeout problems on t4240's sdhci controller: mmc0: Too large timeout requested for CMD25! mmc0: Too large timeout requested for CMD25! mmc0: Too large

[PATCH] mmc: esdhi: Add SDHCI_QUIRK_QORIQ_CIRCUIT_SUPPORT_VS33 quirk support

2012-11-22 Thread Chunhe Lan
On the some platforms of Freescale, sdhci controller can only support 1.8V voltage, but the peripheral hardware circuit has capability to support 3.3V voltage. Signed-off-by: Chunhe Lan chunhe@freescale.com --- drivers/mmc/host/sdhci.c |3 +++ include/linux/mmc/sdhci.h |4 2

Re: [PATCH 3/3] edac/85xx: Enable the EDAC PCI err driver by device_initcall

2012-09-28 Thread Chunhe Lan
On 09/28/2012 01:35 PM, Scott Wood wrote: On 09/27/2012 05:33:26 PM, Kumar Gala wrote: On Sep 27, 2012, at 4:51 PM, Scott Wood wrote: On 09/27/2012 04:45:08 PM, Gala Kumar-B11780 wrote: On Sep 27, 2012, at 11:09 AM, Scott Wood wrote: On 09/27/2012 02:02:03 PM, Chunhe Lan wrote: Original

[PATCH 2/3] edac/85xx: PCI/PCIe error interrupt edac support

2012-09-27 Thread Chunhe Lan
. This patch can handle both of them. Signed-off-by: Chunhe Lan chunhe@freescale.com --- drivers/edac/mpc85xx_edac.c | 228 +-- drivers/edac/mpc85xx_edac.h |8 ++- 2 files changed, 182 insertions(+), 54 deletions(-) diff --git a/drivers/edac/mpc85xx_edac.c b

[PATCH 3/3] edac/85xx: Enable the EDAC PCI err driver by device_initcall

2012-09-27 Thread Chunhe Lan
and initialized by device_initcall in the fsl_pci.c. Signed-off-by: Chunhe Lan chunhe@freescale.com --- arch/powerpc/sysdev/fsl_pci.c | 12 ++ arch/powerpc/sysdev/fsl_pci.h |5 drivers/edac/mpc85xx_edac.c | 47 3 files changed, 50

[PATCH 1/3] edac: Use ccsr_pci structure instead of hardcoded define

2012-09-27 Thread Chunhe Lan
remove the hardcoded define and add pci/pcie error management register in ccsr_pci structure. Signed-off-by: Chunhe Lan chunhe@freescale.com --- arch/powerpc/sysdev/fsl_pci.h | 46 +--- drivers/edac/mpc85xx_edac.h | 12 +- 2 files changed, 40

Re: [PATCH 3/3] edac/85xx: Enable the EDAC PCI err driver by device_initcall

2012-09-27 Thread Chunhe Lan
On 09/27/2012 12:09 PM, Scott Wood wrote: On 09/27/2012 02:02:03 PM, Chunhe Lan wrote: Original process of call: The mpc85xx_pci_err_probe function completes to been registered and enabled of EDAC PCI err driver at the latter time stage of kernel boot in the mpc85xx_edac.c. Current

Re: [PATCH v3 1/2] mmc: Move mmc_delay() to include/linux/mmc/core.h

2012-09-23 Thread Chunhe Lan
On 09/21/2012 08:33 AM, Arnd Bergmann wrote: On Friday 21 September 2012, Chunhe Lan wrote: On 08/10/2012 09:27 AM, Arnd Bergmann wrote: On Friday 10 August 2012, Chunhe Lan wrote: cond_resched(); mdelay(ms); sets off alarm bells, and I would always replace that with msleep

Re: [PATCH v3 1/2] mmc: Move mmc_delay() to include/linux/mmc/core.h

2012-09-21 Thread Chunhe Lan
On 08/10/2012 09:27 AM, Arnd Bergmann wrote: On Friday 10 August 2012, Chunhe Lan wrote: +static inline void mmc_delay(unsigned int ms) +{ + if (ms 1000 / HZ) { + cond_resched(); + mdelay(ms); + } else { + msleep(ms); + } +} I would

[PATCH] p1023rds_defconfig: Add USB support

2012-09-14 Thread Chunhe Lan
Signed-off-by: Chunhe Lan chunhe@freescale.com --- arch/powerpc/configs/85xx/p1023rds_defconfig |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/configs/85xx/p1023rds_defconfig b/arch/powerpc/configs/85xx/p1023rds_defconfig index 26e541c..b80bcc6

[PATCH v3 1/2] mmc: Move mmc_delay() to include/linux/mmc/core.h

2012-08-10 Thread Chunhe Lan
Move mmc_delay() from drivers/mmc/core/core.h to include/linux/mmc/core.h. So when other functions call it with include syntax using linux/mmc/core.h of absolute path rather than ../core/core.h of relative path. Signed-off-by: Chunhe Lan chunhe@freescale.com Signed-off-by: Kumar Gala ga

[PATCH v3 2/2] mmc: Use mmc_delay() instead of mdelay() for time delay

2012-08-10 Thread Chunhe Lan
. When the desired delay time is more than a period of timer interrupt, just use msleep(). Change mdelay() to mmc_delay() to avoid chewing CPU when busy wait. Signed-off-by: Shengzhou Liu b36...@freescale.com Signed-off-by: Chunhe Lan chunhe@freescale.com Signed-off-by: Kumar Gala ga

[PATCH 1/2] edac: Use ccsr_pci structure instead of hardcoded define

2012-07-23 Thread Chunhe Lan
remove the hardcoded define and add pci/pcie error management register in ccsr_pci structure. Signed-off-by: Chunhe Lan chunhe@freescale.com --- arch/powerpc/sysdev/fsl_pci.h | 46 +--- drivers/edac/mpc85xx_edac.h | 13 +- 2 files changed, 40

[PATCH 2/2] edac/85xx: PCI/PCIe error interrupt edac support

2012-07-23 Thread Chunhe Lan
. This patch can handle both of them. Signed-off-by: Chunhe Lan chunhe@freescale.com --- drivers/edac/mpc85xx_edac.c | 236 +-- drivers/edac/mpc85xx_edac.h |9 ++- 2 files changed, 191 insertions(+), 54 deletions(-) diff --git a/drivers/edac/mpc85xx_edac.c b

[PATCH 1/2] edac: Use ccsr_pci structure instead of hardcoded define

2012-05-31 Thread Chunhe Lan
remove the hardcoded define and add pci/pcie error management register in ccsr_pci structure. Signed-off-by: Chunhe Lan chunhe@freescale.com Signed-off-by: Kumar Gala ga...@kernel.crashing.org Cc: Grant Likely grant.lik...@secretlab.ca Cc: Doug Thompson dougthomp...@xmission.com --- arch

[PATCH 2/2] edac/85xx: PCI/PCIe error interrupt edac support

2012-05-31 Thread Chunhe Lan
. This patch can handle both of them. Signed-off-by: Chunhe Lan chunhe@freescale.com Signed-off-by: Kumar Gala ga...@kernel.crashing.org Cc: Grant Likely grant.lik...@secretlab.ca Cc: Doug Thompson dougthomp...@xmission.com --- drivers/edac/mpc85xx_edac.c | 236

[PATCH 2/3] driver/misc: Add Pulse Width Modulator (PWM) driver for freescale

2012-01-10 Thread Chunhe Lan
/soc.0/e500.2/ff713000.pwm/period_ns Signed-off-by: Chunhe Lan chunhe@freescale.com --- arch/powerpc/include/asm/fsl_pwm.h | 111 + drivers/misc/Kconfig | 11 + drivers/misc/Makefile |1 + drivers/misc/fsl_pwm.c | 471

[PATCH 1/3] powerpc/85xx: Add clock driver for PWM

2012-01-10 Thread Chunhe Lan
: NULL clk_round_rate: NULL clk_set_parent: NULL clk_get_parent: NULL Signed-off-by: Chunhe Lan chunhe@freescale.com --- arch/powerpc/include/asm/clock.h| 33 +++ arch/powerpc/platforms/85xx/Makefile|1 + arch/powerpc/platforms/85xx/pwm-clock.c | 161

[PATCH 3/3] powerpc/fsl: Document Pulse Width Modulator controller device tree binding

2012-01-10 Thread Chunhe Lan
This document is created for freescale PWM node in dts file. In addition, it explicates the properties and gives example about PWM node. Signed-off-by: Chunhe Lan chunhe@freescale.com --- .../devicetree/bindings/powerpc/fsl/pwm.txt| 27 1 files changed, 27

[PATCH 1/3 v2] mmc: Move mmc_delay() to include/linux/mmc/core.h

2011-08-26 Thread Chunhe Lan
Move mmc_delay() from drivers/mmc/core/core.h to include/linux/mmc/core.h. So when other functions call it with include syntax using linux/mmc/core.h of absolute path rather than ../core/core.h of relative path. Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Chris Ball c...@laptop.org

[PATCH 2/3 v2] mmc: Use mmc_delay() instead of mdelay() for time delay

2011-08-26 Thread Chunhe Lan
. When the desired delay time is more than a period of timer interrupt, just use msleep(). Change mdelay() to mmc_delay() to avoid chewing CPU when busy wait. Signed-off-by: Shengzhou Liu b36...@freescale.com Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Chris Ball c...@laptop.org

[PATCH 3/3 v2] mmc: Use mmc_delay() instead of mdelay() for time delay

2011-08-26 Thread Chunhe Lan
. When the desired delay time is more than a period of timer interrupt, just use msleep(). Change mdelay() to mmc_delay() to avoid chewing CPU when busy wait. Signed-off-by: Shengzhou Liu b36...@freescale.com Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Chris Ball c...@laptop.org

[PATCH 1/2] mmc: Use mmc_delay() instead of mdelay() for time delay

2011-08-25 Thread Chunhe Lan
. When the desired delay time is more than a period of timer interrupt, just use msleep(). Change mdelay() to mmc_delay() to avoid chewing CPU when busy wait. Signed-off-by: Shengzhou Liu b36...@freescale.com Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Chris Ball c...@laptop.org

[PATCH 2/2] mmc: Use mmc_delay() instead of mdelay() for time delay

2011-08-25 Thread Chunhe Lan
. When the desired delay time is more than a period of timer interrupt, just use msleep(). Change mdelay() to mmc_delay() to avoid chewing CPU when busy wait. Signed-off-by: Shengzhou Liu b36...@freescale.com Signed-off-by: Chunhe Lan chunhe@freescale.com Cc: Chris Ball c...@laptop.org

[PATCH] mtd/physmap_of: Don't add disabled flash devices

2011-08-16 Thread Chunhe Lan
Flash(cfi-flash, jedec-flash, and so on) nodes with the property status=disabled are not usable and so avoid adding disabled flash devices with the system. Signed-off-by: Chunhe Lan chunhe@freescale.com --- drivers/mtd/maps/physmap_of.c |3 +++ 1 files changed, 3 insertions(+), 0

[PATCH] mtd/nand: Don't add disabled nand flash devices

2011-08-16 Thread Chunhe Lan
Nand flash nodes with the property status=disabled are not usable and so avoid adding disabled nand flash devices with the system. Signed-off-by: Chunhe Lan chunhe@freescale.com --- drivers/mtd/nand/fsl_elbc_nand.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git

[PATCH] powerpc/p1023rds: Add nand flash node support in the dts

2011-08-15 Thread Chunhe Lan
be enabled. o The status property of nor node should be disabled. Signed-off-by: Chunhe Lan chunhe@freescale.com --- arch/powerpc/boot/dts/p1023rds.dts | 46 +-- 1 files changed, 43 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/boot/dts/p1023rds.dts b

[PATCH] powerpc/p1023rds: Fix the error of bank-width of nor flash

2011-08-12 Thread Chunhe Lan
In the p1023rds, a physical bus of nor flash is 16 bits width. The bank-width is width (in bytes) of the bus width. So, the value of bank-width of nor flash is not one, and it should be two. Signed-off-by: Chunhe Lan chunhe@freescale.com --- arch/powerpc/boot/dts/p1023rds.dts |2 +- 1