[PATCH] powerpc/85xx: DTS - re-organize the SPI partitions property

2013-09-06 Thread Mingkai Hu
0 |-| | kernel | | (5MB) | 0x70 |-| | file system | | (9MB) | 0x100 |-| Signed-off-by: Mingkai Hu --- Based on 'next' branch on git tree: git://git

[PATCH 4/4] powerpc/mpc85xx: add MPIC message dts node

2012-04-15 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- arch/powerpc/boot/dts/fsl/pq3-mpic-message-B.dtsi | 43 + arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi | 10 + 2 files changed, 53 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/boot/dts/fsl/pq3-mpic-message-B.dtsi

[PATCH 3/4] powerpc/mpic_msgr: fix offset error when setting mer register

2012-04-15 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- arch/powerpc/sysdev/mpic_msgr.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/sysdev/mpic_msgr.c b/arch/powerpc/sysdev/mpic_msgr.c index dc1cfe3..483d8fa 100644 --- a/arch/powerpc/sysdev/mpic_msgr.c +++ b/arch/powerpc/sysdev

[PATCH 2/4] powerpc/mpic_msgr: add lock for MPIC message global variable

2012-04-15 Thread Mingkai Hu
Also fix issue of accessing invalid msgr pointer issue. The local msgr pointer in fucntion mpic_msgr_get will be accessed before getting a valid address which will cause kernel crash. Signed-off-by: Mingkai Hu --- arch/powerpc/sysdev/mpic_msgr.c | 10 +- 1 files changed, 5 insertions

[PATCH 1/4] powerpc/mpic_msgr: fix compile error when SMP disabled

2012-04-15 Thread Mingkai Hu
[arch/powerpc/sysdev/mpic_msgr.o] Error 1 Signed-off-by: Mingkai Hu --- arch/powerpc/include/asm/mpic_msgr.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/mpic_msgr.h b/arch/powerpc/include/asm/mpic_msgr.h index 3ec37dc..326d33c 100644 --- a/arch

[PATCH] powerpc/85xx: Add p2040 RDB board support

2011-06-28 Thread Mingkai Hu
one x4 PCIe SLOT2 Signed-off-by: Mingkai Hu --- Based on http://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git arch/powerpc/boot/dts/p2040rdb.dts | 166 +++ arch/powerpc/boot/dts/p2040si.dtsi | 623 ++ arch/powerpc/configs

[PATCH 2/2] eSPI: fix wrong setting of the address in the command buffer

2010-12-20 Thread Mingkai Hu
Or else we cann't operate on the right address when the trans length is greater than 65535. Signed-off-by: Mingkai Hu --- drivers/spi/spi_fsl_espi.c | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/spi/spi_fsl_espi.c b/drivers/spi/spi_fsl_e

[PATCH 1/2] eSPI: change the read behavior of the SPIRF

2010-12-20 Thread Mingkai Hu
he data out, that is we can't clear the rx FIFO, then the CPU will loop on the espi rx interrupt. Signed-off-by: Mingkai Hu --- The patch 2/2 is againsted on this patch, so I resent this patch again for convience which sent several weeks ago. drivers/spi/spi_fsl_espi.c | 19

[PATCH] eSPI: change the read behavior of the SPIRF

2010-12-01 Thread Mingkai Hu
he data out, that is we can't clear the rx FIFO, then the CPU will loop on the espi rx interrupt. Signed-off-by: Mingkai Hu --- drivers/spi/spi_fsl_espi.c | 19 --- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi_fsl_espi.c b/drivers/spi/spi_

[PATCH v4 0/5] refactor spi_mpc8xxx.c and add eSPI controller support

2010-10-12 Thread Mingkai Hu
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. v4 main change: - Update to the latest kernel base(Linux 2.

[PATCH v4 5/5] mtd: m25p80: add support to parse the partitions by OF node

2010-10-12 Thread Mingkai Hu
Signed-off-by: Mingkai Hu Acked-by: Grant Likely --- v4: - Updated to latest kernel base(Linux 2.6.36-rc7). - Made changes according to Grant's comments. drivers/mtd/devices/m25p80.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/devices/m25p8

[PATCH v4 2/5] spi/mpc8xxx: refactor the common code for SPI/eSPI controller

2010-10-12 Thread Mingkai Hu
code operated the register to the driver code, not the common code. Signed-off-by: Mingkai Hu --- v4: - Updated to latest kernel base(Linux 2.6.36-rc7). drivers/spi/Kconfig |5 + drivers/spi/Makefile |1 + drivers/spi/spi_fsl_lib.c | 237 +++ drivers/spi

[PATCH v4 3/5] eSPI: add eSPI controller support

2010-10-12 Thread Mingkai Hu
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. Signed-off-by: Mingkai Hu --- v4: - Updated to latest kernel base(Linux 2.6.36-rc7). - Added support to the transaction that the l

[PATCH v4 4/5] powerpc/of: add eSPI controller dts bindings and DTS modification

2010-10-12 Thread Mingkai Hu
Also modifiy the document of cell-index in SPI controller. Add the SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board. Signed-off-by: Mingkai Hu --- v4: - Updated to latest kernel base(Linux 2.6.36-rc7). Documentation/powerpc/dts-bindings/fsl/spi.txt | 24 ++- arch

[PATCH v3 7/7] DTS: add fsl,spi-quirk-trans-len-limit property

2010-09-30 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- v3: - Add "spi-quirk-trans-len-limit" property to the board's dts. Documentation/powerpc/dts-bindings/fsl/spi.txt |3 +++ arch/powerpc/boot/dts/mpc8536ds.dts|1 + arch/powerpc/boot/dts/p4080ds.dts |1 + 3 f

[PATCH v3 3/7] eSPI: add eSPI controller support

2010-09-30 Thread Mingkai Hu
subsystem, the command and data are put into different transfers, so we need to combine all the transfers to one transfer in order to pass the transfer to eSPI controller. Signed-off-by: Mingkai Hu --- v3: - Update to the latest kernel base. drivers/spi/Kconfig|9 + drive

[PATCH v3 2/7] spi/mpc8xxx: refactor the common code for SPI/eSPI controller

2010-09-30 Thread Mingkai Hu
code operated the register to the driver code, not the common code. Signed-off-by: Mingkai Hu --- v3: - Update to the latest kernel base. - Add a void *reg_base to compatible for SPI and eSPI register base. drivers/spi/Kconfig |5 + drivers/spi/Makefile |1 + drivers/spi

[PATCH v3 6/7] mtd: m25p80: add a read function to read page by page

2010-09-30 Thread Mingkai Hu
on to read page by page. For other SPI flash driver, also needed to supply the read function if used the eSPI controller. Signed-off-by: Mingkai Hu --- v3: - Add a quirks member for the SPI master to handle the contrains of the SPI controller. I can't think of other method. :-( d

[PATCH v3 5/7] mtd: m25p80: add support to parse the SPI flash's partitions

2010-09-30 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- v3: - Move the SPI flash partition code to the probe function. drivers/mtd/devices/m25p80.c | 39 +++ 1 files changed, 27 insertions(+), 12 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c

[PATCH v3 4/7] powerpc/of: add eSPI controller dts bindings and DTS modification

2010-09-30 Thread Mingkai Hu
Also modifiy the document of cell-index in SPI controller. Add the SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board. Signed-off-by: Mingkai Hu --- v3: - Add "fsl,p4080-espi" compatible property. Documentation/powerpc/dts-bindings/fsl/spi.txt | 24 ++- arch/po

[PATCH v3 0/7] refactor spi_mpc8xxx.c and add eSPI controller support

2010-09-30 Thread Mingkai Hu
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 latest Linux

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

2010-08-02 Thread Mingkai Hu
on to read page by page. For other SPI flash driver, also needed to supply the read function if used the eSPI controller. Signed-off-by: Mingkai Hu --- v2: - Add SPI_MASTER_TRANS_LIMIT flag to indicate the master's trans length limitation, so the MTD driver can select the correc

[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 --- 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 b/drivers/mtd/devices/m25p80.c

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

2010-08-02 Thread Mingkai Hu
subsystem, the command and data are put into different transfers, so we need to combine all the transfers to one transfer in order to pass the transfer to eSPI controller. Signed-off-by: Mingkai Hu --- v2: - Rename fsl_espi.c to spi_fsl_espi.c, also the config name - Move register map

[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 --- v2: - Add cell-index clarification - Add mpc8536 chip name to the compatible value Documentation/powerpc/dts-bindings/fsl/spi.txt | 24 +++- 1 files changed, 23 insertions(+), 1

[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 --- 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 a/arch/powerpc/boot/dts

[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 6/6] DTS: add SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board

2010-07-19 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- arch/powerpc/boot/dts/mpc8536ds.dts | 52 +++ arch/powerpc/boot/dts/p4080ds.dts |9 ++ 2 files changed, 55 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc8536ds.dts b/arch/powerpc/boot/dts

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

2010-07-19 Thread Mingkai Hu
transfers in the same message are needed to combine to one transfer. Signed-off-by: Mingkai Hu --- drivers/spi/Kconfig |7 + drivers/spi/Makefile |1 + drivers/spi/fsl_espi.c| 562 + drivers/spi/spi_mpc8xxx.h | 12 + 4 fil

[PATCH 3/6] of/spi: add support to parse the SPI flash's partitions

2010-07-19 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- drivers/of/of_spi.c | 11 +++ drivers/spi/spi_mpc8xxx.c |1 + 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/of/of_spi.c b/drivers/of/of_spi.c index 5fed7e3..284ca0e 100644 --- a/drivers/of/of_spi.c +++ b/drivers/of

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

2010-07-19 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- Documentation/powerpc/dts-bindings/fsl/spi.txt | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/Documentation/powerpc/dts-bindings/fsl/spi.txt b/Documentation/powerpc/dts-bindings/fsl/spi.txt index 80510c0..b360bf9 100644

[PATCH 4/6] mtd: m25p80: change the read function to read page by page

2010-07-19 Thread Mingkai Hu
on to read page by page. For other SPI flash driver, also needed to change the read function if used the eSPI controller. Signed-off-by: Mingkai Hu --- drivers/mtd/devices/m25p80.c | 18 ++ 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/devices/m25

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

2010-07-19 Thread Mingkai Hu
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 fsl_spi.c, and add the eSPI controller support with fsl_espi.c. Tested on P4080DS and MPC8536DS board based on latest Linux tree. [PAT

[PATCH v1] Add support for getting device platform data to I2C device

2008-12-17 Thread Mingkai Hu
There is no standard way of getting device platform data from dts file to the I2C device when it's probed. This patch adds a function pointer to the of_modalias_table to get such bindings properties into device's platform data. Signed-off-by: Mingkai Hu --- Thanks to Scott Wood