[PATCH] perf, powerpc: Convert the FSL driver to use local64_t

2010-08-02 Thread Paul Mackerras
From: Peter Zijlstra a.p.zijls...@chello.nl For some reason the FSL driver got left out when we converted perf to use local64_t instead of atomic64_t. Signed-off-by: Peter Zijlstra a.p.zijls...@chello.nl --- This is against the perf/core branch in the tip tree at

RE: [PATCH 3/3 v2] mmc: Add ESDHC weird voltage bits workaround

2010-08-02 Thread Zang Roy-R61911
-Original Message- From: Anton Vorontsov [mailto:cbouatmai...@gmail.com] Sent: Friday, July 30, 2010 15:06 PM To: Zang Roy-R61911 Cc: linux-...@vger.kernel.org; linuxppc-...@ozlabs.org; a...@linux-foundation.org Subject: Re: [PATCH 3/3 v2] mmc: Add ESDHC weird voltage bits

Re: ramdisk size is larger than 4MB

2010-08-02 Thread Shawn Jin
It should be fine to just change it locally.  It would be a problem to change it upstream for all boards, since some supported boards have only 16MB (or even 8MB) of RAM. I'll definitely try to change it locally first. Would a configurable base address for the bootwrapper an acceptable

Re: [PATCH 3/3 v2] mmc: Add ESDHC weird voltage bits workaround

2010-08-02 Thread Anton Vorontsov
On Mon, Aug 02, 2010 at 02:19:58PM +0800, Zang Roy-R61911 wrote: [...] For p4080 it will be 'voltage-ranges = 3200 3400;'. So, with voltage-ranges we can do fine grained VDD control without introducing anything new. why not voltage-ranges = 3300 3300; Right you are, both

Re: [PATCH 02/11] powerpc/nvram: More flexible nvram_create_partition()

2010-08-02 Thread Benjamin Herrenschmidt
On Mon, 2010-08-02 at 10:55 +1000, Benjamin Herrenschmidt wrote: Replace nvram_create_os_partition() with a variant that takes the partition name, signature and size as arguments. Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- arch/powerpc/kernel/nvram_64.c |

[PATCH v2 0/6] refactor spi_mpc8xxx.c and add eSPI controller support

2010-08-02 Thread Mingkai Hu
In-Reply-To: This patchset refactor the file spi_mpc8xxx.c to abstract some common code as a lib used by the SPI/eSPI controller driver, move the SPI controller driver code to spi_fsl_spi.c, and add the eSPI controller support with spi_fsl_espi.c. Tested on P4080DS and MPC8536DS board based on

[PATCH v2 6/6] DTS: add SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board

2010-08-02 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2: - Remove the whitespace inconsitencies arch/powerpc/boot/dts/mpc8536ds.dts | 52 +++ arch/powerpc/boot/dts/p4080ds.dts | 11 +++- 2 files changed, 56 insertions(+), 7 deletions(-) diff --git

[PATCH v2 5/6] powerpc/of: add eSPI controller dts bindings

2010-08-02 Thread Mingkai Hu
Also modifiy the document of cell-index in SPI controller. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2: - Add cell-index clarification - Add mpc8536 chip name to the compatible value Documentation/powerpc/dts-bindings/fsl/spi.txt | 24 +++- 1 files

[PATCH v2 2/6] eSPI: add eSPI controller support

2010-08-02 Thread Mingkai Hu
Add eSPI controller support based on the library code spi_fsl_lib.c. The eSPI controller is newer controller 85xx/Pxxx devices supported. There're some differences comparing to the SPI controller: 1. Has different register map and different bit definition So leave the code operated the

[PATCH v2 3/6] mtd: m25p80: add support to parse the SPI flash's partitions

2010-08-02 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2: - Move the flash partition function from of_spi.c to MTD driver drivers/mtd/devices/m25p80.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c

[PATCH v2 4/6] mtd: m25p80: add a read function to read page by page

2010-08-02 Thread Mingkai Hu
For Freescale's eSPI controller, the max transaction length one time is limitted by the SPCOM[TRANSLEN] field which is 0x. When used mkfs.ext2 command to create ext2 filesystem on the flash, the read length will exceed the max value of the SPCOM[TRANSLEN] field, so change the read function to

Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-08-02 Thread Michał Nazarewicz
On Fri, 30 Jul 2010 16:49:14 +0200, Uwe Kleine-König u.kleine-koe...@pengutronix.de wrote: by using usb_gadget_probe_driver with driver-bind = NULL. When all drivers are fixed to use the new function the bind member of struct usb_gadget_driver can go away. On second thought, would it be hard

Re: 2.6.35-stable/ppc64/p7: Badness at lib/dma-debug.c:902, Call Trace Instruction Dump during boot

2010-08-02 Thread FUJITA Tomonori
CC'ed to dma-debug maintainer. On Mon, 02 Aug 2010 16:21:09 +0530 Subrata Modak subr...@linux.vnet.ibm.com wrote: Hi, On boot, Badness at lib/dma-debug.c:902, Call Trace Instruction Dump are recorded at /var/log/messages:

Issues to access Compact Flash Card on MPC8360E

2010-08-02 Thread Atul Deshmukh
Hi, I would like to have your expert opinion on one of our design issue to access the Compact Flash on MPC8360E. I'm building an embedded system that will access Compact Flash card on MPC8360E through local bus and not through PCMCIA. The issue is how to access the CF card i.e. whether in

[PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver

2010-08-02 Thread Uwe Kleine-König
The bind function is only needed at probe time, so there is no value in saving it . To accomplish this the function to register a gadget driver now takes the bind function as a second argument. To make things clearer rename the function to resemble platform_driver_probe vs.

Re: [PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver

2010-08-02 Thread Julia Lawall
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index 731150d..c266c1e 100644 --- a/drivers/usb/gadget/amd5536udc.c +++ b/drivers/usb/gadget/amd5536udc.c @@ -1954,13 +1954,14 @@ static int setup_ep0(struct udc *dev) } /* Called by gadget driver to

Re: [PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver

2010-08-02 Thread Uwe Kleine-König
On Mon, Aug 02, 2010 at 02:51:36PM +0200, Julia Lawall wrote: diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index 731150d..c266c1e 100644 --- a/drivers/usb/gadget/amd5536udc.c +++ b/drivers/usb/gadget/amd5536udc.c @@ -1954,13 +1954,14 @@ static int

Re: [PATCH] perf, powerpc: Convert the FSL driver to use local64_t

2010-08-02 Thread Kumar Gala
On Aug 2, 2010, at 1:18 AM, Paul Mackerras wrote: From: Peter Zijlstra a.p.zijls...@chello.nl For some reason the FSL driver got left out when we converted perf to use local64_t instead of atomic64_t. Signed-off-by: Peter Zijlstra a.p.zijls...@chello.nl --- This is against the

Re: Issues to access Compact Flash Card on MPC8360E

2010-08-02 Thread Anton Vorontsov
On Mon, Aug 02, 2010 at 07:44:22PM +0530, Atul Deshmukh wrote: Thanks a lot Anton, From the dts entry given below, local...@e0005000 { #address-cells = 2; #size-cells = 1; compatible = fsl,mpc8349e-localbus,

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Sam Ravnborg
On Mon, Aug 02, 2010 at 11:51:11AM +0300, Thomas Backlund wrote: Hi, (please cc me as I'm not subscribed) updating from make 3.81 to 3.82 gets me this: [tho...@tmb linux-2.6.35]$ cp arch/powerpc/configs/ppc64_defconfig .config [tho...@tmb linux-2.6.35]$ LC_ALL=C make oldconfig ARCH=powerpc

Re: [PATCH v2 1/2] powerpc/85xx: kexec for SMP 85xx BookE systems

2010-08-02 Thread Kumar Gala
On Jul 21, 2010, at 4:14 PM, Matthew McClintock wrote: Adds support for kexec on 85xx machines for the BookE platform. Including support for SMP machines Based off work from Maxim Uvarov muva...@mvista.com Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/Kconfig

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Sam Ravnborg
Thanks, this seems to fix the first issue, but then I get the same erro on the following line 190: 190: bootwrapper_install %.dtb: 191:$(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) Obviously - dunno how I missed that. Updated patch below. I will do a

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Thomas Backlund
02.08.2010 21:28, Sam Ravnborg skrev: On Mon, Aug 02, 2010 at 11:51:11AM +0300, Thomas Backlund wrote: Hi, (please cc me as I'm not subscribed) updating from make 3.81 to 3.82 gets me this: [tho...@tmb linux-2.6.35]$ cp arch/powerpc/configs/ppc64_defconfig .config [tho...@tmb

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Andreas Schwab
Sam Ravnborg s...@ravnborg.org writes: +bootwrapper_install Missing colon. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 And now for something completely different. ___

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Thomas Backlund
02.08.2010 23:51, Sam Ravnborg skrev: Thanks, this seems to fix the first issue, but then I get the same erro on the following line 190: 190: bootwrapper_install %.dtb: 191:$(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) Obviously - dunno how I missed that.

Re: Please pull my perf.git urgent branch

2010-08-02 Thread Scott Wood
On Wed, 28 Jul 2010 14:47:31 +1000 Paul Mackerras pau...@samba.org wrote: On Tue, Jul 27, 2010 at 11:28:54AM -0500, Scott Wood wrote: Doesn't the setting of .period need to be maintained (it is in the other powerpc perf_event implementation that this is derived from)? Gah, yes it does.

[PATCH] perf, powerpc: fsl_emb: Restore setting perf_sample_data.period

2010-08-02 Thread Scott Wood
Commit 6b95ed345b9faa4ab3598a82991968f2e9f851bb changed from a struct initializer to perf_sample_data_init(), but the setting of the .period member was left out. Signed-off-by: Scott Wood scottw...@freescale.com --- arch/powerpc/kernel/perf_event_fsl_emb.c |1 + 1 files changed, 1

Re: [PATCH] usb gadget: don't save bind callback in struct usb_gadget_driver

2010-08-02 Thread Greg KH
On Mon, Aug 02, 2010 at 03:12:48PM +0200, Uwe Kleine-König wrote: On Mon, Aug 02, 2010 at 02:51:36PM +0200, Julia Lawall wrote: diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index 731150d..c266c1e 100644 --- a/drivers/usb/gadget/amd5536udc.c +++

Re: [PATCH 2/3] USB: add of_platform glue driver for FSL USB DR controller

2010-08-02 Thread Greg KH
On Wed, Jul 28, 2010 at 11:46:47AM -0700, Greg KH wrote: On Wed, Jul 28, 2010 at 12:14:14PM -0600, Grant Likely wrote: On Wed, Jul 28, 2010 at 5:58 AM, Anatolij Gustschin ag...@denx.de wrote: Hi Grant, On Wed, 28 Jul 2010 02:16:08 -0600 Grant Likely grant.lik...@secretlab.ca wrote:

Please pull my perf.git master branch

2010-08-02 Thread Paul Mackerras
Ingo, Please do a pull from my perf.git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/paulus/perf.git master to get two commits. They only affect the driver for the PMU on the Freescale embedded PowerPC processors. One is from Peter Z. and has been around for some time. The other

[PATCH 2/3 v2] dts: Add sdhci,auto-cmd12 field for p4080 device tree

2010-08-02 Thread Roy Zang
Signed-off-by: Roy Zang tie-fei.z...@freescale.com --- Documentation/powerpc/dts-bindings/fsl/esdhc.txt |2 ++ arch/powerpc/boot/dts/p4080ds.dts|1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Documentation/powerpc/dts-bindings/fsl/esdhc.txt

[PATCH 3/3 v2] dts: Add ESDHC weird voltage bits workaround

2010-08-02 Thread Roy Zang
P4080 ESDHC controller does not support 1.8V and 3.0V voltage. but the host controller capabilities register wrongly set the bits. This patch adds the workaround to correct the weird voltage setting bits. Only 3.3V voltage is supported for P4080 ESDHC controller. Signed-off-by: Roy Zang

[PATCH 1/3 v2] sdhci: Add auto CMD12 support for eSDHC driver

2010-08-02 Thread Roy Zang
From: Jerry Huang chang-ming.hu...@freescale.com Add auto CMD12 command support for eSDHC driver. This is needed by P4080 and P1022 for block read/write. Manual asynchronous CMD12 abort operation causes protocol violations on these silicons. Signed-off-by: Jerry Huang

Re: [PATCH v4 1/2] powerpc: cleanup APIs for cpu/thread/core mappings

2010-08-02 Thread Benjamin Herrenschmidt
On Thu, 2010-07-22 at 06:27 +0530, Vaidyanathan Srinivasan wrote: These APIs take logical cpu number as input Change cpu_first_thread_in_core() to cpu_leftmost_thread_sibling() Change cpu_last_thread_in_core() to cpu_rightmost_thread_sibling() I'm still not happy here. I don't find

[PATCH 3/3] P4080/mtd: Fix the freescale lbc issue with 36bit mode

2010-08-02 Thread Roy Zang
From: Lan Chunhe-B25806 b25...@freescale.com When system uses 36bit physical address, res.start is 36bit physical address. But the function of in_be32 returns 32bit physical address. Then both of them compared each other is wrong. So by converting the address of res.start into the right format

Re: Please pull my perf.git urgent branch

2010-08-02 Thread Ingo Molnar
* Scott Wood scottw...@freescale.com wrote: On Wed, 28 Jul 2010 14:47:31 +1000 Paul Mackerras pau...@samba.org wrote: On Tue, Jul 27, 2010 at 11:28:54AM -0500, Scott Wood wrote: Doesn't the setting of .period need to be maintained (it is in the other powerpc perf_event

Re: [PATCH 0/2 v3] mpc5200 ac97 gpio reset

2010-08-02 Thread Mark Brown
On Sat, Jul 31, 2010 at 10:42:15PM -0600, Grant Likely wrote: On Sun, Jun 27, 2010 at 4:01 PM, Mark Brown I'm a little concerned with a collision with multi codec here. It'd be handy if you could keep it separate in case it needs merging into both trees (or we could merge via ASoC only).