Re: [PATCH 0/2] serial: 8250_dw: add fractional divisor support

2018-07-02 Thread Jisheng Zhang
On Tue, 3 Jul 2018 10:22:57 +0800 Jisheng Zhang wrote: > Hi, > > On Mon, 2 Jul 2018 14:51:03 +0300 Andy Shevchenko wrote: > > > On Mon, 2018-07-02 at 13:18 +0300, Andy Shevchenko wrote: > > > On Mon, 2018-07-02 at 18:04 +0800, Jisheng Zhang wrote: > > >

Re: [PATCH 0/2] serial: 8250_dw: add fractional divisor support

2018-07-02 Thread Jisheng Zhang
Hi, On Mon, 2 Jul 2018 14:51:03 +0300 Andy Shevchenko wrote: > On Mon, 2018-07-02 at 13:18 +0300, Andy Shevchenko wrote: > > On Mon, 2018-07-02 at 18:04 +0800, Jisheng Zhang wrote: > > > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > > >

Re: [PATCH 0/2] serial: 8250_dw: add fractional divisor support

2018-07-02 Thread Jisheng Zhang
Hi, On Mon, 2 Jul 2018 14:51:03 +0300 Andy Shevchenko wrote: > On Mon, 2018-07-02 at 13:18 +0300, Andy Shevchenko wrote: > > On Mon, 2018-07-02 at 18:04 +0800, Jisheng Zhang wrote: > > > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > > >

[PATCH 2/2] serial: 8250_dw: add fractional divisor support

2018-07-02 Thread Jisheng Zhang
ion >= 4.00a, then calculates the fractional divisor width, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 54 +++ 1 file changed, 54 insertions(+) diff --git a/drivers/tty/seria

[PATCH 2/2] serial: 8250_dw: add fractional divisor support

2018-07-02 Thread Jisheng Zhang
ion >= 4.00a, then calculates the fractional divisor width, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 54 +++ 1 file changed, 54 insertions(+) diff --git a/drivers/tty/seria

[PATCH 1/2] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-02 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. Add get_divisor() and set_divisor() hook to prepare supporting this feature in next commit. Signed-off-by: Jisheng Zhang --- drivers/

[PATCH 1/2] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-02 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. Add get_divisor() and set_divisor() hook to prepare supporting this feature in next commit. Signed-off-by: Jisheng Zhang --- drivers/

[PATCH 0/2] serial: 8250_dw: add fractional divisor support

2018-07-02 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. patch1 introduces necessary hooks to 8250 core. patch2 implement the fractional divisor support for Synopsys DW 8250. Jisheng Zhang

[PATCH 0/2] serial: 8250_dw: add fractional divisor support

2018-07-02 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. patch1 introduces necessary hooks to 8250 core. patch2 implement the fractional divisor support for Synopsys DW 8250. Jisheng Zhang

[PATCH] mmc: sdhci-*: Don't emit error msg if sdhci_add_host() fails

2018-05-25 Thread Jisheng Zhang
. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/mmc/host/sdhci-bcm-kona.c | 4 +--- drivers/mmc/host/sdhci-pic32.c| 4 +--- drivers/mmc/host/sdhci-pxav2.c| 4 +--- drivers/mmc/host/sdhci-pxav3.c| 4 +--- drivers/mmc/host/sdhci-s3c.c | 4 +--- drivers/mm

[PATCH] mmc: sdhci-*: Don't emit error msg if sdhci_add_host() fails

2018-05-25 Thread Jisheng Zhang
. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-bcm-kona.c | 4 +--- drivers/mmc/host/sdhci-pic32.c| 4 +--- drivers/mmc/host/sdhci-pxav2.c| 4 +--- drivers/mmc/host/sdhci-pxav3.c| 4 +--- drivers/mmc/host/sdhci-s3c.c | 4 +--- drivers/mmc/host/sdhci-spear.c| 4

[PATCH] arm64: dts: move berlin SoC files from marvell dir to synaptics dir

2018-05-16 Thread Jisheng Zhang
Move device tree files as part of transition from Marvell berlin to Synaptics berlin. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/marvell/Makefile | 4

[PATCH] arm64: dts: move berlin SoC files from marvell dir to synaptics dir

2018-05-16 Thread Jisheng Zhang
Move device tree files as part of transition from Marvell berlin to Synaptics berlin. Signed-off-by: Jisheng Zhang --- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/marvell/Makefile | 4 arch/arm64/boot/dts/synaptics

[PATCH] ARM: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous boilerplate license text. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm/mach-berlin/berlin.c | 5 + arch/arm/mach-berlin/headsmp.S | 5 + arch/arm/mach-berlin/platsmp.c | 5 + 3 files c

[PATCH] ARM: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous boilerplate license text. Signed-off-by: Jisheng Zhang --- arch/arm/mach-berlin/berlin.c | 5 + arch/arm/mach-berlin/headsmp.S | 5 + arch/arm/mach-berlin/platsmp.c | 5 + 3 files changed, 3 insertions(+), 12

[PATCH] clk: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/clk/berlin/berlin2-avpll.c | 13 + drivers/clk/berlin/berlin2-avpll.h | 13 + drivers/clk/berlin/berlin2-div.c

[PATCH] clk: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang --- drivers/clk/berlin/berlin2-avpll.c | 13 + drivers/clk/berlin/berlin2-avpll.h | 13 + drivers/clk/berlin/berlin2-div.c | 13 + drivers/clk

[PATCH] phy: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/phy/marvell/phy-berlin-sata.c | 5 + drivers/phy/marvell/phy-berlin-usb.c | 5 + 2 files changed, 2 insertions(+), 8 deletions(-)

[PATCH] phy: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang --- drivers/phy/marvell/phy-berlin-sata.c | 5 + drivers/phy/marvell/phy-berlin-usb.c | 5 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/phy/marvell

[PATCH] irqchip: dw-apb-ictl: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/irqchip/irq-dw-apb-ictl.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-dw-apb-ictl.c b/d

[PATCH] irqchip: dw-apb-ictl: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier and drop the previous license text. Signed-off-by: Jisheng Zhang --- drivers/irqchip/irq-dw-apb-ictl.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-dw-apb-ictl.c b/drivers/irqchip/irq-dw-apb-ictl.c index

[PATCH] pinctrl: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier in the berlin pinctrl driver source file and drop the previous license text. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/pinctrl/berlin/berlin-bg2.c | 5 + drivers/pinctrl/berlin/berlin-bg2cd.c | 5 + d

[PATCH] pinctrl: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier in the berlin pinctrl driver source file and drop the previous license text. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/berlin-bg2.c | 5 + drivers/pinctrl/berlin/berlin-bg2cd.c | 5 + drivers/pinctrl/berlin/berlin-bg2q.c

[PATCH] ARM: dts: berlin2q: move PMU node from soc to root

2018-05-15 Thread Jisheng Zhang
Fix "make dtbs W=1" warns about missing reg or ranges property. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm/boot/dts/berlin2q.dtsi | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/berlin2q

[PATCH] ARM: dts: berlin2q: move PMU node from soc to root

2018-05-15 Thread Jisheng Zhang
Fix "make dtbs W=1" warns about missing reg or ranges property. Signed-off-by: Jisheng Zhang --- arch/arm/boot/dts/berlin2q.dtsi | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.

[PATCH 2/2] ARM: dts: berlin*-dts: use SPDX-License-Identifier for berlin based board

2018-05-15 Thread Jisheng Zhang
. [1] https://spdx.org/licenses/X11.html [2] https://spdx.org/licenses/MIT.html Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm/boot/dts/berlin2-sony-nsz-gs7.dts| 33 +-- .../boot/dts/berlin2cd-google-chromecast.dts | 33 +-- arch/ar

[PATCH 2/2] ARM: dts: berlin*-dts: use SPDX-License-Identifier for berlin based board

2018-05-15 Thread Jisheng Zhang
. [1] https://spdx.org/licenses/X11.html [2] https://spdx.org/licenses/MIT.html Signed-off-by: Jisheng Zhang --- arch/arm/boot/dts/berlin2-sony-nsz-gs7.dts| 33 +-- .../boot/dts/berlin2cd-google-chromecast.dts | 33 +-- arch/arm/boot/dts/berlin2q-marvell-dmp.dts

[PATCH 1/2] ARM: dts: berlin*.dtsi: use SPDX-License-Identifier for berlin SoCs

2018-05-15 Thread Jisheng Zhang
. [1] https://spdx.org/licenses/X11.html [2] https://spdx.org/licenses/MIT.html Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm/boot/dts/berlin2.dtsi | 33 +--- arch/arm/boot/dts/berlin2cd.dtsi | 33 +--- arch/ar

[PATCH 1/2] ARM: dts: berlin*.dtsi: use SPDX-License-Identifier for berlin SoCs

2018-05-15 Thread Jisheng Zhang
. [1] https://spdx.org/licenses/X11.html [2] https://spdx.org/licenses/MIT.html Signed-off-by: Jisheng Zhang --- arch/arm/boot/dts/berlin2.dtsi | 33 +--- arch/arm/boot/dts/berlin2cd.dtsi | 33 +--- arch/arm/boot/dts/berlin2q.dtsi | 33

[PATCH 2/2] arm64: dts: berlin4ct-*.dts: use SPDX-License-Identifier

2018-05-15 Thread Jisheng Zhang
. [1] https://spdx.org/licenses/X11.html [2] https://spdx.org/licenses/MIT.html Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts | 39 +-- arch/arm64/boot/dts/marvell/berlin4ct-stb.dts | 39 +-- 2

[PATCH 2/2] arm64: dts: berlin4ct-*.dts: use SPDX-License-Identifier

2018-05-15 Thread Jisheng Zhang
. [1] https://spdx.org/licenses/X11.html [2] https://spdx.org/licenses/MIT.html Signed-off-by: Jisheng Zhang --- arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts | 39 +-- arch/arm64/boot/dts/marvell/berlin4ct-stb.dts | 39 +-- 2 files changed, 2 insertions(+), 76

[PATCH 1/2] arm64: dts: berlin4ct: use SPDX-License-Identifier

2018-05-15 Thread Jisheng Zhang
. [1] https://spdx.org/licenses/X11.html [2] https://spdx.org/licenses/MIT.html Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 39 +- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/arch/arm64/bo

[PATCH 1/2] arm64: dts: berlin4ct: use SPDX-License-Identifier

2018-05-15 Thread Jisheng Zhang
. [1] https://spdx.org/licenses/X11.html [2] https://spdx.org/licenses/MIT.html Signed-off-by: Jisheng Zhang --- arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 39 +- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi b/arch

[PATCH] ARM: dts: berlin2q: fix irq type for arm twd timer

2018-05-15 Thread Jisheng Zhang
fix below warning about PPI interrupts configuration: "GIC: PPI13 is secure or misconfigured" Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm/boot/dts/berlin2q.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/berl

[PATCH] ARM: dts: berlin2q: fix irq type for arm twd timer

2018-05-15 Thread Jisheng Zhang
fix below warning about PPI interrupts configuration: "GIC: PPI13 is secure or misconfigured" Signed-off-by: Jisheng Zhang --- arch/arm/boot/dts/berlin2q.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/ber

[PATCH] ARM: dts: berlin2: fix irq type for arm twd timer

2018-05-15 Thread Jisheng Zhang
fix below warning about PPI interrupts configuration: "GIC: PPI13 is secure or misconfigured" Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm/boot/dts/berlin2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ber

[PATCH] ARM: dts: berlin2: fix irq type for arm twd timer

2018-05-15 Thread Jisheng Zhang
fix below warning about PPI interrupts configuration: "GIC: PPI13 is secure or misconfigured" Signed-off-by: Jisheng Zhang --- arch/arm/boot/dts/berlin2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/berlin2.dtsi b/arch/arm/boot/dts/berlin2.

[PATCH] ARM: dts: berlin2q: add "cache-unified" to l2 node

2018-05-15 Thread Jisheng Zhang
Without this property, we get this boot warning: "L2C: device tree omits to specify unified cache" Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm/boot/dts/berlin2q.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/berlin2q.dtsi

[PATCH] ARM: dts: berlin2q: add "cache-unified" to l2 node

2018-05-15 Thread Jisheng Zhang
Without this property, we get this boot warning: "L2C: device tree omits to specify unified cache" Signed-off-by: Jisheng Zhang --- arch/arm/boot/dts/berlin2q.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.

Re: [PATCH] ARM: dts: chromecast: override bad bootloader memory info

2018-05-14 Thread Jisheng Zhang
Hi, On Mon, 14 May 2018 17:56:45 -0400 Thomas Hebb wrote: > On the Chromecast, the bootloader provides us with an ATAG_MEM of > start=0x0100 and size=0x3eff8000. This is clearly incorrect, as the > range given encompasses nearly a GiB but the Chromecast only has 512MiB > of RAM!

Re: [PATCH] ARM: dts: chromecast: override bad bootloader memory info

2018-05-14 Thread Jisheng Zhang
Hi, On Mon, 14 May 2018 17:56:45 -0400 Thomas Hebb wrote: > On the Chromecast, the bootloader provides us with an ATAG_MEM of > start=0x0100 and size=0x3eff8000. This is clearly incorrect, as the > range given encompasses nearly a GiB but the Chromecast only has 512MiB > of RAM!

[PATCH] arm: berlin: remove non-necessary flush_cache_all()

2018-05-07 Thread Jisheng Zhang
I believe the flush_cache_all() after scu_enable() is to "Ensure that the data accessed by CPU0 before the SCU was initialised is visible to the other CPUs." as commented in scu_enable(). So flush_cache_all() here is a duplication of the one in scu_enable(), remove it. Signed-off-b

[PATCH] arm: berlin: remove non-necessary flush_cache_all()

2018-05-07 Thread Jisheng Zhang
I believe the flush_cache_all() after scu_enable() is to "Ensure that the data accessed by CPU0 before the SCU was initialised is visible to the other CPUs." as commented in scu_enable(). So flush_cache_all() here is a duplication of the one in scu_enable(), remove it. Signed-off-b

[PATCH] arm: oxnas: remove non-necessary flush_cache_all()

2018-05-07 Thread Jisheng Zhang
I believe the flush_cache_all() after scu_enable() is to "Ensure that the data accessed by CPU0 before the SCU was initialised is visible to the other CPUs." as commented in scu_enable(). So flush_cache_all() here is a duplication of the one in scu_enable(), remove it. Signed-off-b

[PATCH] arm: oxnas: remove non-necessary flush_cache_all()

2018-05-07 Thread Jisheng Zhang
I believe the flush_cache_all() after scu_enable() is to "Ensure that the data accessed by CPU0 before the SCU was initialised is visible to the other CPUs." as commented in scu_enable(). So flush_cache_all() here is a duplication of the one in scu_enable(), remove it. Signed-off-b

[PATCH] ARM: dts: berlin2q: add interrupt-affinity to pmu node

2018-04-27 Thread Jisheng Zhang
Add interrupt-affinity property to fix below warning: [0.429642] CPU PMU: Failed to parse /soc/pmu/interrupt-affinity[0] Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- arch/arm/boot/dts/berlin2q.dtsi | 12 1 file changed, 8 insertions(+), 4 deletions(-)

[PATCH] ARM: dts: berlin2q: add interrupt-affinity to pmu node

2018-04-27 Thread Jisheng Zhang
Add interrupt-affinity property to fix below warning: [0.429642] CPU PMU: Failed to parse /soc/pmu/interrupt-affinity[0] Signed-off-by: Jisheng Zhang --- arch/arm/boot/dts/berlin2q.dtsi | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH] drivers: net: replace UINT64_MAX with U64_MAX

2018-04-27 Thread Jisheng Zhang
. Replace the UINT64_MAX with U64_MAX to clean up the source code. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/net/dsa/mv88e6xxx/chip.c | 6 +++--- drivers/net/dsa/mv88e6xxx/chip.h | 4 drivers/net/phy/bcm-phy-lib.c| 6 +- drivers/net/phy/marvell.c

[PATCH] drivers: net: replace UINT64_MAX with U64_MAX

2018-04-27 Thread Jisheng Zhang
. Replace the UINT64_MAX with U64_MAX to clean up the source code. Signed-off-by: Jisheng Zhang --- drivers/net/dsa/mv88e6xxx/chip.c | 6 +++--- drivers/net/dsa/mv88e6xxx/chip.h | 4 drivers/net/phy/bcm-phy-lib.c| 6 +- drivers/net/phy/marvell.c| 5 + drivers/net/phy/micrel.c

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-27 Thread Jisheng Zhang
On Thu, 26 Apr 2018 12:39:59 +0530 Bhadram Varka wrote: > > > > diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c > > index c22e8e383247..b6abe1cbc84b 100644 > > --- a/drivers/net/phy/marvell.c > > +++ b/drivers/net/phy/marvell.c > > @@ -115,6 +115,9 @@ >

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-27 Thread Jisheng Zhang
On Thu, 26 Apr 2018 12:39:59 +0530 Bhadram Varka wrote: > > > > diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c > > index c22e8e383247..b6abe1cbc84b 100644 > > --- a/drivers/net/phy/marvell.c > > +++ b/drivers/net/phy/marvell.c > > @@ -115,6 +115,9 @@ >

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-27 Thread Jisheng Zhang
On Fri, 27 Apr 2018 09:22:34 +0530 Bhadram Varka wrote: > Hi Andrew/Jisheng, > > On 4/26/2018 6:10 PM, Andrew Lunn wrote: > >> hmm, so you want a "stick" WOL feature, I dunno whether Linux kernel > >> requires WOL should be "stick". > > I see two different cases: > > > > Suspend/resume: The

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-27 Thread Jisheng Zhang
On Fri, 27 Apr 2018 09:22:34 +0530 Bhadram Varka wrote: > Hi Andrew/Jisheng, > > On 4/26/2018 6:10 PM, Andrew Lunn wrote: > >> hmm, so you want a "stick" WOL feature, I dunno whether Linux kernel > >> requires WOL should be "stick". > > I see two different cases: > > > > Suspend/resume: The

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-26 Thread Jisheng Zhang
On Thu, 26 Apr 2018 11:56:33 +0530 Bhadram Varka wrote: > Hi, > On 4/26/2018 11:45 AM, Jisheng Zhang wrote: > > Hi, > > > > On Thu, 26 Apr 2018 11:10:21 +0530 Bhadram Varka wrote: > > > >> Hi, > >> > >> On 4/19/2018 5:48 PM, Andrew Lun

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-26 Thread Jisheng Zhang
On Thu, 26 Apr 2018 11:56:33 +0530 Bhadram Varka wrote: > Hi, > On 4/26/2018 11:45 AM, Jisheng Zhang wrote: > > Hi, > > > > On Thu, 26 Apr 2018 11:10:21 +0530 Bhadram Varka wrote: > > > >> Hi, > >> > >> On 4/19/2018 5:48 PM, Andrew Lun

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-26 Thread Jisheng Zhang
Hi, On Thu, 26 Apr 2018 11:10:21 +0530 Bhadram Varka wrote: > Hi, > > On 4/19/2018 5:48 PM, Andrew Lunn wrote: > > On Thu, Apr 19, 2018 at 04:02:32PM +0800, Jisheng Zhang wrote: > >> From: Jingju Hou <jingju@synaptics.com> > >> > >> If W

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-26 Thread Jisheng Zhang
Hi, On Thu, 26 Apr 2018 11:10:21 +0530 Bhadram Varka wrote: > Hi, > > On 4/19/2018 5:48 PM, Andrew Lunn wrote: > > On Thu, Apr 19, 2018 at 04:02:32PM +0800, Jisheng Zhang wrote: > >> From: Jingju Hou > >> > >> If WOL event happened once, the LED

Re: [PATCH resend] usb: chipidea: Don't select EXTCON

2018-04-23 Thread Jisheng Zhang
On Fri, 20 Apr 2018 09:35:54 + Peter Chen wrote: > > > > > > > Sorry to reply late, are you really care 2KB code side? Since many > > > users use EXTCON to handle vbus and id, it is hard just delete it. I > > > could accept patch for your specific platforms, like: > > > > > > + select

Re: [PATCH resend] usb: chipidea: Don't select EXTCON

2018-04-23 Thread Jisheng Zhang
On Fri, 20 Apr 2018 09:35:54 + Peter Chen wrote: > > > > > > > Sorry to reply late, are you really care 2KB code side? Since many > > > users use EXTCON to handle vbus and id, it is hard just delete it. I > > > could accept patch for your specific platforms, like: > > > > > > + select

[PATCH v2] net: phy: marvell: clear wol event before setting it

2018-04-23 Thread Jisheng Zhang
abling it if !phy_interrupt_is_valid(). Signed-off-by: Jingju Hou <jingju@synaptics.com> Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- Since v1: - reuse MII_M1011_IEVENT, suggested by Bhadram Varka - make read conditional on !phy_interrupt_is_valid(), suggested by Andrew drivers

[PATCH v2] net: phy: marvell: clear wol event before setting it

2018-04-23 Thread Jisheng Zhang
-by: Jingju Hou Signed-off-by: Jisheng Zhang --- Since v1: - reuse MII_M1011_IEVENT, suggested by Bhadram Varka - make read conditional on !phy_interrupt_is_valid(), suggested by Andrew drivers/net/phy/marvell.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/phy

Re: [PATCH resend] usb: chipidea: Don't select EXTCON

2018-04-20 Thread Jisheng Zhang
Hi Peter On Fri, 20 Apr 2018 01:38:42 + Peter Chen wrote: > > > drivers/usb/chipidea/Kconfig | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig > > index > > 785f0ed037f7..97509172d536 100644 > > ---

Re: [PATCH resend] usb: chipidea: Don't select EXTCON

2018-04-20 Thread Jisheng Zhang
Hi Peter On Fri, 20 Apr 2018 01:38:42 + Peter Chen wrote: > > > drivers/usb/chipidea/Kconfig | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig > > index > > 785f0ed037f7..97509172d536 100644 > > ---

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-19 Thread Jisheng Zhang
On Thu, 19 Apr 2018 09:00:40 + Bhadram Varka wrote: > Hi, > > > -Original Message- > > From: Jisheng Zhang <jisheng.zh...@synaptics.com> > > Sent: Thursday, April 19, 2018 2:24 PM > > To: Bhadram Varka <vbhad...@nvidia.com> > > Cc

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-19 Thread Jisheng Zhang
On Thu, 19 Apr 2018 09:00:40 + Bhadram Varka wrote: > Hi, > > > -Original Message- > > From: Jisheng Zhang > > Sent: Thursday, April 19, 2018 2:24 PM > > To: Bhadram Varka > > Cc: Andrew Lunn ; Florian Fainelli ; > > David S. Mille

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-19 Thread Jisheng Zhang
Hi, On Thu, 19 Apr 2018 08:38:45 + Bhadram Varka wrote: > Hi, > > > -Original Message- > > From: netdev-ow...@vger.kernel.org <netdev-ow...@vger.kernel.org> On > > Behalf Of Jisheng Zhang > > Sent: Thursday, April 19, 2018 1:33 PM > >

Re: [PATCH] net: phy: marvell: clear wol event before setting it

2018-04-19 Thread Jisheng Zhang
Hi, On Thu, 19 Apr 2018 08:38:45 + Bhadram Varka wrote: > Hi, > > > -Original Message- > > From: netdev-ow...@vger.kernel.org On > > Behalf Of Jisheng Zhang > > Sent: Thursday, April 19, 2018 1:33 PM > > To: Andrew Lunn ; Florian Fainell

Re: [PATCH] MAINTAINERS: update entry for entry for ARM/berlin

2018-04-19 Thread Jisheng Zhang
Hi Gregory, On Thu, 29 Mar 2018 13:46:36 +0200 Gregory CLEMENT wrote: > Hi Jisheng, > > On jeu., mars 29 2018, Jisheng Zhang <jisheng.zh...@synaptics.com> wrote: > > > Change the entry name and move it to its alphabetical location. > > We move to ARM/Sy

Re: [PATCH] MAINTAINERS: update entry for entry for ARM/berlin

2018-04-19 Thread Jisheng Zhang
Hi Gregory, On Thu, 29 Mar 2018 13:46:36 +0200 Gregory CLEMENT wrote: > Hi Jisheng, > > On jeu., mars 29 2018, Jisheng Zhang wrote: > > > Change the entry name and move it to its alphabetical location. > > We move to ARM/Synaptics instead of ARM/Marvell. > >

[PATCH] net: phy: marvell: clear wol event before setting it

2018-04-19 Thread Jisheng Zhang
From: Jingju Hou <jingju@synaptics.com> If WOL event happened once, the LED[2] interrupt pin will not be cleared unless reading the CSISR register. So clear the WOL event before enabling it. Signed-off-by: Jingju Hou <jingju@synaptics.com> Signed-off-by: Jisheng Zhang

[PATCH] net: phy: marvell: clear wol event before setting it

2018-04-19 Thread Jisheng Zhang
From: Jingju Hou If WOL event happened once, the LED[2] interrupt pin will not be cleared unless reading the CSISR register. So clear the WOL event before enabling it. Signed-off-by: Jingju Hou Signed-off-by: Jisheng Zhang --- drivers/net/phy/marvell.c | 9 + 1 file changed, 9

[PATCH resend] usb: chipidea: Don't select EXTCON

2018-04-19 Thread Jisheng Zhang
Not all chipidea users need EXTCON, so it's better to avoid unconditionally select EXTCON, this could save us 2KB kernel Image size. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/usb/chipidea/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/ch

[PATCH resend] usb: chipidea: Don't select EXTCON

2018-04-19 Thread Jisheng Zhang
Not all chipidea users need EXTCON, so it's better to avoid unconditionally select EXTCON, this could save us 2KB kernel Image size. Signed-off-by: Jisheng Zhang --- drivers/usb/chipidea/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb

[PATCH v3 2/2] net: mvneta: improve suspend/resume

2018-04-01 Thread Jisheng Zhang
to fragmented dma coherent memory. After this patch, the non-necessary memory alloc/free is optimized out. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/net/ethernet/marvell/mvneta.c | 69 +++ 1 file changed, 62 insertions(+), 7 del

[PATCH v3 2/2] net: mvneta: improve suspend/resume

2018-04-01 Thread Jisheng Zhang
to fragmented dma coherent memory. After this patch, the non-necessary memory alloc/free is optimized out. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 69 +++ 1 file changed, 62 insertions(+), 7 deletions(-) diff --git a/drivers/net

[PATCH v3 1/2] net: mvneta: split rxq/txq init and txq deinit into SW and HW parts

2018-04-01 Thread Jisheng Zhang
-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/net/ethernet/marvell/mvneta.c | 85 +++ 1 file changed, 66 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 30aab9bf77cc..f96815

[PATCH v3 1/2] net: mvneta: split rxq/txq init and txq deinit into SW and HW parts

2018-04-01 Thread Jisheng Zhang
-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 85 +++ 1 file changed, 66 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 30aab9bf77cc..f96815853108 100644 --- a/drivers/net

[PATCH v3 0/2] net: mvneta: improve suspend/resume

2018-04-01 Thread Jisheng Zhang
behavior - split txq deinit into sw/hw parts as well - adjust mvneta_stop_dev() location I didn't add Thomas's Ack tag to patch1, because in v2, I add new code to split the txq deinit into two parts. Jisheng Zhang (2): net: mvneta: split rxq/txq init and txq deinit into SW and HW parts net

[PATCH v3 0/2] net: mvneta: improve suspend/resume

2018-04-01 Thread Jisheng Zhang
behavior - split txq deinit into sw/hw parts as well - adjust mvneta_stop_dev() location I didn't add Thomas's Ack tag to patch1, because in v2, I add new code to split the txq deinit into two parts. Jisheng Zhang (2): net: mvneta: split rxq/txq init and txq deinit into SW and HW parts net

Re: [PATCH v2] MAINTAINERS: update entry for ARM/berlin

2018-04-01 Thread Jisheng Zhang
On Fri, 30 Mar 2018 15:59:32 +0200 Andrew Lunn wrote: > On Fri, Mar 30, 2018 at 11:02:11AM +0800, Jisheng Zhang wrote: > > Synaptics has acquired the Multimedia Solutions Business of Marvell[1]. > > So change the berlin entry name and move it to its alphabetical > > loc

Re: [PATCH v2] MAINTAINERS: update entry for ARM/berlin

2018-04-01 Thread Jisheng Zhang
On Fri, 30 Mar 2018 15:59:32 +0200 Andrew Lunn wrote: > On Fri, Mar 30, 2018 at 11:02:11AM +0800, Jisheng Zhang wrote: > > Synaptics has acquired the Multimedia Solutions Business of Marvell[1]. > > So change the berlin entry name and move it to its alphabetical > > loc

[PATCH v2 2/2] net: mvneta: improve suspend/resume

2018-03-30 Thread Jisheng Zhang
to fragmented dma coherent memory. After this patch, the non-necessary memory alloc/free is optimized out. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/net/ethernet/marvell/mvneta.c | 71 ++- 1 file changed, 61 insertions(+), 10 del

[PATCH v2 2/2] net: mvneta: improve suspend/resume

2018-03-30 Thread Jisheng Zhang
to fragmented dma coherent memory. After this patch, the non-necessary memory alloc/free is optimized out. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 71 ++- 1 file changed, 61 insertions(+), 10 deletions(-) diff --git a/drivers/net

[PATCH v2 1/2] net: mvneta: split rxq/txq init and txq deinit into SW and HW parts

2018-03-30 Thread Jisheng Zhang
-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/net/ethernet/marvell/mvneta.c | 85 +++ 1 file changed, 66 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 30aab9bf77cc..f96815

[PATCH v2 1/2] net: mvneta: split rxq/txq init and txq deinit into SW and HW parts

2018-03-30 Thread Jisheng Zhang
-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 85 +++ 1 file changed, 66 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 30aab9bf77cc..f96815853108 100644 --- a/drivers/net

[PATCH v2 0/2] net: mvneta: improve suspend/resume

2018-03-30 Thread Jisheng Zhang
to patch1, because in v2, I added new code to split the txq deinit into two parts. Jisheng Zhang (2): net: mvneta: split rxq/txq init and txq deinit into SW and HW parts net: mvneta: improve suspend/resume drivers/net/ethernet/marvell/mvneta.c | 156 +++--- 1 file

[PATCH v2 0/2] net: mvneta: improve suspend/resume

2018-03-30 Thread Jisheng Zhang
to patch1, because in v2, I added new code to split the txq deinit into two parts. Jisheng Zhang (2): net: mvneta: split rxq/txq init and txq deinit into SW and HW parts net: mvneta: improve suspend/resume drivers/net/ethernet/marvell/mvneta.c | 156 +++--- 1 file

Re: [PATCH 2/2] net: mvneta: improve suspend/resume

2018-03-30 Thread Jisheng Zhang
On Thu, 29 Mar 2018 13:54:32 +0200 Thomas Petazzoni wrote: > Hello Jisheng, Hi Thomas, > > On Thu, 29 Mar 2018 18:15:36 +0800, Jisheng Zhang wrote: > > Current suspend/resume implementation reuses the mvneta_open() and > > mvneta_close(), but it could be optimized t

Re: [PATCH 2/2] net: mvneta: improve suspend/resume

2018-03-30 Thread Jisheng Zhang
On Thu, 29 Mar 2018 13:54:32 +0200 Thomas Petazzoni wrote: > Hello Jisheng, Hi Thomas, > > On Thu, 29 Mar 2018 18:15:36 +0800, Jisheng Zhang wrote: > > Current suspend/resume implementation reuses the mvneta_open() and > > mvneta_close(), but it could be optimized t

Re: [PATCH 1/2] net: mvneta: split rxq/txq init into SW and HW parts

2018-03-30 Thread Jisheng Zhang
Hi, On Thu, 29 Mar 2018 13:42:59 +0200 Thomas Petazzoni wrote: > Hello, > > On Thu, 29 Mar 2018 18:13:56 +0800, Jisheng Zhang wrote: > > This is to prepare the suspend/resume improvement in next patch. The > > SW parts can be optimized out during resume. > > >

Re: [PATCH 1/2] net: mvneta: split rxq/txq init into SW and HW parts

2018-03-30 Thread Jisheng Zhang
Hi, On Thu, 29 Mar 2018 13:42:59 +0200 Thomas Petazzoni wrote: > Hello, > > On Thu, 29 Mar 2018 18:13:56 +0800, Jisheng Zhang wrote: > > This is to prepare the suspend/resume improvement in next patch. The > > SW parts can be optimized out during resume. > > >

Re: [PATCH] MAINTAINERS: update entry for entry for ARM/berlin

2018-03-29 Thread Jisheng Zhang
Hi, On Thu, 29 Mar 2018 15:08:04 +0200 Andrew Lunn wrote: > On Thu, Mar 29, 2018 at 04:42:40PM +0800, Jisheng Zhang wrote: > > > > Change the entry name and move it to its alphabetical location. > > We move to ARM/Synaptics instead of ARM/Marvell. > > Hi Jishen

Re: [PATCH] MAINTAINERS: update entry for entry for ARM/berlin

2018-03-29 Thread Jisheng Zhang
Hi, On Thu, 29 Mar 2018 15:08:04 +0200 Andrew Lunn wrote: > On Thu, Mar 29, 2018 at 04:42:40PM +0800, Jisheng Zhang wrote: > > > > Change the entry name and move it to its alphabetical location. > > We move to ARM/Synaptics instead of ARM/Marvell. > > Hi Jishen

[PATCH v2] MAINTAINERS: update entry for ARM/berlin

2018-03-29 Thread Jisheng Zhang
/company/news/conexant-marvell Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- Since v1: - add some comments about this change. Thank Andrew. MAINTAINERS | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 6e950b

[PATCH v2] MAINTAINERS: update entry for ARM/berlin

2018-03-29 Thread Jisheng Zhang
/company/news/conexant-marvell Signed-off-by: Jisheng Zhang --- Since v1: - add some comments about this change. Thank Andrew. MAINTAINERS | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 6e950b8b4a41..0a0da6a8e607 100644

[PATCH 2/2] net: mvneta: improve suspend/resume

2018-03-29 Thread Jisheng Zhang
to fragmented dma coherent memory. After this patch, the non-necessary memory alloc/free is optimized out. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/net/ethernet/marvell/mvneta.c | 76 ++- 1 file changed, 66 insertions(+), 10 del

[PATCH 2/2] net: mvneta: improve suspend/resume

2018-03-29 Thread Jisheng Zhang
to fragmented dma coherent memory. After this patch, the non-necessary memory alloc/free is optimized out. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 76 ++- 1 file changed, 66 insertions(+), 10 deletions(-) diff --git a/drivers/net

[PATCH 1/2] net: mvneta: split rxq/txq init into SW and HW parts

2018-03-29 Thread Jisheng Zhang
This is to prepare the suspend/resume improvement in next patch. The SW parts can be optimized out during resume. Signed-off-by: Jisheng Zhang <jisheng.zh...@synaptics.com> --- drivers/net/ethernet/marvell/mvneta.c | 70 ++- 1 file changed, 53 insertions(

[PATCH 1/2] net: mvneta: split rxq/txq init into SW and HW parts

2018-03-29 Thread Jisheng Zhang
This is to prepare the suspend/resume improvement in next patch. The SW parts can be optimized out during resume. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 70 ++- 1 file changed, 53 insertions(+), 17 deletions(-) diff --git

[PATCH 0/2] net: mvneta: improve suspend/resume

2018-03-29 Thread Jisheng Zhang
This series tries to optimize the mvneta's suspend/resume implementation by only taking necessary actions. Jisheng Zhang (2): net: mvneta: split rxq/txq init into SW and HW parts net: mvneta: improve suspend/resume drivers/net/ethernet/marvell/mvneta.c | 146

<    2   3   4   5   6   7   8   9   10   11   >