Re: [PATCH] powerpc/usb: use ioremap instead of base plus offset to access regs

2011-11-23 Thread Kumar Gala
On Nov 2, 2011, at 4:39 AM, Xie Shaohui-B21989 wrote: >> -Original Message- >> From: David Laight [mailto:david.lai...@aculab.com] >> Sent: Wednesday, November 02, 2011 5:07 PM >> To: Xie Shaohui-B21989; linuxppc-dev@lists.ozlabs.org >> Cc: linux-...@vger.kernel.org >> Subject: RE: [PATCH

Re: [PATCH] P1021: set IReady in QE Microcode Upload

2011-11-23 Thread Kumar Gala
On Nov 15, 2011, at 9:02 PM, Tabi Timur-B04825 wrote: > On Mon, Nov 14, 2011 at 2:55 AM, Kokoris, Ioannis > wrote: >> Ready register is needed for ROM-less devices such as P1021, MPC859, MPC8306 >> etc. >> For ROM-based devices such as MCP8323 the Ready register does not exist. >> Is there a gl

Re: [PATCH] net: fsl_pq_mdio: fix oops when using uninitialized mutex

2011-11-23 Thread Kumar Gala
On Nov 9, 2011, at 2:10 PM, Andy Fleming wrote: >> Fix this by moving the of_mdiobus_register() call earlier. >> >> Cc: Andy Fleming >> Signed-off-by: Baruch Siach >> --- >> drivers/net/ethernet/freescale/fsl_pq_mdio.c | 14 +++--- >> 1 files changed, 7 insertions(+), 7 deletions(-)

RE: [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-11-23 Thread Li Yang-R58472
> Subject: Re: [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support > large-page Nand chip > > On Thu, 2011-11-24 at 08:41 +0800, b35...@freescale.com wrote: > > + /* > > +* Freescale FCM controller has a 2K size limitation of > > buffer > > +

Re: Fix for fsl_upm

2011-11-23 Thread Kumar Gala
On Oct 27, 2011, at 9:18 AM, Rusev wrote: > patch is vs. 2.6.39, yet it applied to 3.1 > > > > Fix of UPM driver for Freescale PowerPC processors > > If Freescale LBC driver fails to initialise itself from device tree, > then internal structure is freed only but not NULL-fied. > As result fun

Re: [PATCH] powerpc: fixup QE_General4 errata

2011-11-23 Thread Kumar Gala
On Aug 23, 2011, at 7:30 AM, Joakim Tjernlund wrote: > QE_General4 should only round up the divisor iff divisor is > 3. > Rounding up lower divisors makes the error too big, causing USB > on MPC832x to fail. > > Signed-off-by: Joakim Tjernlund > --- > arch/powerpc/sysdev/qe_lib/qe.c |2 +-

Re: [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-11-23 Thread Artem Bityutskiy
On Thu, 2011-11-24 at 08:41 +0800, b35...@freescale.com wrote: > + /* > +* Freescale FCM controller has a 2K size limitation of buffer > +* RAM, so elbc_fcm_ctrl->buffer have to be used if writesize > +* of chip is greater than 2048. > +

RE: [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-11-23 Thread Li Yang-R58472
> Subject: [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support > large-page Nand chip > > From: Liu Shuo > > Freescale FCM controller has a 2K size limitation of buffer RAM. In order > to support the Nand flash chip whose page size is larger than 2K bytes, > we read/write 2k data repe

Re: [git pull] Please pull powerpc.git merge branch (updated)

2011-11-23 Thread Kumar Gala
On Nov 23, 2011, at 11:03 PM, Kumar Gala wrote: > Ben, > > A few minor fixes for FSL PPC SoCs to send up to Linus. > > - k > > The following changes since commit caca6a03d365883564885f2c1da3e88dcf65d139: > > Linux 3.2-rc3 (2011-11-23 20:20:28 -0800) > > are available in the git repository a

Re: [PATCH] SPI: fix build with CONFIG_SPI_FSL_ESPI=m

2011-11-23 Thread Kumar Gala
On Aug 23, 2011, at 3:49 AM, Jiri Slaby wrote: > On 08/23/2011 09:59 AM, Jiri Slaby wrote: >> When spi_fsl_espi is chosen to be built as a module, there is a build >> error because we test only CONFIG_SPI_FSL_ESPI in declaration of >> struct mpc8xxx_spi in drivers/spi/spi_fsl_lib.h. >> >> We nee

Re: [PATCH 8/9] arch/powerpc/sysdev/ehv_pic.c: add missing kfree

2011-11-23 Thread Kumar Gala
On Aug 8, 2011, at 6:18 AM, Julia Lawall wrote: > From: Julia Lawall > > At this point, ehv_pic has been allocated but not stored anywhere, so it > should be freed before leaving the function. > > A simplified version of the semantic match that finds this problem is as > follows: (http://cocci

Re: [PATCH 2/6] powerpc/85xx: consolidate of_platform_bus_probe calls

2011-11-23 Thread Kumar Gala
On Nov 17, 2011, at 11:56 AM, Dmitry Eremin-Solenikov wrote: > 85xx board files have a lot of duplication in *_publish_devices()/ > *_declare_of_platform_devices() functions. Merge that into a single > function common to most of the boards. > > Signed-off-by: Dmitry Eremin-Solenikov > --- > arc

Re: [PATCH 1/6] powerpc/85xx: separate cpm2 pic init

2011-11-23 Thread Kumar Gala
On Nov 17, 2011, at 11:56 AM, Dmitry Eremin-Solenikov wrote: > Separate handling of CPM2 PIC initialization to mpc85xx_cpm2_pic_init() > function. > > Signed-off-by: Dmitry Eremin-Solenikov > --- > arch/powerpc/platforms/85xx/Makefile |2 + > arch/powerpc/platforms/85xx/ksi8560.c

Re: [PATCH] powerpc/85xx: do not force PHYS_64BIT on the P1022DS

2011-11-23 Thread Kumar Gala
On Nov 3, 2011, at 2:38 PM, Timur Tabi wrote: > Kconfig option PHYS_64BIT sets the size of phys_addr_t to 64 bits, which > allows support for a 36-bit physical address space. With this option, the > kernel can support more than 2GB of RAM, but the larger address size > impacts performance slight

[PATCH 2/2] powerpc/85xx: Renamed mpc85xx_common.c to common.c

2011-11-23 Thread Kumar Gala
The file name is already scoped by the directory its in. Signed-off-by: Kumar Gala --- arch/powerpc/platforms/85xx/Makefile |2 +- .../platforms/85xx/{mpc85xx_common.c => common.c} |0 2 files changed, 1 insertions(+), 1 deletions(-) rename arch/powerpc/platforms/85xx/{mp

[PATCH 1/2] powerpc/85xx: Additional consolidate of_platform_bus_probe calls

2011-11-23 Thread Kumar Gala
P1010RDB & P1023RDS can use the new mpc85xx_common_publish_devices(). Also move 'fsl,srio' into the list of standard buses. Signed-off-by: Kumar Gala --- arch/powerpc/platforms/85xx/mpc85xx_common.c |1 + arch/powerpc/platforms/85xx/mpc85xx_mds.c|1 - arch/powerpc/platforms/85xx/p101

Re: [PATCH 4/4] powerpc/83xx: make mpc830x_rdb use mpc83xx_setup_pci

2011-11-23 Thread Kumar Gala
On Nov 17, 2011, at 8:48 AM, Dmitry Eremin-Solenikov wrote: > Traditionally mpc830x_rdb board file searched for mpc8308-pcie devices. > However both in-kernel dts from the beginning declared those pcie units > as compatible with mpc8314-pci, which is handled by mpc83xx_setup_pci(). > > Drop spec

Re: [PATCH 2/4] powerpc/83xx: merge PCI bridge additions

2011-11-23 Thread Kumar Gala
On Nov 17, 2011, at 8:48 AM, Dmitry Eremin-Solenikov wrote: > Nearly all mpc83xx-based boards have a common piece of code - one that > loops over all pci/pcie bridges and registers them. Merge that code into > a special function common to all boards. > > Signed-off-by: Dmitry Eremin-Solenikov >

Re: [PATCH 1/4] powerpc/83xx: consolidate of_platform_bus_probe calls

2011-11-23 Thread Kumar Gala
On Nov 17, 2011, at 8:48 AM, Dmitry Eremin-Solenikov wrote: > 83xx board files have a lot of duplication in > *_declare_of_platform_devices() functions. Merge that into a single > function common to most of the boards. > > The only leftover is mpc834x_itx.c board file which explicitly asks for >

Re: [PATCH V2 1/3] powerpc/83xx: consolidate init_IRQ functions

2011-11-23 Thread Kumar Gala
On Jul 22, 2011, at 2:55 PM, Dmitry Eremin-Solenikov wrote: > On mpc83xx platform nearly all _init_IRQ functions look alike. They either > just setup ipic, or setup ipic and QE PIC. Separate this to special functions > to be either referenced from ppc_md, or called from board file. > > Signed-of

Re: [PATCH 2/6] powerpc/time: Use clockevents_calc_mult_shift

2011-11-23 Thread Kumar Gala
On Nov 24, 2011, at 12:07 AM, Anton Blanchard wrote: > We can use clockevents_calc_mult_shift instead of doing all > the work ourselves. > > Signed-off-by: Anton Blanchard > --- > > Index: linux-build/arch/powerpc/kernel/time.c >

Re: [PATCH] powerpc/40x: Add APM8018X SOC support

2011-11-23 Thread Tanmay
Hello, Thanks for the comments. Please see inline. Regards, Tanmay On Wed, Nov 23, 2011 at 3:53 PM, Paul Bolle wrote: > Tanmay, > > (Some minor Kconfig related comments follow.) > > On Wed, 2011-11-23 at 15:14 +0530, Tanmay Inamdar wrote: > > The AppliedMicro APM8018X embedded processor target

[PATCH 6/6] powerpc/time: Optimise decrementer_check_overflow

2011-11-23 Thread Anton Blanchard
decrementer_check_overflow is called from arch_local_irq_restore so we want to make it as light weight as possible. As such, turn decrementer_check_overflow into an inline function. To avoid a circular mess of includes, separate out the two components of struct decrementer_clock and keep the struc

[PATCH 5/6] powerpc/time: Fix some style issues

2011-11-23 Thread Anton Blanchard
Fix some formatting issues and use the DECREMENTER_MAX define instead of 0x7fff. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/kernel/time.c === --- linux-build.orig/arch/powerpc/kernel/time.c 2011-11-24 16:

[PATCH 4/6] powerpc/time: Remove unnecessary sanity check of decrementer expiration

2011-11-23 Thread Anton Blanchard
The clockevents code uses max_delta_ns to avoid calling a clockevent with too large a value. Remove the redundant version of this in the timer_interrupt code. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/kernel/time.c ===

[PATCH 3/6] powerpc/time: Use clocksource_register_hz

2011-11-23 Thread Anton Blanchard
Use clocksource_register_hz which calculates the shift/mult factors for us. Also remove the shift = 22 assumption in vsyscall_update - thanks to Paul Mackerras and John Stultz for catching that. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/kernel/time.c

[PATCH 2/6] powerpc/time: Use clockevents_calc_mult_shift

2011-11-23 Thread Anton Blanchard
We can use clockevents_calc_mult_shift instead of doing all the work ourselves. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/kernel/time.c === --- linux-build.orig/arch/powerpc/kernel/time.c 2011-11-17 10:11:49

[PATCH 1/6] powerpc/time: Handle wrapping of decrementer

2011-11-23 Thread Anton Blanchard
When re-enabling interrupts we have code to handle edge sensitive decrementers by resetting the decrementer to 1 whenever it is negative. If interrupts were disabled long enough that the decrementer wrapped to positive we do nothing. This means interrupts can be delayed for a long time until it fin

[PATCH 0/6] ppc time fixes

2011-11-23 Thread Anton Blanchard
Here is a roll up of various time fixes I have pending. Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 2/3] powerpc/85xx: add pixis indirect mode device tree node

2011-11-23 Thread Kumar Gala
On Nov 18, 2011, at 11:50 AM, Timur Tabi wrote: > The Freescale P1022 has a unique pin muxing "feature" where the DIU video > controller's video signals are muxed with 24 of the local bus address signals. > When the DIU is enabled, the bulk of the local bus is disabled, preventing > access to mem

Re: [PATCH 1/3] powerpc/85xx: p1022ds: disable the NOR flash node if video is enabled

2011-11-23 Thread Kumar Gala
On Nov 18, 2011, at 11:49 AM, Timur Tabi wrote: > The Freescale P1022 has a unique pin muxing "feature" where the DIU video > controller's video signals are muxed with 24 of the local bus address signals. > When the DIU is enabled, the bulk of the local bus is disabled, preventing > access to mem

Re: [PATCH] powerpc/85xx: Add lbc suspend support for PM

2011-11-23 Thread Kumar Gala
On Nov 21, 2011, at 12:29 AM, Jia Hongtao wrote: > Power supply for LBC registers is off when system go to deep-sleep state. > We save the values of registers before suspend and restore to registers > after resume. > > We removed the last two reservation arrays from struct fsl_lbc_regs for > all

Re: [PATCH] Do not hide resource for pci/pcie when configured as Agent/EP

2011-11-23 Thread Kumar Gala
On Oct 28, 2011, at 3:08 AM, Jia Hongtao wrote: > From: Jason Jin > > Current pci/pcie init code will hide the pci/pcie host resource. > But did not judge it is host/RC or agent/EP. If configured as > agent/EP, we should avoid hiding its resource in the host side. > > In PCI system, the Progra

[git pull] Please pull powerpc.git merge branch

2011-11-23 Thread Kumar Gala
Ben, A few minor fixes for FSL PPC SoCs to send up to Linus. - k The following changes since commit caca6a03d365883564885f2c1da3e88dcf65d139: Linux 3.2-rc3 (2011-11-23 20:20:28 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git me

Re: [4/4] powerpc/booke: Re-organize debug code

2011-11-23 Thread Kumar Gala
* set_dabr/do_dabr are no longer used when CNFIG_PPC_ADV_DEBUG_REGS is set refactor code a bit such that we only build the dabr code for !CONFIG_PPC_ADV_DEBUG_REGS and removed some CONFIG_PPC_ADV_DEBUG_REGS code in set_dabr that would never get built. * Move do_send_t

Re: [PATCH 1/2] Unify pci/pcie initialization code

2011-11-23 Thread Kumar Gala
On Nov 22, 2011, at 12:20 AM, Jia Hongtao-B38951 wrote: > Hi Kumar, > We want more comments on this series of patches ([1/2] & [2/2]) to speed up > the pushing-to-kernel progress. > Thanks. I think the code is fine, but you need to update it for all the boards include the 86xx ones. - k > >

[PATCH 2/3] mtd/nand : set correct length to FBCR for a non-full-page write

2011-11-23 Thread b35362
From: Liu Shuo When we do a non-full-page write, the length be set to FBCR should not be 'elbc_fcm_ctrl->index', it should be 'elbc_fcm_ctrl->index - elbc_fcm_ctrl->column'. Signed-off-by: Liu Shuo Signed-off-by: Li Yang --- drivers/mtd/nand/fsl_elbc_nand.c |3 ++- 1 files changed, 2 inse

[PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-11-23 Thread b35362
From: Liu Shuo Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K bytes, we read/write 2k data repeatedly by issuing FIR_OP_RB/FIR_OP_WB and save them to a large buffer. Signed-off-by: Liu Shuo Signed-off-by

[PATCH 1/3] mtd/nand : use elbc_fcm_ctrl->oob to set FPAR_MS bit of FPAR

2011-11-23 Thread b35362
From: Liu Shuo On both of large-page chip and small-page chip, we always should use 'elbc_fcm_ctrl->oob' to set the FPAR_LP_MS/FPAR_SP_MS bit of FPAR, don't use a overflowed 'column' to set it. Signed-off-by: Liu Shuo Signed-off-by: Li Yang --- drivers/mtd/nand/fsl_elbc_nand.c | 18

Re: [PATCH v2] usb/fsl_udc: fix dequeuing a request in progress

2011-11-23 Thread Peter Chen
On Wed, Nov 23, 2011 at 08:12:56PM +0800, Li Yang wrote: > The original implementation of dequeuing a request in progress > is not correct. Change to use a correct process and also clean > up the related functions a little bit. > > Signed-off-by: Li Yang > Cc: Peter Chen > --- > drivers/usb/ga

Re: [RFC PATCH 0/11] KVM: PPC: Update Book3S HV memory handling

2011-11-23 Thread Marcelo Tosatti
On Sat, Nov 19, 2011 at 08:54:24AM +1100, Paul Mackerras wrote: > On Fri, Nov 18, 2011 at 02:57:11PM +0100, Alexander Graf wrote: > > > > This touches areas that I'm sure non-PPC people would want to see as > > well. Could you please CC kvm@vger too next time? > > > > Avi, Marcelo, mind to review

Re: [RFC PATCH 11/11] KVM: PPC: Eliminate global spinlock in kvmppc_h_enter

2011-11-23 Thread Marcelo Tosatti
On Thu, Nov 17, 2011 at 10:55:49AM +1100, Paul Mackerras wrote: > >From dfd5bcfac841f8a36593edf60d9fb15e0d633287 Mon Sep 17 00:00:00 2001 > From: Paul Mackerras > Date: Mon, 14 Nov 2011 13:30:38 +1100 > Subject: > > Currently, kvmppc_h_enter takes a spinlock that is global to the guest, > kvm->m

Re: [PATCH v3 2/8] [booke] Rename mapping based RELOCATABLE to DYNAMIC_MEMSTART for BookE

2011-11-23 Thread Josh Boyer
On Mon, Nov 14, 2011 at 12:41 AM, Suzuki K. Poulose wrote: > The current implementation of CONFIG_RELOCATABLE in BookE is based > on mapping the page aligned kernel load address to KERNELBASE. This > approach however is not enough for platforms, where the TLB page size > is large (e.g, 256M on 44x

Re: [PATCH v3 1/8] [44x] Fix typo in KEXEC Kconfig dependency

2011-11-23 Thread Josh Boyer
On Mon, Nov 14, 2011 at 12:41 AM, Suzuki K. Poulose wrote: > Kexec is not supported on 47x. 47x is a variant of 44x with slightly > different MMU and SMP support. There was a typo in the Kconfig > dependency for KEXEC. This patch fixes the same. > > Signed-off-by: Suzuki K. Poulose > Cc:     Kuma

Re: [PATCH] powerpc/40x: Add APM8018X SOC support

2011-11-23 Thread Kumar Gala
On Nov 23, 2011, at 3:44 AM, Tanmay Inamdar wrote: > arch/powerpc/kernel/udbg_16550.c| 22 + Would be probably good to split this change into its own patch. - k ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozl

Re: [PATCH] powerpc/40x: Add APM8018X SOC support

2011-11-23 Thread Arnd Bergmann
On Wednesday 23 November 2011, Tanmay Inamdar wrote: > The AppliedMicro APM8018X embedded processor targets embedded applications > that > require low power and a small footprint. It features a PowerPC 405 processor > core built in a 65nm low-power CMOS process with a five-stage pipeline > execut

Re: [PATCH] powerpc/40x: Add APM8018X SOC support

2011-11-23 Thread Josh Boyer
On Wed, Nov 23, 2011 at 4:44 AM, Tanmay Inamdar wrote: > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index b177caa..3f2cc36 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -978,3 +978,9 @@ config PPC_LIB_RHEAP >        bool > >  source "arch/powerpc/kvm/Kconf

Re: [PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-23 Thread Sasha Levin
On Wed, 2011-11-23 at 18:26 +0530, Amit Shah wrote: > On (Wed) 23 Nov 2011 [16:08:52], Amit Shah wrote: > > With this setup, with and without patches, I can spawn two consoles > > via: > > > > /sbin/agetty /dev/hvc0 9600 vt100 > > /sbin/agetty /dev/hvc1 9600 vt100 > > > > (Strange thing is, the s

Re: [PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-23 Thread Amit Shah
On (Wed) 23 Nov 2011 [15:06:04], Sasha Levin wrote: > On Wed, 2011-11-23 at 18:26 +0530, Amit Shah wrote: > > On (Wed) 23 Nov 2011 [16:08:52], Amit Shah wrote: > > > With this setup, with and without patches, I can spawn two consoles > > > via: > > > > > > /sbin/agetty /dev/hvc0 9600 vt100 > > > /

Re: [PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-23 Thread Amit Shah
On (Wed) 23 Nov 2011 [16:08:52], Amit Shah wrote: > With this setup, with and without patches, I can spawn two consoles > via: > > /sbin/agetty /dev/hvc0 9600 vt100 > /sbin/agetty /dev/hvc1 9600 vt100 > > (Strange thing is, the second one gives a 'password incorrect' error > on login attempts, wh

Re: [PATCH v3 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-11-23 Thread LiuShuo
于 2011年11月23日 07:55, Scott Wood 写道: On 11/15/2011 03:29 AM, b35...@freescale.com wrote: From: Liu Shuo Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K bytes, we read/write 2k data repeatedly by issuing FI

[PATCH v2] usb/fsl_udc: fix dequeuing a request in progress

2011-11-23 Thread Li Yang
The original implementation of dequeuing a request in progress is not correct. Change to use a correct process and also clean up the related functions a little bit. Signed-off-by: Li Yang Cc: Peter Chen --- drivers/usb/gadget/fsl_udc_core.c | 68 +--- drivers/

Re: [PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-23 Thread Amit Shah
On (Thu) 17 Nov 2011 [10:57:37], Miche Baker-Harvey wrote: > Rusty, Michael, Stephen, et al, > > Thanks for your comments on these patches. > > For what I'm trying to do, all three patches are necessary, but maybe > I'm going about it the wrong way. Your input would be appreciated. > I'm in no wa

Re: [PATCH] powerpc/40x: Add APM8018X SOC support

2011-11-23 Thread Paul Bolle
Tanmay, (Some minor Kconfig related comments follow.) On Wed, 2011-11-23 at 15:14 +0530, Tanmay Inamdar wrote: > The AppliedMicro APM8018X embedded processor targets embedded applications > that > require low power and a small footprint. It features a PowerPC 405 processor > core built in a 65nm

RE: [PATCH] usb/fsl_udc: fix dequeuing a request in progress

2011-11-23 Thread Li Yang-R58472
>-Original Message- >From: Peter Chen [mailto:hzpeterc...@gmail.com] >Sent: Wednesday, November 23, 2011 11:02 AM >To: Li Yang-R58472 >Cc: Chen Peter-B29397; ba...@ti.com; gre...@suse.de; linux- >u...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org >Subject: Re: [PATCH] usb/fsl_udc: fix de