Re: [PATCH v2 1/6] spi/mpc8xxx: refactor the common code for SPI/eSPI controller

2010-08-10 Thread Grant Likely
On Mon, Aug 2, 2010 at 1:51 AM, Mingkai Hu mingkai...@freescale.com wrote: Refactor the common code in file spi_mpc8xxx.c to spi_fsl_lib.c used by SPI/eSPI controller driver as a library, move the SPI controller driver to a new file spi_fsl_spi.c, and leave the QE/CPM SPI controller code in

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

2010-08-10 Thread Grant Likely
On Mon, Aug 2, 2010 at 1:52 AM, Mingkai Hu mingkai...@freescale.com wrote: 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

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

2010-08-10 Thread Grant Likely
On Mon, Aug 2, 2010 at 1:52 AM, Mingkai Hu mingkai...@freescale.com wrote: 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

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

2010-08-10 Thread Grant Likely
[adding David Woodhouse] (Btw, you should cc: David Woodhouse and the mtd list on the MTD patches). On Mon, Aug 2, 2010 at 1:52 AM, Mingkai Hu mingkai...@freescale.com wrote: For Freescale's eSPI controller, the max transaction length one time is limitted by the SPCOM[TRANSLEN] field which is

Re: mpc870: hctosys.c unable to open rtc device rtc0

2010-08-10 Thread Shawn Jin
Thanks Scott for the confirmation. I added that to my dts file and the driver did try to probe the device. But accessing the device timed out. There are some microcode patches related to I2C that I've not applied. I'll try the patch(es) later. But how can I find out which patch should be

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

2010-08-10 Thread Grant Likely
Hi Mingkai, one comment below. Otherwise this patch looks good, and so does patch 5. g. On Mon, Aug 2, 2010 at 1:52 AM, Mingkai Hu mingkai...@freescale.com wrote: Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2:  - Remove the whitespace inconsitencies  

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

2010-08-10 Thread David Brownell
--- On Mon, 8/9/10, Grant Likely grant.lik...@secretlab.ca wrote: +       nr_parts = of_mtd_parse_partitions(spi-dev, np, parts); Let's keep OF-specific logic out of drivers like this one ... intended to work without OF. NAK on adding dependencies like OF to drivers and other

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

2010-08-10 Thread Grant Likely
On Tue, Aug 10, 2010 at 1:14 AM, David Brownell davi...@pacbell.net wrote: --- On Mon, 8/9/10, Grant Likely grant.lik...@secretlab.ca wrote: +       nr_parts = of_mtd_parse_partitions(spi-dev, np, parts); Let's keep OF-specific logic out of drivers like this one ...  intended to work

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

2010-08-10 Thread Zang Roy-R61911
-Original Message- From: glik...@secretlab.ca [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Thursday, August 05, 2010 9:03 AM To: Zang Roy-R61911 Cc: linux-...@vger.kernel.org; linuxppc-...@ozlabs.org; a...@linux-foundation.org Subject: Re: [PATCH 1/3 v2]

[PATCH 1/2] mmc: change ACMD12 to AUTO_CMD12 for more clear

2010-08-10 Thread Roy Zang
Change ACMD12 to AUTO_CMD12 to reduce the confusion. ACMD12 might be confused with MMC/SD App CMD 12 (CMD55+CMD12 combo). Signed-off-by: Roy Zang tie-fei.z...@freescale.com --- drivers/mmc/host/sdhci-of-core.c |2 +- drivers/mmc/host/sdhci.c |8 drivers/mmc/host/sdhci.h

[PATCH 2/2] mmc: some nip clean up for the sdhci driver

2010-08-10 Thread Roy Zang
remove the extra line and rewrite the if condition line. Signed-off-by: Roy Zang tie-fei.z...@freescale.com --- drivers/mmc/host/sdhci-of-core.c |1 - drivers/mmc/host/sdhci.c |5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git

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

2010-08-10 Thread Zang Roy-R61911
-Original Message- From: Anton Vorontsov [mailto:cbouatmai...@gmail.com] Sent: Tuesday, August 10, 2010 1:44 AM To: Grant Likely Cc: Zang Roy-R61911; linuxppc-...@ozlabs.org; a...@linux-foundation.org; linux-...@vger.kernel.org Subject: Re: [PATCH 1/3 v2] sdhci: Add auto CMD12

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

2010-08-10 Thread Zang Roy-R61911
-Original Message- From: Michał Mirosław [mailto:mir...@gmail.com] Sent: Tuesday, August 10, 2010 2:25 AM To: Zang Roy-R61911 Cc: linux-...@vger.kernel.org; linuxppc-...@ozlabs.org; a...@linux-foundation.org Subject: Re: [PATCH 1/3 v2] sdhci: Add auto CMD12 support for eSDHC

Re: [PATCH 8/8] v5 Update memory-hotplug documentation

2010-08-10 Thread Nathan Fontenot
On 08/09/2010 03:44 PM, Nishanth Aravamudan wrote: On Monday, August 09, 2010 11:43:46 am Nathan Fontenot wrote: Update the memory hotplug documentation to reflect the new behaviors of memory blocks reflected in sysfs. snip Index: linux-2.6/Documentation/memory-hotplug.txt

Re: [spi-devel-general] [PATCH v2 4/6] mtd: m25p80: add a read function to read page by page

2010-08-10 Thread David Brownell
--- On Tue, 8/10/10, Grant Likely grant.lik...@secretlab.ca wrote: This one bothers me, but I can't put my finger on it. The flag feels like a controller specific hack. That's because it *IS* ... Not clear what a good fix would look like. But in general, SPI master controllers are

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-08-10 Thread Jean Delvare
On Mon, 2 Aug 2010 16:31:28 -0700, Greg KH wrote: On Wed, Jul 28, 2010 at 11:16:35PM -0700, Eric Biederman wrote: On Wed, Jul 28, 2010 at 10:09 PM, Guenter Roeck guenter.ro...@ericsson.com wrote: The following comment is found in include/linux/sysfs.h:   /* FIXME    * The *owner

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-08-10 Thread Stephen Rothwell
Hi Jean, On Tue, 10 Aug 2010 15:43:37 +0200 Jean Delvare kh...@linux-fr.org wrote: Related bug? https://bugzilla.kernel.org/show_bug.cgi?id=16544 Yep, fixed in linux-next today - hopefully the fix is on its way to Linus. -- Cheers, Stephen Rothwells...@canb.auug.org.au

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-08-10 Thread Stephen Rothwell
Hi Jean, On Wed, 11 Aug 2010 01:17:33 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: On Tue, 10 Aug 2010 15:43:37 +0200 Jean Delvare kh...@linux-fr.org wrote: Related bug? https://bugzilla.kernel.org/show_bug.cgi?id=16544 Yep, fixed in linux-next today - hopefully the fix is

Accessing GPIO registers on MPC8377ERDB board

2010-08-10 Thread Ravi Gupta
Hi, I want to access the GPIO registers present in MPC8377ERDB board. I have to write a GPIO driver for that, I am completely confused that how to do it. Please suggest some way or doc to start with. For the start-up, I was thinking of setting GPIO pins 9, 10 and 11 present on the board to

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-08-10 Thread Guenter Roeck
On Tue, 2010-08-10 at 11:20 -0400, Stephen Rothwell wrote: Hi Jean, On Wed, 11 Aug 2010 01:17:33 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: On Tue, 10 Aug 2010 15:43:37 +0200 Jean Delvare kh...@linux-fr.org wrote: Related bug?

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-08-10 Thread Darren Hart
On 07/22/2010 11:38 AM, Thomas Gleixner wrote: On Thu, 22 Jul 2010, Darren Hart wrote: Also of interest is that this path cpu_idle()-cpu_die()-pseries_mach_cpu_die() to start_secondary() enters with a preempt_count=1 if it wasn't corrupted across the hcall. That triggers the problem as well.

RE: [PATCH 1/3][MTD] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices

2010-08-10 Thread Zang Roy-R61911
-Original Message- From: Zang Roy-R61911 Sent: Friday, August 06, 2010 10:52 AM To: linux-...@lists.infradead.org Cc: linuxppc-...@ozlabs.org; a...@linux-foundation.org; Gala Kumar-B11780; Lan Chunhe-B25806 Subject: [PATCH 1/3][MTD] P4080/eLBC: Make Freescale elbc interrupt

RE: [PATCH 1/2] mmc: change ACMD12 to AUTO_CMD12 for more clear

2010-08-10 Thread Zang Roy-R61911
-Original Message- From: Zang Roy-R61911 Sent: Tuesday, August 10, 2010 17:47 PM To: a...@linux-foundation.org; linux-...@vger.kernel.org Cc: linuxppc-...@ozlabs.org; mir...@gmail.com; cbouatmai...@gmail.com; grant.lik...@secretlab.ca Subject: [PATCH 1/2] mmc: change ACMD12 to

[PATCH] powerpc: Feature nop out reservation clear when stcx checks address

2010-08-10 Thread Anton Blanchard
The POWER architecture does not require stcx to check that it is operating on the same address as the larx. This means it is possible for an an exception handler to execute a larx, get a reservation, decide not to do the stcx and then return back with an active reservation. If the interrupted