Inconsistent fsl_get_sys_freq() implementation

2009-03-31 Thread Wolfgang Grandegger
Hello, we realized an inconsistent implementation of fsl_get_sys_freq(): http://lxr.linux.no/linux+v2.6.29/arch/powerpc/sysdev/fsl_soc.c#L80 For 826x and 827x boards, the function is available but it cannot be used because the "bus-frequency" property is not defined for the SOC and U-Boot also d

Re: Inconsistent fsl_get_sys_freq() implementation

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 1:28 AM, Wolfgang Grandegger wrote: > > Hello, > > we realized an inconsistent implementation of fsl_get_sys_freq(): > > http://lxr.linux.no/linux+v2.6.29/arch/powerpc/sysdev/fsl_soc.c#L80 > > For 826x and 827x boards, the function is available but it cannot be > used beca

Re: Inconsistent fsl_get_sys_freq() implementation

2009-03-31 Thread Wolfgang Grandegger
Grant Likely wrote: > On Tue, Mar 31, 2009 at 1:28 AM, Wolfgang Grandegger > wrote: >> Hello, >> >> we realized an inconsistent implementation of fsl_get_sys_freq(): >> >> http://lxr.linux.no/linux+v2.6.29/arch/powerpc/sysdev/fsl_soc.c#L80 >> >> For 826x and 827x boards, the function is available

Re: [PATCH] linux-next remove wmb() from ide-dma-sff.c and scc_pata.c

2009-03-31 Thread Geert Uytterhoeven
On Mon, 30 Mar 2009, Grant Grundler wrote: > Followup to "[PATCH 03/10] ide: destroy DMA mappings after ending DMA" > email on March 14th: > http://lkml.org/lkml/2009/3/14/17 > > No maintainer is listed for "Toshiba CELL Reference Set IDE" (BLK_DEV_CELLEB) > or tx4939ide.c in MAINTAINERS. I've

Re: [PATCH] ucc_geth: Rework the TX logic.

2009-03-31 Thread Li Yang
On Tue, Mar 31, 2009 at 1:22 AM, Scott Wood wrote: > Joakim Tjernlund wrote: >> >> gianfar does not seem to use in_/out_ functions for the BDs. Works just >> fine that too it seems. > > It does now that it has explicit barriers in a few places.  Before they were > added, it would sometimes fail un

[PATCH 00/14] Add common OF device tree support for MDIO busses

2009-03-31 Thread Grant Likely
This series adds common code for reading PHY connection data out of the OpenFirmware device tree. This simplifies the network drivers which use the device tree and which currently implement their own solutions for reading the PHY data out of the device tree directly. This series was depending on

[PATCH 01/14] of: add of_parse_phandle() helper for parsing phandle properties

2009-03-31 Thread Grant Likely
From: Grant Likely of_parse_phandle() is a helper function to read and parse a phandle property and return a pointer to the resulting device_node. Signed-off-by: Grant Likely CC: Michael Ellerman --- drivers/of/base.c | 24 include/linux/of.h |3 +++ 2 files c

[PATCH 02/14] net/fec_mpc52xx: Migrate to net_device_ops.

2009-03-31 Thread Grant Likely
From: Grant Likely Since not using net_device_ops gets you shunned out the cool crowd, this patch modifies the fec_mpc52xx Ethernet driver to provide the management hooks via a struct net_device_ops. Reported-by: Henk Stegeman Signed-off-by: Grant Likely --- drivers/net/fec_mpc52xx.c | 35

[PATCH 03/14] net/fec_mpc52xx: Don't dereference phy_device if it is NULL

2009-03-31 Thread Grant Likely
From: Grant Likely The FEC Ethernet device isn't always attached to a phy. Be careful not to dereference phy_device if it is NULL. Reported-by: Henk Stegeman Signed-off-by: Grant Likely --- drivers/net/fec_mpc52xx.c | 22 -- 1 files changed, 12 insertions(+), 10 deleti

[PATCH 04/14] phylib: rework to prepare for OF registration of PHYs

2009-03-31 Thread Grant Likely
From: Grant Likely This patch makes changes in preparation for supporting open firmware device tree descriptions of MDIO busses. Changes include: - Cleanup handling of phy_map[] entries; they are already NULLed when registering and so don't need to be re-cleared, and it is good practice to c

[PATCH 05/14] phylib: add *_direct() variants of phy_connect and phy_attach functions

2009-03-31 Thread Grant Likely
From: Grant Likely Add phy_connect_direct() and phy_attach_direct() functions so that drivers can use a pointer to the phy_device instead of trying to determine the phy's bus_id string. This patch is useful for OF device tree descriptions of phy devices where the driver doesn't need or know what

[PATCH 06/14] openfirmware: Add OF phylib support code

2009-03-31 Thread Grant Likely
From: Grant Likely Add support for parsing the device tree for PHY devices on an MDIO bus CC: Andy Fleming CC: linuxppc-dev@ozlabs.org CC: devtree-disc...@ozlabs.org Signed-off-by: Grant Likely --- drivers/of/Kconfig |6 ++ drivers/of/Makefile |1 drivers/of/of_mdio.c|

[PATCH 07/14] net: Rework mpc5200 fec driver to use of_mdio infrastructure.

2009-03-31 Thread Grant Likely
From: Grant Likely The patch reworks the MPC5200 Fast Ethernet Controller (FEC) driver to use the of_mdio infrastructure for registering PHY devices from data out openfirmware device tree, and eliminates the assumption that the PHY for the FEC is always attached to the FEC's own MDIO bus. With t

[PATCH 08/14] net: rework fsl_pq_mdio driver to use of_mdio infrastructure

2009-03-31 Thread Grant Likely
From: Grant Likely This patch simplifies the driver by making use of more common code. Signed-off-by: Grant Likely --- drivers/net/fsl_pq_mdio.c | 53 +++-- 1 files changed, 4 insertions(+), 49 deletions(-) diff --git a/drivers/net/fsl_pq_mdio.c b/d

[PATCH 09/14] net: Rework gianfar driver to use of_mdio infrastructure.

2009-03-31 Thread Grant Likely
From: Grant Likely This patch simplifies the driver by making use of more common code. Signed-off-by: Grant Likely --- drivers/net/gianfar.c | 103 ++--- drivers/net/gianfar.h |3 + 2 files changed, 40 insertions(+), 66 deletions(-) diff --gi

[PATCH 10/14] net: Rework ucc_geth driver to use of_mdio infrastructure

2009-03-31 Thread Grant Likely
From: Grant Likely This patch simplifies the driver by making use of more common code. Signed-off-by: Grant Likely --- drivers/net/ucc_geth.c | 47 --- drivers/net/ucc_geth.h |2 +- 2 files changed, 13 insertions(+), 36 deletions(-) diff --g

[PATCH 11/14] net: Rework pasemi_mac driver to use of_mdio infrastructure

2009-03-31 Thread Grant Likely
From: Grant Likely This patch simplifies the driver by making use of more common code. Tested-by: Olof Johansson Acked-by: Olof Johansson Signed-off-by: Grant Likely --- arch/powerpc/platforms/pasemi/gpio_mdio.c | 32 + drivers/net/pasemi_mac.c

[PATCH 12/14] powerpc/82xx: Rework Embedded Planet ep8248e platform to use of_mdio

2009-03-31 Thread Grant Likely
From: Grant Likely This patch modifies the bitbanged MDIO driver in the ep8248e platform code to use the common of_mdio infrastructure. Signed-off-by: Grant Likely --- arch/powerpc/platforms/82xx/ep8248e.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/

[PATCH 14/14] net: add Xilinx ll_temac device driver

2009-03-31 Thread Grant Likely
From: Grant Likely This patch adds support for the Xilinx ll_temac 10/100/1000 Ethernet device. The ll_temac ipcore is typically used on Xilinx Virtex and Spartan designs attached to either a PowerPC 4xx or Microblaze processor. At the present moment, this driver only works with Virtex5 PowerPC

Re: [PATCH] ucc_geth: Rework the TX logic.

2009-03-31 Thread Joakim Tjernlund
Scott Wood wrote on 30/03/2009 21:32:23: > > Joakim Tjernlund wrote: > >> different since descriptors are in MURAM which is ioremap()ed -- though > >> switching to a cacheable mapping with barriers should be a performance > >> improvement. > > > > I always thought that MURAM was very fast. T

[ppc64] 2.6.29-git7 : offlining a cpu causes an exception

2009-03-31 Thread Sachin Sant
While executing CPU HotPlug[1] tests i observed that during every cpu offline process an exception is thrown. cpu 0x2: Vector: 700 (Program Check) at [c74c7ca0] pc: 007b6640 lr: 0079ddc0 sp: c74c7f20 msr: 80081002 current = 0xc000fe1c8580 p

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Wolfgang Grandegger
Grant Likely wrote: > I agree 100% with David's comments, and I have some additional ones below. > > On Thu, Mar 19, 2009 at 9:26 AM, Wolfgang Grandegger > wrote: >> + soc8...@e000 { >> + #address-cells = <1>; >> + #size-cells = <1>; >> + devic

Re: [PATCH] linux-next remove wmb() from ide-dma-sff.c and scc_pata.c

2009-03-31 Thread KOBAYASHI Yoshitake
2009/03/31 16:51, Geert Uytterhoeven wrote: > On Mon, 30 Mar 2009, Grant Grundler wrote: >> Followup to "[PATCH 03/10] ide: destroy DMA mappings after ending DMA" >> email on March 14th: >> http://lkml.org/lkml/2009/3/14/17 >> >> No maintainer is listed for "Toshiba CELL Reference Set IDE" (BLK

[PATCH 13/14] net: Rework fs_enet driver to use of_mdio infrastructure

2009-03-31 Thread Grant Likely
From: Grant Likely This patch simplifies the driver by making use of more common code. Signed-off-by: Grant Likely --- drivers/net/fs_enet/fs_enet-main.c | 69 ++-- drivers/net/fs_enet/mii-bitbang.c | 29 +-- drivers/net/fs_enet/mii-fec.c

8641D with linux 2.6.29 did'n show second cpu

2009-03-31 Thread Eduard Fuchs
Hi, I'm testing the evaluation board from freescale (MPC8641DHPCN) with the latest linux kernel (2.6.29) and the second core seems disabled. CONFIG_SPM is enabled but the /proc/cpuinfo shows only one cpu. With original 2.6.27 kernel both cpu cores appears in /proc/cpuinfo. Has anyone an idea

Patch: Fix fec_mpc52xx driver to use net_device_ops

2009-03-31 Thread Henk Stegeman
Fix fec_mpc52xx driver to use net_device_ops and to be careful not to dereference phy_device if a phy has not yet been connected. Signed-off-by: Henk Stegeman diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c index cd8e98b..ca76b95 100644 --- a/drivers/net/fec_mpc52xx.c +++ b/dr

Re: [PATCH] ucc_geth: Rework the TX logic.

2009-03-31 Thread Li Yang
On Tue, Mar 31, 2009 at 5:07 PM, Joakim Tjernlund wrote: > Scott Wood wrote on 30/03/2009 21:32:23: >> >> Joakim Tjernlund wrote: >> >> different since descriptors are in MURAM which is ioremap()ed -- > though >> >> switching to a cacheable mapping with barriers should be a > performance >> >> im

configuring the DMA for using the SCPLC on the MPC5121

2009-03-31 Thread Jacquemin, Jean-Philippe
Dear all, I am trying to configure the MPC5121 to perform DMA transfers from the CPU RAM to the RAM of an FPGA attached on ChipSelect 2. I have to use the LocalPlus Bus and configure the chipselect2 for bust mode and non-multiplexed. I also have to configure a DMA task to copy the content of my b

[PATCH] powerpc: Make LOWMEM_CAM_NUM depend on FSL_BOOKE

2009-03-31 Thread Josh Boyer
The recent addition of CONFIG_LOWMEM_CAM_BOOL and CONFIG_LOWMEM_CAM_NUM cause the latter to show up in configs that do not need it during 'make oldconfig'. Make LOWMEM_CAM_NUM depend on FSL_BOOKE. Signed-off-by: Josh Boyer --- diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index ad6b

[PATCH 4/8] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
The I2c node property "fsl,preserve-clocking" allows to overtake the clock settings from the boot loader and avoids the hard-coded setting. Signed-off-by: Wolfgang Grandegger --- drivers/i2c/busses/i2c-mpc.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) Index

[PATCH 6/8] --- arch/powerpc/boot/dts/socrates.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)

2009-03-31 Thread Wolfgang Grandegger
Index: linux-2.6/arch/powerpc/boot/dts/socrates.dts === --- linux-2.6.orig/arch/powerpc/boot/dts/socrates.dts 2009-03-31 13:24:38.078719288 +0200 +++ linux-2.6/arch/powerpc/boot/dts/socrates.dts2009-03-31 13:47:56.986720719

[PATCH 0/8] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Wolfgang Grandegger
Following (most of) Grant's suggestions to my RFC: http://ozlabs.org/pipermail/linuxppc-dev/2009-March/069820.html this new patch series now uses: - the I2c node property "fsl,preserve-clocking" to overtake the clock settings from the boot loader. The first patch provides this feature and ca

[PATCH 5/8] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Wolfgang Grandegger
This patch makes the I2C bus speed configurable by using the I2C node property "clock-frequency". If the property is not defined, the old fixed clock settings will be used for backward comptibility. The generic I2C clock properties, especially the CPU-specific source clock pre-scaler are defined v

[PATCH 2/8] [PATCH 01/28] RTC: Add support for RX8025 chip.

2009-03-31 Thread Wolfgang Grandegger
This patch adds support for the Epson RX-8025SA/NB RTC chips. It includes support for alarms update interrupts (1 Hz) and clock precision adjustment. For clock precision adjustment, the SYSFS file "clock_adjust_ppb" gets created in "/sys/class/rtc/rtcX/device". It permits to set and get the clock

[PATCH 7/8] Re: [PATCH 1/2] NAND: Add support for oob size 128

2009-03-31 Thread Wolfgang Grandegger
* Wolfgang Grandegger | 2009-03-25 11:48:37 [+0100]: >Signed-off-by: Ilya Yanok >Acked-by: Wolfgang Grandegger You seem to forgot a few bits (subpage_sft & max page size). I had this patch in my tree like for ever and forgot post it here. I did however merge the mtd-utils bits allready :) From

[PATCH 8/8] NAND: Add support for NAND on the Socrates board

2009-03-31 Thread Wolfgang Grandegger
Signed-off-by: Ilya Yanok Acked-by: Wolfgang Grandegger --- drivers/mtd/nand/Kconfig |6 drivers/mtd/nand/Makefile|1 drivers/mtd/nand/socrates_nand.c | 324 +++ 3 files changed, 331 insertions(+) Index: linux-2.6/drivers/mtd/nand/K

[PATCH 1/3] powerpc: remove duplicated #include's

2009-03-31 Thread Huang Weiyi
Remove duplicated #include's in - arch/powerpc/include/asm/ps3fb.h - arch/powerpc/kernel/setup-common.c Signed-off-by: Huang Weiyi --- arch/powerpc/include/asm/ps3fb.h |1 - arch/powerpc/kernel/setup-common.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arc

[PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
The I2c node property "fsl,preserve-clocking" allows to overtake the clock settings from the boot loader and avoids the hard-coded setting. Signed-off-by: Wolfgang Grandegger --- drivers/i2c/busses/i2c-mpc.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) Index

[PATCH 0/2] test

2009-03-31 Thread Wolfgang Grandegger
test ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH 2/2] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Wolfgang Grandegger
This patch makes the I2C bus speed configurable by using the I2C node property "clock-frequency". If the property is not defined, the old fixed clock settings will be used for backward comptibility. The generic I2C clock properties, especially the CPU-specific source clock pre-scaler are defined v

Re: [PATCH 0/8] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Wolfgang Grandegger
Please *FORGET* this series of patches. Only the I2C related patches are relevant but I accidentally sent out the complete patch stack :-(. I will resent them in a second. Sorry for any inconvenience this has caused. Wolfgang. Wolfgang Grandegger wrote: > Following (most of) Grant's suggestions

configuring the DMA for using the SCPLC on the MPC5121

2009-03-31 Thread Jacquemin, Jean-Philippe
Dear all, I am trying to configure the MPC5121 to perform DMA transfers from the CPU RAM to the RAM of an FPGA attached on ChipSelect 2. I have to use the LocalPlus Bus and configure the chipselect2 for bust mode and non-multiplexed. I also have to configure a DMA task to copy the content of my b

[PATCH 0/2] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Wolfgang Grandegger
Following (most of) Grant's suggestions to my RFC: http://ozlabs.org/pipermail/linuxppc-dev/2009-March/069820.html this new patch series now uses: - the I2c node property "fsl,preserve-clocking" to overtake the clock settings from the boot loader. The first patch provides this feature and ca

[PATCH 2/2] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Wolfgang Grandegger
This patch makes the I2C bus speed configurable by using the I2C node property "clock-frequency". If the property is not defined, the old fixed clock settings will be used for backward comptibility. The generic I2C clock properties, especially the CPU-specific source clock pre-scaler are defined v

Re: please disable several items in 44x/canyonlands_defconfig

2009-03-31 Thread Josh Boyer
On Tue, Mar 31, 2009 at 10:16:01AM +0800, Cheng Renquan wrote: >These 3 items are generally not used in 44x/canyonlands board, please >consider disable them when you change 44x/canyonlands_defconfig next >time, > >CONFIG_PCI_LEGACY >CONFIG_DAB >CONFIG_VIDEO_OUTPUT_CONTROL I've done a bit broader p

Re: 8641D with linux 2.6.29 did'n show second cpu

2009-03-31 Thread Kumar Gala
On Mar 31, 2009, at 5:15 AM, Eduard Fuchs wrote: Hi, I'm testing the evaluation board from freescale (MPC8641DHPCN) with the latest linux kernel (2.6.29) and the second core seems disabled. CONFIG_SPM is enabled but the /proc/cpuinfo shows only one cpu. With original 2.6.27 kernel both

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 3:35 AM, Wolfgang Grandegger wrote: > Grant Likely wrote: >> I agree 100% with David's comments, and I have some additional ones below. >> >> On Thu, Mar 19, 2009 at 9:26 AM, Wolfgang Grandegger >> wrote: >>> +       soc8...@e000 { >>> +               #address-cells

[PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Josh Boyer
Add a MAINTAINERS entry for the hypervisor virtual console support used on IBM POWER servers. Signed-off-by: Josh Boyer --- diff --git a/MAINTAINERS b/MAINTAINERS index c5f4e9d..387ad45 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2176,6 +2176,11 @@ W: http://www.ia64-linux.org/ T:

Re: [PATCH] powerpc: Make LOWMEM_CAM_NUM depend on FSL_BOOKE

2009-03-31 Thread Kumar Gala
On Mar 31, 2009, at 7:05 AM, Josh Boyer wrote: The recent addition of CONFIG_LOWMEM_CAM_BOOL and CONFIG_LOWMEM_CAM_NUM cause the latter to show up in configs that do not need it during 'make oldconfig'. Make LOWMEM_CAM_NUM depend on FSL_BOOKE. Signed-off-by: Josh Boyer --- fixed up an app

Re: [PATCH] powerpc: Remove unused symbols from fsl_devices.h

2009-03-31 Thread Kumar Gala
On Mar 28, 2009, at 4:07 PM, Grant Likely wrote: From: Grant Likely Remove old artifacts leftover from the platform driver gianfar and fsl_i2c drivers. These symbols became unused when the drivers were migrated over to use the of_platform bus. Signed-off-by: Grant Likely --- include/linux

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Wolfgang Grandegger
Grant Likely wrote: > On Tue, Mar 31, 2009 at 3:35 AM, Wolfgang Grandegger > wrote: >> Grant Likely wrote: >>> I agree 100% with David's comments, and I have some additional ones below. >>> >>> On Thu, Mar 19, 2009 at 9:26 AM, Wolfgang Grandegger >>> wrote: + soc8...@e000 {

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfram Sang
On Tue, Mar 31, 2009 at 02:50:29PM +0200, Wolfgang Grandegger wrote: > The I2c node property "fsl,preserve-clocking" allows to overtake the > clock settings from the boot loader and avoids the hard-coded setting. > > Signed-off-by: Wolfgang Grandegger > --- > drivers/i2c/busses/i2c-mpc.c | 24

[PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
The I2c node property "fsl,preserve-clocking" allows to overtake the clock settings from the boot loader and avoids the hard-coded setting. Signed-off-by: Wolfgang Grandegger --- drivers/i2c/busses/i2c-mpc.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) Index

[PATCH 1/2] gianfar: Remove unused header

2009-03-31 Thread Kumar Gala
Now that the driver is exclusively an of_platform driver we no longer use the structs and #defines in fsl_devices.h Signed-off-by: Kumar Gala --- drivers/net/gianfar.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index dd4

[PATCH 2/2] ucc_geth: Remove unused header

2009-03-31 Thread Kumar Gala
Now that the driver is exclusively an of_platform driver we no longer use the structs and #defines in fsl_devices.h Signed-off-by: Kumar Gala --- drivers/net/ucc_geth.c |1 - drivers/net/ucc_geth.h |1 - drivers/net/ucc_geth_ethtool.c |1 - 3 files changed, 0 insertio

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
Wolfram Sang wrote: > On Tue, Mar 31, 2009 at 02:50:29PM +0200, Wolfgang Grandegger wrote: >> The I2c node property "fsl,preserve-clocking" allows to overtake the >> clock settings from the boot loader and avoids the hard-coded setting. >> >> Signed-off-by: Wolfgang Grandegger >> --- >> drivers/i

[PATCH] powerpc/85xx: Use fsl, mpc85.. as prefix for memory ctrl & l2-cache nodes

2009-03-31 Thread Kumar Gala
Older devices tree's used "fsl,85.." instead of the preferred "fsl,mpc85.." for the memory controller & l2 cache controller nodes. The EDAC code is the only use of these and has been updated for some time to support both "fsl,85.." and "fsl,mpc85.." Signed-off-by: Kumar Gala --- arch/powerpc/boo

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfram Sang
> >> - > >> - mpc_i2c_setclock(i2c); > >> + > >> + if (set_clock) > >> + mpc_i2c_setclock(i2c); > > > > Can't we drop 'set_clock' with something like this here? > > > > + if (!of_get_property(op->node, "fsl,preserve-clocking", NULL)) { > > + > > + if (of_get_property(op-

[PATCH v3] powerpc: Add support for CoreInt delivery of interrupts on MPIC

2009-03-31 Thread Kumar Gala
CoreInt provides a mechansim to deliver the IRQ vector directly into the core on an interrupt (via the SPR EPR) rather than having to go IACK on the PIC. This is suppose to provide an improvment in interrupt latency by reducing the time to get the IRQ vector. Signed-off-by: Kumar Gala --- Ben, t

Re: [PATCH] ucc_geth: Rework the TX logic.

2009-03-31 Thread Scott Wood
Joakim Tjernlund wrote: I am a bit confused, what isn't worth it? Enabling cacheing on MURAM, at least when used for buffer descriptors. The cache line ping-pong would probably outweigh the cost of the uncached accesses. Currently MURAM isn't used by ucc_geth, Hmm. I looked in the drive

Re: Patch: Fix fec_mpc52xx driver to use net_device_ops

2009-03-31 Thread Stephen Hemminger
On Tue, 31 Mar 2009 12:44:15 +0200 Henk Stegeman wrote: > Fix fec_mpc52xx driver to use net_device_ops and to be careful not to > dereference phy_device if a phy has not yet been connected. > > Signed-off-by: Henk Stegeman > > diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 7:36 AM, Wolfgang Grandegger wrote: > Grant Likely wrote: >> On Tue, Mar 31, 2009 at 3:35 AM, Wolfgang Grandegger >> wrote: >>> Grant Likely wrote: I agree 100% with David's comments, and I have some additional ones below. On Thu, Mar 19, 2009 at 9:26 AM,

Re: 8641D with linux 2.6.29 did'n show second cpu

2009-03-31 Thread Eduard Fuchs
Hi, Am Dienstag 31 März 2009 15:20:21 schrieb Kumar Gala: > On Mar 31, 2009, at 5:15 AM, Eduard Fuchs wrote: > > Hi, > > > > I'm testing the evaluation board from freescale (MPC8641DHPCN) with > > the latest > > linux kernel (2.6.29) and the second core seems disabled. CONFIG_SPM > > is > > enable

Re: [PATCH 5/8] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 6:37 AM, Wolfgang Grandegger wrote: > This patch makes the I2C bus speed configurable by using the I2C node > property "clock-frequency". If the property is not defined, the old > fixed clock settings will be used for backward comptibility. > > The generic I2C clock proper

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Grant Likely
2009/3/31 Wolfram Sang : > >> >> - >> >> -  mpc_i2c_setclock(i2c); >> >> + >> >> +  if (set_clock) >> >> +          mpc_i2c_setclock(i2c); >> > >> > Can't we drop 'set_clock' with something like this here? >> > >> > +   if (!of_get_property(op->node, "fsl,preserve-clocking", NULL)) { >> > + >> > +

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Anton Vorontsov
On Tue, Mar 31, 2009 at 09:05:28AM -0600, Grant Likely wrote: [...] > > +       soc8...@e000 { > > +               #address-cells = <1>; > > +               #size-cells = <1>; > > +               device_type = "soc"; > Drop device_type here too. > >>> Grrr, I just realized

Re: [PATCH 3/8] powerpc/85xx: Add support for the "socrates" board (MPC8544).

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 6:37 AM, Wolfgang Grandegger wrote: > Supported are Ethernet, serial console, I2C, I2C-based RTC and > temperature sensors, NOR and NAND flash, PCI, USB, CAN and Lime > display controller. > > The multiplexing of FPGA interrupts onto PowerPC interrupt lines is > supported

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 9:54 AM, Anton Vorontsov wrote: > On Tue, Mar 31, 2009 at 09:05:28AM -0600, Grant Likely wrote: > [...] >> > +       soc8...@e000 { >> > +               #address-cells = <1>; >> > +               #size-cells = <1>; >> > +               device_type = "soc

Re: [PATCH] linux-next remove wmb() from ide-dma-sff.c and scc_pata.c

2009-03-31 Thread Atsushi Nemoto
On Tue, 31 Mar 2009 09:51:53 +0200 (CEST), Geert Uytterhoeven wrote: > > Followup to "[PATCH 03/10] ide: destroy DMA mappings after ending DMA" > > email on March 14th: > > http://lkml.org/lkml/2009/3/14/17 > > > > No maintainer is listed for "Toshiba CELL Reference Set IDE" > > (BLK_DEV_CE

Re: [PATCH 0/8] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 6:49 AM, Wolfgang Grandegger wrote: > Please *FORGET* this series of patches. Only the I2C related patches are > relevant but I accidentally sent out the complete patch stack :-(. I > will resent them in a second. > > Sorry for any inconvenience this has caused. Heh, no w

kexec: proc/device-tree/chosen/linux,kernel-end: No such file or directory

2009-03-31 Thread Geert Uytterhoeven
With today's kernel, I can no longer kexec any kernel on PS3: | /proc/device-tree/chosen/linux,kernel-end: No such file or directory | Could not get memory layout Today's bad version: 15f7176eb1cccec0a332541285ee752b935c1c85 Yesterday's good version: 0d34fb8e93ceba7b6dad0062dbb4a0813bacd75b Befo

Re: Patch: Fix fec_mpc52xx driver to use net_device_ops

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 8:48 AM, Stephen Hemminger wrote: > On Tue, 31 Mar 2009 12:44:15 +0200 > Henk Stegeman wrote: > >> Fix fec_mpc52xx driver to use net_device_ops and to be careful not to >> dereference phy_device if a phy has not yet been connected. >> >> Signed-off-by: Henk Stegeman Hi H

Re: Patch: Fix fec_mpc52xx driver to use net_device_ops

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 8:48 AM, Stephen Hemminger wrote: > On Tue, 31 Mar 2009 12:44:15 +0200 >> +static const struct net_device_ops mpc52xx_fec_netdev_ops = { >> +       .ndo_open               = mpc52xx_fec_open, >> +       .ndo_stop               = mpc52xx_fec_close, >> +       .ndo_start_xmit

[PATCH] fsl_pq_mdio: Revive UCC MDIO support

2009-03-31 Thread Anton Vorontsov
commit 1577ecef766650a57fceb171acee2b13cbfaf1d3 ("netdev: Merge UCC and gianfar MDIO bus drivers") introduced a regression so that UCC MDIO buses no longer work. This is because fsl_pq_mdio driver wrongly masks all non-TBI PHYs for !fsl,gianfar-mdio buses, while it should do that only for fsl,gian

Problem with module_init?

2009-03-31 Thread Sean MacLennan
With the latest from Linus' tree, I get the following oops: Oops: Kernel access of bad area, sig: 11 [#1] Warp Modules linked in: simple(+) NIP: d14b8000 LR: c0001420 CTR: REGS: cf2a1df0 TRAP: 0400 Not tainted (2.6.29-pika) MSR: 00029000 CR: 2422 XER: TASK = cf896100[16

[PATCH] ucc_geth: Pass proper device to DMA routines, otherwise oops happens

2009-03-31 Thread Anton Vorontsov
The driver should pass a device that actually specifies internal DMA ops, but currently it passes netdev's device, which is wrong and that causes following oops: Kernel BUG at c01c4df8 [verbose debug info unavailable] Oops: Exception in kernel mode, sig: 5 [#1] [...] NIP [c01c4df8] get_new_skb+0x7

Re: [PATCH v4 1/4] NAND: FSL-UPM: add multi chip support

2009-03-31 Thread Anton Vorontsov
On Mon, Mar 30, 2009 at 12:02:42PM +0200, Wolfgang Grandegger wrote: > This patch adds support for multi-chip NAND devices to the FSL-UPM > driver. This requires support for multiple GPIOs for the RNB pins. > The NAND chips are selected through address lines defined by the > FDT property "fsl,upm-a

Re: [PATCH v4 2/4] NAND: FSL-UPM: Add wait flags to support board/chip specific delays

2009-03-31 Thread Anton Vorontsov
On Mon, Mar 30, 2009 at 12:02:43PM +0200, Wolfgang Grandegger wrote: > The NAND flash on the TQM8548_BE modules requires a short delay after > running the UPM pattern. The TQM8548_BE requires a further short delay > after writing out a buffer. Normally the R/B pin should be checked, but > it's not

Re: [PATCH v4 3/4] powerpc: NAND: FSL UPM: document new bindings

2009-03-31 Thread Anton Vorontsov
On Mon, Mar 30, 2009 at 12:02:44PM +0200, Wolfgang Grandegger wrote: > This patch adds documentation for the new NAND FSL UPM bindings for: > > NAND: FSL-UPM: add multi chip support > NAND: FSL-UPM: Add wait flags to support board/chip specific delays > > It also documents the old binding for "

Re: [PATCH] net/fec_mpc52xx: fix BUG on missing dma_ops

2009-03-31 Thread Grant Likely
Thanks Becky. g. 2009/3/31 Becky Bruce : > > On Mar 30, 2009, at 9:25 PM, Grant Likely wrote: > >> From: Grant Likely >> >> The driver triggers a BUG_ON() when allocating DMA buffers if the >> arch/powerpc dma_ops from the of_platform device are not copied >> into net_device structure. >> >> Sig

Re: [PATCH] net/fec_mpc52xx: fix BUG on missing dma_ops

2009-03-31 Thread Becky Bruce
On Mar 30, 2009, at 9:25 PM, Grant Likely wrote: From: Grant Likely The driver triggers a BUG_ON() when allocating DMA buffers if the arch/powerpc dma_ops from the of_platform device are not copied into net_device structure. Signed-off-by: Grant Likely --- Becky, does this look better to y

Re: [PATCH 3/8] powerpc/85xx: Add support for the "socrates" board (MPC8544).

2009-03-31 Thread Wolfgang Grandegger
Hi Grant, Grant Likely wrote: > On Tue, Mar 31, 2009 at 6:37 AM, Wolfgang Grandegger > wrote: >> Supported are Ethernet, serial console, I2C, I2C-based RTC and >> temperature sensors, NOR and NAND flash, PCI, USB, CAN and Lime >> display controller. >> >> The multiplexing of FPGA interrupts onto

[PATCH v2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
The i2c node property "fsl,preserve-clocking" allows to overtake the clock settings from the boot loader avoiding the hard-coded settings. Signed-off-by: Wolfgang Grandegger --- Documentation/powerpc/dts-bindings/fsl/i2c.txt |2 ++ drivers/i2c/busses/i2c-mpc.c | 20 ++

Re: 8641D with linux 2.6.29 did'n show second cpu

2009-03-31 Thread Becky Bruce
On Mar 31, 2009, at 10:06 AM, Eduard Fuchs wrote: Hi, Am Dienstag 31 März 2009 15:20:21 schrieb Kumar Gala: On Mar 31, 2009, at 5:15 AM, Eduard Fuchs wrote: Hi, I'm testing the evaluation board from freescale (MPC8641DHPCN) with the latest linux kernel (2.6.29) and the second core seems disa

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
Grant Likely wrote: > 2009/3/31 Wolfram Sang : > - > - mpc_i2c_setclock(i2c); > + > + if (set_clock) > + mpc_i2c_setclock(i2c); Can't we drop 'set_clock' with something like this here? + if (!of_get_property(op->node, "fsl,preserve-clocking", NULL)) {

Re: [PATCH v2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 2:01 PM, Wolfgang Grandegger wrote: > The i2c node property "fsl,preserve-clocking" allows to overtake the > clock settings from the boot loader avoiding the hard-coded settings. > > Signed-off-by: Wolfgang Grandegger Acked-by: Grant Likely > --- >  Documentation/powerp

MPC83xx console

2009-03-31 Thread Matthew L. Creech
Hi, I'm trying to get Linux booting on a custom board based on the MPC8313 ERDB, but there's no output after the console is transferred. I get the following: Using MPC831x RDB machine description Linux version 2.6.29 (mlcre...@lap) (gcc version 4.3.2 (Sourcery G++ Lite 4.3-50 ) ) #2 PREEMPT Tue

RE: [PATCH 4/6] powerpc: Add mmc-spi-slot bindings

2009-03-31 Thread Yann Pelletier
Original post: Anton Vorontsov avorontsov at ru.mvista.com Sat Jan 24 06:50:37 EST 2009 Sorry if this looks crappy, it's paste from web archive since I was not on the list at that time. I've applied this patch set [1 to 6] to enable SPI device to be listed in the device tree instead of platfo

MPC83xx console : no output after handover

2009-03-31 Thread Matthew L. Creech
(Sorry if this is a dupe, but I think my first attempt was filtered out) Hi, I'm trying to get Linux booting on a custom board based on the MPC8313 ERDB, but there's no output after the console is transferred. I get the following: Using MPC831x RDB machine description Linux version 2.6.29 (mlcr

Re: Build error

2009-03-31 Thread Segher Boessenkool
ERROR: "fsl_pq_mdio_bus_name" [drivers/net/gianfar_driver.ko] undefined! I'll ask Linus to pull anyway though. Cheers, Ben. I believe this is fixed in net-next (and possible linus has already pulled that in.) FWIW, I can't reproduce the issue neither in benh/powerpc.git `next' branch nor in

Re: MPC83xx console : no output after handover

2009-03-31 Thread Gary Thomas
Matthew L. Creech wrote: > (Sorry if this is a dupe, but I think my first attempt was filtered out) Nope, it made it. > Hi, > > I'm trying to get Linux booting on a custom board based on the MPC8313 > ERDB, but there's no output after the console is transferred. I get > the following: > > Usin

Re: Build error

2009-03-31 Thread Grant Likely
On Mon, Mar 30, 2009 at 5:18 PM, Benjamin Herrenschmidt wrote: > On Mon, 2009-03-30 at 17:59 +0400, Anton Vorontsov wrote: >> On Mon, Mar 30, 2009 at 08:51:38AM -0500, Kumar Gala wrote: >> > >> > On Mar 29, 2009, at 10:25 PM, Benjamin Herrenschmidt wrote: >> > >> >> My next branch (after merging f

Re: Build error

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 2:41 PM, Segher Boessenkool wrote: > ERROR: "fsl_pq_mdio_bus_name" [drivers/net/gianfar_driver.ko] > undefined! > I believe this is fixed in net-next (and possible linus has already pulled that in.) >>> >>> FWIW, I can't reproduce the issue neither in

Re: Build error

2009-03-31 Thread Anton Vorontsov
On Tue, Mar 31, 2009 at 10:41:38PM +0200, Segher Boessenkool wrote: > ERROR: "fsl_pq_mdio_bus_name" [drivers/net/gianfar_driver.ko] > undefined! > > I'll ask Linus to pull anyway though. > > Cheers, > Ben. I believe this is fixed in net-next (and possible linus

RE: Interrupts on GPIO

2009-03-31 Thread Yann Pelletier
> Message: 7 > Date: Mon, 30 Mar 2009 10:32:17 -0600 > From: Grant Likely > Subject: > To: Yann Pelletier > Cc: "linuxppc-dev@ozlabs.org" > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > On Mon, Mar 30, 2009 at 9:57 AM, Yann Pelletier > wrote: > > > > Hi, > > I'd like

Re: MPC83xx console : no output after handover

2009-03-31 Thread Matthew L. Creech
On Tue, Mar 31, 2009 at 4:45 PM, Gary Thomas wrote: > > What does your command line (boot args) when it fails?  It should > probably have something like "console=ttyS0,115200" in it. > Yes, that's what I'm using. It also seems to be the default if none is supplied. For the sake of completeness,

Re: [PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Joe Perches
On Tue, 2009-03-31 at 09:29 -0400, Josh Boyer wrote: > Add a MAINTAINERS entry for the hypervisor virtual console support > used on IBM POWER servers. > > Signed-off-by: Josh Boyer > --- > > diff --git a/MAINTAINERS b/MAINTAINERS > index c5f4e9d..387ad45 100644 > --- a/MAINTAINERS > +++ b/MAINTA

Re: [PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Andrew Morton
On Tue, 31 Mar 2009 14:10:23 -0700 Joe Perches wrote: > On Tue, 2009-03-31 at 09:29 -0400, Josh Boyer wrote: > > Add a MAINTAINERS entry for the hypervisor virtual console support > > used on IBM POWER servers. > > > > Signed-off-by: Josh Boyer > > --- > > > > diff --git a/MAINTAINERS b/MAINTA

Re: MPC83xx console : no output after handover

2009-03-31 Thread Gary Thomas
Matthew L. Creech wrote: > On Tue, Mar 31, 2009 at 4:45 PM, Gary Thomas wrote: >> What does your command line (boot args) when it fails? It should >> probably have something like "console=ttyS0,115200" in it. >> > > Yes, that's what I'm using. It also seems to be the default if none > is suppli

Re: Interrupts on GPIO

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 2:59 PM, Yann Pelletier wrote: >> Message: 7 >> Date: Mon, 30 Mar 2009 10:32:17 -0600 >> From: Grant Likely >> Subject: > To: Yann Pelletier >> Cc: "linuxppc-dev@ozlabs.org" >> Message-ID: >>       >> Content-Type: text/plain; charset=ISO-8859-1 >> >> On Mon, Mar 30, 20

  1   2   >