Re: [PATCH 1/3][v2] net: phy: introduce 1000BASE-KX and 10GBASE-KR

2016-01-22 Thread Shaohui Xie
onnections, I cannot assume. But I know what fsl's hardware needs to support backplane. Thank you for your time and reviewing! Shaohui ____ From: Shaohui Xie Sent: Friday, January 22, 2016 6:05 PM To: Sebastian Hesselbarth; Andrew Lunn Cc: Florian Faine

Re: [PATCH 1/3][v2] net: phy: introduce 1000BASE-KX and 10GBASE-KR

2016-01-22 Thread Shaohui Xie
>> Looking at fsl_backplane_config_aneg() you expect phydev->speed to be >> set, and from the speed you then kick of either KR autoneg or KX >> autoneg. Could you also start the training at this point? Use the >> speed to indicate if training is needed? > > [S.H]The training cannot be started at

Re: [PATCH 1/3][v2] net: phy: introduce 1000BASE-KX and 10GBASE-KR

2016-01-22 Thread Shaohui Xie
___ From: Andrew Lunn Sent: Friday, January 22, 2016 5:12 AM To: Shaohui Xie Cc: Sebastian Hesselbarth; Florian Fainelli; shh@gmail.com; devicet...@vger.kernel.org; net...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; da...@davemloft.net; Shaohui Xie

RE: [PATCH 1/3][v2] net: phy: introduce 1000BASE-KX and 10GBASE-KR

2016-01-18 Thread Shaohui Xie
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Monday, January 18, 2016 11:15 PM > To: Shaohui Xie > Cc: Sebastian Hesselbarth; Florian Fainelli; shh@gmail.com; > devicet...@vger.kernel.org; net...@vger.kernel.org; linuxppc- > d...

RE: [PATCH 1/3][v2] net: phy: introduce 1000BASE-KX and 10GBASE-KR

2016-01-18 Thread Shaohui Xie
> -Original Message- > From: Sebastian Hesselbarth [mailto:sebastian.hesselba...@gmail.com] > Sent: Monday, January 18, 2016 4:06 PM > To: Shaohui Xie; Florian Fainelli; Andrew Lunn; shh@gmail.com > Cc: devicet...@vger.kernel.org; net...@vger.kernel.org

RE: [PATCH 1/3][v2] net: phy: introduce 1000BASE-KX and 10GBASE-KR

2016-01-18 Thread Shaohui Xie
> > If you look at the list of possible values for "phy-mode" you'd see > > that none of it describes a PHY-to-PHY connection but all are for > > MAC-to-PHY connections. Also, names above suggest it already: MII is > > short for media _independent_ interface. > > > > I copy Andrew's concerns and th

RE: [PATCH 2/3] [v2] powerpc: fsl: update fman dt binding for PCS PHY

2016-01-14 Thread Shaohui Xie
> > + - fsl-lane-handle: phandle, specifies a reference to a node representing > > a > Serdes. > > + - fsl-lane-reg: offset and length of the register set for the serdes > > lane. > > These should be fsl,... not fsl-... Will fix it. Thank you! Shaohui ___

RE: [PATCH 1/3][v2] net: phy: introduce 1000BASE-KX and 10GBASE-KR

2016-01-14 Thread Shaohui Xie
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Friday, January 15, 2016 12:44 AM > To: shh@gmail.com > Cc: devicet...@vger.kernel.org; net...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; f.faine...@gmail.com; da...@davemloft.net; Sha

RE: [PATCH] powerpc: fsl: update fman dt binding for PCS PHY

2015-12-30 Thread Shaohui Xie
> > [S.H] 'compatible' and 'phy-mode' are standard properties already in > > common Ethernet phy binding, I can update 'phy-mode' with > > "1000base-kx" and "10gbase-kr", how about I still list the two > > properties here for the requirement of PCS PHY to support backplane? > > Yes. The common bin

RE: [PATCH] powerpc: fsl: update fman dt binding for PCS PHY

2015-12-29 Thread Shaohui Xie
> Subject: Re: [PATCH] powerpc: fsl: update fman dt binding for PCS PHY > > On Mon, Dec 28, 2015 at 11:47:34AM +0800, shh@gmail.com wrote: > > From: Shaohui Xie > > > > PCS PHY can support backplane (1000BASE-KX and 10GBASE-KR), this needs > > to change corre

RE: [PATCH] powerpc/mpc85xx: Add pcsphy nodes to FManV3 device tree

2015-12-22 Thread Shaohui Xie
> @@ -55,6 +55,7 @@ fman@40 { > reg = <0xe 0x1000>; > fsl,fman-ports = <&fman0_rx_0x08 &fman0_tx_0x28>; > ptp-timer = <&ptp_timer0>; > + pcsphy-handle = <&pcsphy0>; > }; > > mdio@e1000 { > @@ -62,5 +63,9 @@ fman@40 { >

RE: [1/2] powerpc/config: enable teranetics PHY

2015-08-04 Thread Shaohui Xie
> On Tue, 2015-08-04 at 19:24 -0500, Scott Wood wrote: > > On Tue, 2015-08-04 at 19:18 -0500, Scott Wood wrote: > > > On Fri, Jul 24, 2015 at 11:45:33AM +0800, shaohui xie wrote: > > > > From: Shaohui Xie > > > > > > > > The PHY uses

RE: [1/2] powerpc/config: enable teranetics PHY

2015-08-04 Thread Shaohui Xie
d wrote: > > > On Tue, 2015-08-04 at 19:18 -0500, Scott Wood wrote: > > > > On Fri, Jul 24, 2015 at 11:45:33AM +0800, shaohui xie wrote: > > > > > From: Shaohui Xie > > > > > > > > > > The PHY uses XAUI interface to connect to MAC

RE: [1/2] powerpc/config: enable teranetics PHY

2015-08-04 Thread Shaohui Xie
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, August 05, 2015 8:19 AM > To: shaohui xie > Cc: linuxppc-dev@lists.ozlabs.org; Xie Shaohui-B21989 > Subject: Re: [1/2] powerpc/config: enable teranetics PHY > > On Fri, Jul 24, 2015 at 11:45:33AM

RE: [PATCH][v4] power/fsl: add MDIO dt binding for FMan

2015-01-29 Thread Shaohui Xie
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, January 30, 2015 10:44 AM > To: Xie Shaohui-B21989 > Cc: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Medve > Emilian-EMMEDVE1 > Subject: Re: [PATCH][v4] power/fsl: add MDIO dt binding for FMan > > On Thu, 2015-01

RE: [PATCH][v4] power/fsl: add MDIO dt binding for FMan

2015-01-29 Thread Shaohui Xie
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, January 30, 2015 8:54 AM > To: shh@gmail.com > Cc: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Medve > Emilian-EMMEDVE1; Xie Shaohui-B21989 > Subject: Re: [PATCH][v4] power/fsl: add MDIO dt binding for FMan >

RE: [PATCH] [v3] power/fsl: add MDIO dt binding for FMan

2015-01-07 Thread Shaohui Xie
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, January 08, 2015 9:13 AM > To: Medve Emilian-EMMEDVE1 > Cc: Xie Shaohui-B21989; linuxppc-dev@lists.ozlabs.org; > devicet...@vger.kernel.org > Subject: Re: [PATCH] [v3] power/fsl: add MDIO dt binding for FMan > > On Wed, 2015-

RE: [PATCH] [v3] power/fsl: add MDIO dt binding for FMan

2015-01-06 Thread Shaohui Xie
dve Emilian-EMMEDVE1; Xie Shaohui-B21989 > > > Subject: [PATCH] [v3] power/fsl: add MDIO dt binding for FMan > > > > > > From: Shaohui Xie > > > > > > This binding is for FMan MDIO, it covers FMan v2 & FMan v3. > > > > > > Sign

RE: [PATCH] [v3] power/fsl: add MDIO dt binding for FMan

2015-01-05 Thread Shaohui Xie
Hello Scott, Is this v3 OK? Best Regards, Shaohui Xie > -Original Message- > From: shh@gmail.com [mailto:shh@gmail.com] > Sent: Tuesday, December 23, 2014 3:58 PM > To: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Wood > Scott-B07421 > Cc: Medv

RE: [PATCH 2/2] powerpc/config: enable mdio buses muxing via Memory-mapped device

2015-01-05 Thread Shaohui Xie
uary 02, 2015 4:43 PM > >> To: shh@gmail.com; linuxppc-dev@lists.ozlabs.org; Wood > >> Scott-B07421 > >> Cc: Andy Fleming; Xie Shaohui-B21989; Kanetkar Shruti-B44454 > >> Subject: Re: [PATCH 2/2] powerpc/config: enable mdio buses muxing via > >> Memor

RE: [PATCH 2/2] powerpc/config: enable mdio buses muxing via Memory-mapped device

2015-01-03 Thread Shaohui Xie
c. if we can use the existing compatible "simple-bus", Then we will only need to enable MDIO mux option in config without adding compatible in corenet_generic.c. Best Regards, Shaohui Xie > -Original Message- > From: Emil Medve [mailto:emilian.me...@freescale.com] >

RE: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan

2014-12-23 Thread Shaohui Xie
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, December 23, 2014 4:08 PM > To: Xie Shaohui-B21989 > Cc: Medve Emilian-EMMEDVE1; linuxppc-dev@lists.ozlabs.org; > devicet...@vger.kernel.org; Liberman Igal-B31950 > Subject: Re: [PATCH] [v2] power/fsl: add MDIO dt binding for F

RE: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan

2014-12-22 Thread Shaohui Xie
Best Regards, Shaohui Xie > -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, December 23, 2014 5:26 AM > To: Medve Emilian-EMMEDVE1 > Cc: Xie Shaohui-B21989; linuxppc-dev@lists.ozlabs.org; > devicet...@vger.kernel.org; Liberman Igal-B31950 > Sub

RE: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan

2014-12-22 Thread Shaohui Xie
>>>> Medve > > >>>> Emilian- EMMEDVE1; Liberman Igal-B31950 > > >>>> Subject: Re: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan > > >>>> > > >>>> On Thu, 2014-12-18 at 06:53 -0600, Xie Shaohui-B21989 wrote: >

RE: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan

2014-12-21 Thread Shaohui Xie
devicet...@vger.kernel.org; Medve > > > Emilian- EMMEDVE1; Liberman Igal-B31950 > > > Subject: Re: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan > > > > > > On Thu, 2014-12-18 at 06:53 -0600, Xie Shaohui-B21989 wrote: > > > > Ping. > > > >

RE: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan

2014-12-18 Thread Shaohui Xie
d MDIO dt binding for FMan > > On Thu, 2014-12-18 at 06:53 -0600, Xie Shaohui-B21989 wrote: > > Ping. > > > > Best Regards, > > Shaohui Xie > > I can't put patches in my -next until the merge window closes. > > > > > > +EXAMPLE > > &

RE: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan

2014-12-18 Thread Shaohui Xie
Ping. Best Regards, Shaohui Xie > -Original Message- > From: Xie Shaohui-B21989 > Sent: Wednesday, November 26, 2014 10:11 AM > To: Wood Scott-B07421 > Cc: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Medve Emilian- > EMMEDVE1; Liberman Igal-B31950 >

RE: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan

2014-11-25 Thread Shaohui Xie
] [v2] power/fsl: add MDIO dt binding for FMan > > On Fri, 2014-11-14 at 17:53 +0800, shh@gmail.com wrote: > > From: Shaohui Xie > > > > This binding is for FMan MDIO, it covers FMan v2 & FMan v3. > > > > Signed-off-by: Shaohui Xie >

RE: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan

2014-11-20 Thread Shaohui Xie
Ping. Best Regards, Shaohui Xie > -Original Message- > From: shh@gmail.com [mailto:shh@gmail.com] > Sent: Friday, November 14, 2014 5:53 PM > To: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Wood > Scott-B07421 > Cc: Medve Emilian-EMMEDVE1; Li

RE: [PATCH] DT: add MDIO node for FMan node

2014-11-13 Thread Shaohui Xie
Best Regards, Shaohui Xie > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, November 13, 2014 4:04 PM > To: Xie Shaohui-B21989 > Cc: Liberman Igal-B31950; linuxppc-dev@lists.ozlabs.org; > devicet...@vger.kernel.org; Medve Emilian-EMMEDVE1 > Subject

RE: [PATCH] DT: add MDIO node for FMan node

2014-11-13 Thread Shaohui Xie
Best Regards, Shaohui Xie > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, November 13, 2014 3:15 PM > To: Xie Shaohui-B21989 > Cc: Liberman Igal-B31950; linuxppc-dev@lists.ozlabs.org; > devicet...@vger.kernel.org; Medve Emilian-EMMEDVE1 > Subject

RE: [PATCH] DT: add MDIO node for FMan node

2014-11-12 Thread Shaohui Xie
-EMMEDVE1; Xie Shaohui-B21989 > > > > > Subject: Re: [PATCH] DT: add MDIO node for FMan node > > > > > > > > > > On Tue, 2014-11-04 at 19:56 +0800, shh@gmail.com wrote: > > > > > > From: Shaohui Xie > > > > > > >

RE: [PATCH] DT: add MDIO node for FMan node

2014-11-12 Thread Shaohui Xie
zlabs.org; devicet...@vger.kernel.org; Medve > > > Emilian-EMMEDVE1; Xie Shaohui-B21989 > > > Subject: Re: [PATCH] DT: add MDIO node for FMan node > > > > > > On Tue, 2014-11-04 at 19:56 +0800, shh@gmail.com wrote: > > > > From: Shaohui Xie

RE: [PATCH] DT: add MDIO node for FMan node

2014-11-11 Thread Shaohui Xie
FMan node > > On Tue, 2014-11-04 at 19:56 +0800, shh@gmail.com wrote: > > From: Shaohui Xie > > > > This binding is for FMan MDIO, it covers FMan v2 & FMan v3. > > > > Signed-off-by: Shaohui Xie > > --- > > based on http://patchwork.ozlabs.o

RE: [PATCH] DT: add MDIO node for FMan node

2014-11-10 Thread Shaohui Xie
Ping. Best Regards, Shaohui Xie > -Original Message- > From: shh@gmail.com [mailto:shh@gmail.com] > Sent: Tuesday, November 04, 2014 7:57 PM > To: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Wood > Scott-B07421 > Cc: Medve Emilian-EMMEDVE1;

RE: [PATCH v2 5/7] powerpc/corenet: Add MDIO bus muxing support to the board device tree(s)

2014-08-13 Thread Shaohui Xie
> -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+b21989=freescale@lists.ozlabs.org] On Behalf Of Scott Wood > Sent: Friday, August 01, 2014 2:31 AM > To: Medve Emilian-EMMEDVE1 > Cc: linuxppc-...@ozlabs.org > Subject: Re: [PATCH v2 5/7] powerpc/corenet: Add MDIO

RE: [PATCH v2 1/7] dt: Introduce the FMan 10 Gb/s MDIO binding

2014-07-24 Thread Shaohui Xie
controllers, if we need to distinguish the controllers, what could be the proper way? Perhaps a new property is needed in dts? Please comment! Thanks! Best Regards, Shaohui Xie > -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+b21989=freescale@lists.ozlab

RE: [PATCH 2/4] phylib: Add generic 10G driver

2013-11-13 Thread Shaohui Xie
Hello, Florian, Thank you for reviewing the patches! Please see my comments inline. Best Regards, Shaohui Xie > -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Wednesday, November 13, 2013 1:54 AM > To: shh@gmail.com > Cc: linuxppc

RE: [PATCH 1/4] phylib: Add Clause 45 read/write functions

2013-11-12 Thread Shaohui Xie
rote: > > > > From: Andy Fleming > > > > > > > > You need an extra parameter to read or write Clause 45 PHYs, so we > > > > need a different API with the extra parameter. > > > > > > > > Signed-off-by: Andy Fleming > > &g

RE: [PATCH 1/4] phylib: Add Clause 45 read/write functions

2013-11-12 Thread Shaohui Xie
ter. > > > > Signed-off-by: Andy Fleming > > Signed-off-by: Shaohui Xie > > Why did you remove Andy's e-mail address? Even though it's no longer valid, > it > helps identify which specific person you're talking about. > [S.H] Andy's e-mail

RE: [PATCH 3/4] phylib: Support attaching to gen10g_driver

2013-11-12 Thread Shaohui Xie
Added more people and list. Best Regards, Shaohui Xie > -Original Message- > From: shh@gmail.com [mailto:shh@gmail.com] > Sent: Monday, November 11, 2013 7:08 PM > To: linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org > Cc: Bucur Madalin-Cristian-B

RE: [PATCH 4/4] phylib: Add of_phy_attach

2013-11-12 Thread Shaohui Xie
Added more people and list. Best Regards, Shaohui Xie > -Original Message- > From: shh@gmail.com [mailto:shh@gmail.com] > Sent: Monday, November 11, 2013 7:08 PM > To: linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org > Cc: Bucur Madalin-Cristian-B

RE: [PATCH 2/4] phylib: Add generic 10G driver

2013-11-12 Thread Shaohui Xie
Added more people and list. Best Regards, Shaohui Xie > -Original Message- > From: shh@gmail.com [mailto:shh@gmail.com] > Sent: Monday, November 11, 2013 7:07 PM > To: linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org > Cc: Bucur Madalin-Cristian-B

RE: [PATCH 1/4] phylib: Add Clause 45 read/write functions

2013-11-12 Thread Shaohui Xie
Added more people and list. Best Regards, Shaohui Xie > -Original Message- > From: shh@gmail.com [mailto:shh@gmail.com] > Sent: Monday, November 11, 2013 7:04 PM > To: linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org > Cc: Bucur Madalin-Cristian-B

[PATCH] powerpc/corenet/config: add missing SCSI configs for corenet64_smp_defconfig

2013-09-06 Thread Shaohui Xie
Otherwise there will be no SCSI device nodes. Signed-off-by: Shaohui Xie --- arch/powerpc/configs/corenet64_smp_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/configs/corenet64_smp_defconfig b/arch/powerpc/configs/corenet64_smp_defconfig index 6c8b020

[PATCH] powerpc/corenet/config: add missing SCSI configs for corenet64_smp_defconfig

2013-04-16 Thread Shaohui Xie
Otherwise there will be no SCSI device nodes. Signed-off-by: Shaohui Xie --- resend due to patch work did not capture this patch. arch/powerpc/configs/corenet64_smp_defconfig |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/configs

[PATCH] powerpc/corenet/config: add missing SCSI configs for corenet64_smp_defconfig

2013-04-16 Thread Shaohui Xie
Otherwise there will be no SCSI device nodes. Signed-off-by: Shaohui Xie --- arch/powerpc/configs/corenet64_smp_defconfig |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/configs/corenet64_smp_defconfig b/arch/powerpc/configs/corenet64_smp_defconfig

[PATCH] powerpc/p1023/config: enable hugetlbfs support

2013-01-28 Thread Shaohui Xie
Hugetlbfs is missed in current p1023rds_defconfig, enable it by default. Signed-off-by: Shaohui Xie --- arch/powerpc/configs/85xx/p1023rds_defconfig |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/configs/85xx/p1023rds_defconfig b/arch/powerpc/configs

[PATCH] edac/85xx: fix error handle of mpc85xx_mc_err_probe

2012-09-13 Thread Shaohui Xie
Error handle in case of DDR ECC off is wrong, sysfs entries have not been created, so edac_mc_free which frees a mci instance should not be called. Also, free mci's memory in this case. Signed-off-by: Shaohui Xie --- drivers/edac/edac_core.h|1 + drivers/edac/edac_mc.c |

[PATCH] powerpc/p5040: fix dtb build warning of p5040ds.dtb

2012-09-12 Thread Shaohui Xie
B, P3041DS, P4080DS, P5020DS, P5040DS Signed-off-by: Shaohui Xie --- based on next branch of http://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git arch/powerpc/boot/dts/p5040ds.dts |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/boot/dts/p

[PATCH][v4] sata_fsl: add workaround for data length mismatch on freescale V2 controller

2012-09-10 Thread Shaohui Xie
nding bit set. In this condition, we need to clear errors in following way: in the service routine, based on 'DLM' flag, HCONTROL[27] operation clears Hstatus, CE and DE registers, clear Serror register. Signed-off-by: Shaohui Xie Signed-off-by: Anju Bhartiya --- changes for v4: 1. p

[PATCH][v3] sata_fsl: add workaround for data length mismatch on freescale V2 controller

2012-09-07 Thread Shaohui Xie
nding bit set. In this condition, we need to clear errors in following way: in the service routine, based on 'DLM' flag, HCONTROL[27] operation clears Hstatus, CE and DE registers, clear Serror register. Signed-off-by: Shaohui Xie Signed-off-by: Anju Bhartiya --- changes for v3: 1. not usin

[PATCH] [v2] sata_fsl: add workaround for data length mismatch on freescale V2 controller

2012-09-05 Thread Shaohui Xie
nding bit set. In this condition, we need to clear errors in following way: in the service routine, based on 'DLM' flag, HCONTROL[27] operation clears Hstatus, CE and DE registers, clear Serror register. Signed-off-by: Shaohui Xie Signed-off-by: Anju Bhartiya --- changes for V2: 1.

[PATCH] sata_fsl: add workaround for data length mismatch on freescale V2 controller

2012-09-04 Thread Shaohui Xie
nding bit set. In this condition, we need to clear errors in following way: in the service routine, based on 'DLM' flag, HCONTROL[27] operation clears Hstatus, CE and DE registers, clear Serror register. Signed-off-by: Shaohui Xie Signed-off-by: Anju Bhartiya --- drivers/ata/sata_fsl.c |

[PATCH][v2] powerpc/mm: using two zones for freescale 64 bit kernel

2012-08-24 Thread Shaohui Xie
_GFP_DMA32 and set __GFP_DMA32 only if the device's dma_mask < total memory size. By doing this, devices which cannot DMA all the memory will be limited to ZONE_DMA32, but devices which can DMA all the memory will not be affected by this limitation. Signed-off-by: Shaohui Xie Signed-off-

[PATCH] powerpc/mm: add ZONE_NORMAL zone for 64 bit kernel

2012-07-20 Thread Shaohui Xie
it only if the device's dma_mask < total memory size. By doing this, devices which cannot DMA all the memory will be limited to ZONE_DMA, but devices which can DMA all the memory will not be affected by this limitation. Signed-off-by: Shaohui Xie Signed-off-by: Mingkai Hu Signed-off

[PATCH] powerpc/p3041: change espi input-clock from 40MHz to 35MHz

2012-07-17 Thread Shaohui Xie
Default CCB on P3041 is 750MHz, but espi cannot work at 40MHz with this CCB, so we need to slow down the clock rate of espi to 35MHz to make it work stable with the CCB. Signed-off-by: Shaohui Xie --- arch/powerpc/boot/dts/p3041ds.dts |2 +- 1 files changed, 1 insertions(+), 1 deletions

[PATCH][v2] powerpc/watchdog: move booke watchdog param related code to setup-common.c

2012-07-11 Thread Shaohui Xie
Currently, BOOKE watchdog code for checking "wdt" and "wdt_period" is in setup_32.c, it cannot be used in 64-bit, so move it to a common place setup-common.c, which will be shared by 32-bit and 64-bit. Also, replace the simple_strtoul with kstrtol. Signed-off-by: Shaohui Xie

[PATCH] powerpc/p2041rdb: add NAND node in device tree

2012-06-29 Thread Shaohui Xie
NAND on p2041 uses CS1 as chip select. Signed-off-by: Shaohui Xie --- arch/powerpc/boot/dts/p2041rdb.dts | 41 +++- 1 files changed, 40 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/boot/dts/p2041rdb.dts b/arch/powerpc/boot/dts/p2041rdb.dts index

[PATCH 2/2][v2] powerpc/watchdog: replace CONFIG_FSL_BOOKE with CONFIG_PPC_FSL_BOOK3E

2012-05-10 Thread Shaohui Xie
CONFIG_FSL_BOOKE is only defined in 32-bit, CONFIG_PPC_FSL_BOOK3E is defined in both 32-bit and 64-bit, so use CONFIG_PPC_FSL_BOOK3E to make driver work in 32-bit & 64-bit. Signed-off-by: Shaohui Xie --- changes for v2: use PPC_FSL_BOOK3E instead of FSL_SOC_BOOKE. drivers/watchdog/Kco

[PATCH 2/2] powerpc/watchdog: replace CONFIG_FSL_BOOKE with CONFIG_FSL_SOC_BOOKE

2012-05-07 Thread Shaohui Xie
CONFIG_FSL_BOOKE is only defined in 32-bit, CONFIG_FSL_SOC_BOOKE is defined in both 32-bit and 64-bit, so use CONFIG_FSL_SOC_BOOKE to make diver work in 32-bit & 64-bit. Signed-off-by: Shaohui Xie --- drivers/watchdog/Kconfig |8 drivers/watchdog/booke_wdt.c |4 ++-

[PATCH 1/2] powerpc/watchdog: move booke watchdog param related code to prom.c

2012-05-07 Thread Shaohui Xie
Currently, BOOKE watchdog code for checking "wdt" and "wdt_period" is in setup_32.c, it cannot be used in 64-bit, so move it to a common place prom.c, which will be shared by 32-bit and 64-bit. Also, replace the simple_strtoul with kstrtol. Signed-off-by: Shaohui Xie ---

[PATCH][v2] mmc:sdhci: restore the enabled dma when do reset all

2011-12-29 Thread Shaohui Xie
re it after reset all. Signed-off-by: Shaohui Xie --- based on http://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc.git, branch 'for-linus'. changes for v2: call the wrapper API instead of access the register directly. drivers/mmc/host/sdhci.c |5 + 1 files changed, 5 i

[PATCH] mmc:sdhci: restore the enabled dma when do reset all

2011-12-28 Thread Shaohui Xie
re it after reset all. Signed-off-by: Shaohui Xie --- based on http://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc.git, branch 'for-linus'. drivers/mmc/host/sdhci.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/m

[PATCH][v2] powerpc/usb: fix type cast for address of ioremap to compatible with 64-bit

2011-11-07 Thread Shaohui Xie
will cause call trace, so use (void *) for both 32-bit and 64-bit. Signed-off-by: Shaohui Xie --- changes for v2: 1. use (void *) instead of unsigned long and the double cast according to Timur's comment. drivers/usb/gadget/fsl_udc_core.c |3 +-- 1 files changed, 1 insertions(+), 2 del

[PATCH] powerpc/usb: use unsigned long to type cast an address of ioremap

2011-11-03 Thread Shaohui Xie
will cause call trace, so use unsigned long for both 32-bit and 64-bit. Signed-off-by: Shaohui Xie --- drivers/usb/gadget/fsl_udc_core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index c81fba

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

2011-11-02 Thread Shaohui Xie
00 793c0020 e93f0010 7c0004ac 0c00 4c00012c 6204 ---[ end trace d152129396f60c53 ]--- Signed-off-by: Shaohui Xie --- drivers/usb/gadget/fsl_udc_core.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/

[PATCH] mtd: m25p80: don't probe device which has status of 'disabled'

2011-10-14 Thread Shaohui Xie
On some platforms such as P3060QDS, has multiple spi flashes, but they are not available at same time, so if their status is 'disabled', which is set by u-boot, will not be probed. Signed-off-by: Shaohui Xie --- Disabled nodes should automatically not be probed. But I found this is onl

[PATCH] mtd: m25p80: add EON flash EN25Q32B into spi flash id table

2011-09-30 Thread Shaohui Xie
Add support for EON spi flash EN25Q32B, which is not listed in id table, need to add it in the id table to support the EON flash. Signed-off-by: Shaohui Xie Signed-off-by: Kumar Gala --- drivers/mtd/devices/m25p80.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a

[PATCH] powerpc/85xx: fix memory controller compatible for edac

2011-07-25 Thread Shaohui Xie
compatible in dts has been changed, so driver need to update accordingly. Signed-off-by: Shaohui Xie --- apply for http://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git 'next' branch. drivers/edac/mpc85xx_edac.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[PATCH 4/4] edac/85xx: PCI/PCIE error interrupt edac support.

2011-07-21 Thread Shaohui Xie
. This patch can handle both of them. Due to the error management register offset and definition difference between pci and pcie, use ccsr_pci structure to merge pci and pcie edac code into one. Signed-off-by: Kai.Jiang Signed-off-by: Kumar Gala Signed-off-by: Shaohui Xie --- drivers/edac

[PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers

2011-07-21 Thread Shaohui Xie
From: Kai.Jiang There are some differences of register offset and definition between pci and pcie error management registers. While, some other pci/pcie error management registers are nearly the same. Signed-off-by: Kai.Jiang Signed-off-by: Kumar Gala Signed-off-by: Shaohui Xie --- arch

[PATCH 2/4] powerpc/85xx: enable pcie initialization for P4080

2011-07-21 Thread Shaohui Xie
Signed-off-by: Shaohui Xie --- arch/powerpc/platforms/85xx/corenet_ds.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms/85xx/corenet_ds.c b/arch/powerpc/platforms/85xx/corenet_ds.c index 2ab338c..15247b0 100644 --- a/arch/powerpc/platforms/85xx

[PATCH 1/4] powerpc/85xx: fix interrupt number of memory-controller for P4080

2011-07-21 Thread Shaohui Xie
Signed-off-by: Shaohui Xie --- arch/powerpc/boot/dts/p4080ds.dts |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot/dts/p4080ds.dts b/arch/powerpc/boot/dts/p4080ds.dts index 927f94d..9c37a85 100644 --- a/arch/powerpc/boot/dts/p4080ds.dts +++ b/arch

[PATCH] Correct offset_in_page mask bits in function edac_mc_handle_ce.

2011-07-13 Thread Shaohui Xie
From: Kai.Jiang Parameter offset_in_page in function edac_mc_handle_ce should be masked the higher bits above the page size, not the lower bits. The original input sometimes causes crash. Signed-off-by: Kai.Jiang --- drivers/edac/mpc85xx_edac.c |4 ++-- 1 files changed, 2 insertions(+), 2

[PATCH] powerpc/85xx: fix NAND_CMD_READID read bytes number

2011-06-12 Thread Shaohui Xie
.localbus: read_byte beyond end of buffer Signed-off-by: Shaohui Xie Acked-by: Scott Wood --- drivers/mtd/nand/fsl_elbc_nand.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c index 0bb254c..33d8aad 100644

[PATCH] powerpc/85xx: fix race bug of calling request_irq after enable elbc interrupts

2011-06-02 Thread Shaohui Xie
Signed-off-by: Shaohui Xie Signed-off-by: Kumar Gala --- arch/powerpc/sysdev/fsl_lbc.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_lbc.c b/arch/powerpc/sysdev/fsl_lbc.c index e0292c3..9e7cb19 100644 --- a/arch/powerpc/sysdev/fsl_lbc.c

[PATCH 2/2][v3] rapidio, powerpc/85xx: Error interrupt handler for sRIO.

2010-11-17 Thread Shaohui Xie
port2 for now, still the handler takes care of port2. Currently the handler only clear error status without any recovery. Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- updated to 37-rc2 arch/powerpc/sysdev/fsl_rio.c | 85

[PATCH 1/2][v4] fsl_rio: move machine_check handler into machine_check_e500 & machine_check_e500mc

2010-11-17 Thread Shaohui Xie
Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- arch/powerpc/include/asm/rio.h |5 + arch/powerpc/kernel/traps.c| 13 + arch/powerpc/sysdev/fsl_rio.c | 15 +++ 3 files changed, 21 insertions(+), 12

[PATCH][v3] fsl_rio: move machine_check handler into machine_check_e500 & machine_check_e500mc

2010-11-12 Thread Shaohui Xie
Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- arch/powerpc/include/asm/rio.h |5 + arch/powerpc/kernel/traps.c| 17 - arch/powerpc/sysdev/fsl_rio.c | 15 +++ 3 files changed, 24 insertions(+), 13

[PATCH 4/4][v2] rapidio, powerpc/85xx: Error interrupt handler for sRIO.

2010-11-03 Thread Shaohui Xie
port2 for now, still the handler takes care of port2. Currently the handler only clear error status without any recovery. Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- arch/powerpc/sysdev/fsl_rio.c | 86

[PATCH 3/4][v2] fsl_rio: move machine_check handler into machine_check_e500 & machine_check_e500mc

2010-11-03 Thread Shaohui Xie
Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- arch/powerpc/kernel/traps.c | 14 +- arch/powerpc/sysdev/fsl_rio.c | 15 +++ include/linux/rio.h |1 + 3 files changed, 17 insertions(+), 13 deletions

[PATCH 2/4][v2] fsl_rio: fix non-standard HID1 register access

2010-11-03 Thread Shaohui Xie
Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- arch/powerpc/kernel/cpu_setup_fsl_booke.S |6 ++ arch/powerpc/sysdev/fsl_rio.c |2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH 1/4][v2] powerpc: add e500 HID1 bit definition

2010-11-03 Thread Shaohui Xie
From: Li Yang Also make 74xx HID1 definition conditional. Signed-off-by: Li Yang Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- These patches have been send for almost one week, and has no feedback. arch/powerpc/include/asm/reg.h

[PATCH 4/4][v2] rapidio, powerpc/85xx: Error interrupt handler for sRIO.

2010-10-29 Thread Shaohui Xie
port2 for now, still the handler takes care of port2. Currently the handler only clear error status without any recovery. Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- arch/powerpc/sysdev/fsl_rio.c | 86

[PATCH 1/4][v2] powerpc: add e500 HID1 bit definition

2010-10-29 Thread Shaohui Xie
From: Li Yang Also make 74xx HID1 definition conditional. Signed-off-by: Li Yang Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- arch/powerpc/include/asm/reg.h |2 ++ arch/powerpc/include/asm/reg_booke.h | 14 ++ 2

[PATCH 3/4][v2] fsl_rio: move machine_check handler into machine_check_e500 & machine_check_e500mc

2010-10-29 Thread Shaohui Xie
Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- arch/powerpc/kernel/traps.c | 14 +- arch/powerpc/sysdev/fsl_rio.c | 15 +++ include/linux/rio.h |1 + 3 files changed, 17 insertions(+), 13 deletions

[PATCH 2/4][v2] fsl_rio: fix non-standard HID1 register access

2010-10-29 Thread Shaohui Xie
Signed-off-by: Shaohui Xie Cc: Li Yang Cc: Kumar Gala Cc: Roy Zang Cc: Alexandre Bounine --- arch/powerpc/kernel/cpu_setup_fsl_booke.S |6 ++ arch/powerpc/sysdev/fsl_rio.c |2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH 3/3] rapidio, powerpc/85xx: Error interrupt handler for sRIO.

2010-10-13 Thread Shaohui Xie
port2 for now, still the handler takes care of port2. Currently the handler only clear error status without any recovery. Signed-off-by: Shaohui Xie --- arch/powerpc/sysdev/fsl_rio.c | 81 ++--- 1 files changed, 76 insertions(+), 5 deletions(-) diff --git a

[PATCH 1/3] fsl_rio: Add comments for sRIO registers.

2010-10-13 Thread Shaohui Xie
Add some comments to make sRIO registers map better readable. Signed-off-by: Shaohui Xie --- arch/powerpc/sysdev/fsl_rio.c | 65 + 1 files changed, 40 insertions(+), 25 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev

[PATCH 2/3] fsl_rio: fix non-standard HID1 register access

2010-10-13 Thread Shaohui Xie
From: Li Yang The access to HID1 register is only legitimate for e500 v1/v2 cores. Also fixes magic number. Signed-off-by: Li Yang Signed-off-by: Shaohui Xie --- arch/powerpc/sysdev/fsl_rio.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev