[PATCH] stmmac: dwmac-ipq806x: fix static checker warning

2015-08-04 Thread Mathieu Olivari
ce as an offset, and once as a mask, which is a bug indeed. We'll fix it by defining the offset as the real offset value and computing the mask from it when required. Tested on IPQ806x ref designs AP148 & DB149. Reported-by: Dan Carpenter Signed-off-by: Mathieu Olivari --- drivers/net

Re: [PATCH 0/7] net: dsa: add QCA AR8xxx switch family support\

2015-05-29 Thread Mathieu Olivari
On Fri, May 29, 2015 at 12:58:12PM -0700, Florian Fainelli wrote: > On 29/05/15 11:59, Andrew Lunn wrote: > > On Fri, May 29, 2015 at 11:49:54AM -0700, Mathieu Olivari wrote: > >> On Fri, May 29, 2015 at 04:00:01AM +0200, Andrew Lunn wrote: > >>> FYI: > >>&g

Re: [PATCH 0/7] net: dsa: add QCA AR8xxx switch family support\

2015-05-29 Thread Mathieu Olivari
On Fri, May 29, 2015 at 04:00:01AM +0200, Andrew Lunn wrote: > FYI: > > I have patches which allow DSA to use two cpu interfaces. Seems to > work on my DIR665 with a Marvell Switch. > > I will post the patches as an RFC. > > Andrew Does it require the switch CPU ports to support LAG or is it

RE: [PATCH 3/7] net: dsa: ar8xxx: add regmap support

2015-05-29 Thread Mathieu Olivari
: Andrew Lunn [mailto:and...@lunn.ch] Sent: Thursday, May 28, 2015 7:44 PM To: Florian Fainelli Cc: Mathieu Olivari; robh...@kernel.org; pawel.m...@arm.com; mark.rutl...@arm.com; ijc+devicet...@hellion.org.uk; ga...@codeaurora.org; da...@davemloft.net; li...@roeck-us.net; gang.chen.5...@gmail.com; j

[PATCH 6/7] net: dsa: ar8xxx: add support for second xMII interfaces through DT

2015-05-28 Thread Mathieu Olivari
This patch is adding support for port6 specific options to device tree. They can be used to setup the second xMII interface, and connect it to one of the switch port. Signed-off-by: Mathieu Olivari --- drivers/net/dsa/ar8xxx.c | 50 1 file

[PATCH 2/7] net: dsa: ar8xxx: add ethtool hw statistics support

2015-05-28 Thread Mathieu Olivari
MIB counters can now be reported through each switch port by using "ethtool -S". Signed-off-by: Mathieu Olivari --- drivers/net/dsa/ar8xxx.c | 106 +++ drivers/net/dsa/ar8xxx.h | 47 + 2 files changed, 146 insert

[PATCH 3/7] net: dsa: ar8xxx: add regmap support

2015-05-28 Thread Mathieu Olivari
All switch registers can now be dumped using regmap/debugfs. \# cat /sys/kernel/debug/regmap//registers : 1302 0004: ... ... Signed-off-by: Mathieu Olivari --- drivers/net/dsa/Kconfig | 1 + drivers/net/dsa/ar8xxx.c | 60 drivers/net

[PATCH 1/7] net: dsa: add new driver for ar8xxx family

2015-05-28 Thread Mathieu Olivari
n IP@ on ethN interface. Ports cannot communicate with each other just yet. Link status will be reported through polling, and we don't use any encapsulation. Signed-off-by: Mathieu Olivari --- drivers/net/dsa/Kconfig | 7 ++ drivers/net/dsa/Makefile | 1 + drivers/net/dsa/ar8xx

[PATCH 7/7] Documentation: devicetree: add ar8xxx binding

2015-05-28 Thread Mathieu Olivari
Add device-tree binding for ar8xxx switch families. Signed-off-by: Mathieu Olivari --- .../devicetree/bindings/net/dsa/qca-ar8xxx.txt | 70 ++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dsa/qca-ar8xxx.txt diff --git a

[PATCH 5/7] net: dsa: ar8xxx: enable QCA header support on AR8xxx

2015-05-28 Thread Mathieu Olivari
-by: Mathieu Olivari --- drivers/net/dsa/Kconfig | 1 + drivers/net/dsa/ar8xxx.c | 28 ++-- drivers/net/dsa/ar8xxx.h | 22 ++ 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig index 17fb296

[PATCH 4/7] net: dsa: add QCA tag support

2015-05-28 Thread Mathieu Olivari
QCA tags are used on QCA ar8xxx switch family. This change adds support for encap/decap using 2 bytes header mode. Signed-off-by: Mathieu Olivari --- include/net/dsa.h | 1 + net/dsa/Kconfig| 3 + net/dsa/Makefile | 1 + net/dsa/dsa.c | 5 ++ net/dsa/dsa_priv.h | 2 + net

[PATCH 0/7] net: dsa: add QCA AR8xxx switch family support

2015-05-28 Thread Mathieu Olivari
: 1 PHY + 1 DSA switch. The configuration of this split is done using driver specific options in device-tree. The exact properties are detailed in the Documentation patch below. Mathieu Olivari (7): net: dsa: add new driver for ar8xxx family net: dsa: ar8xxx: add ethtool hw statistics support

[PATCH V2 1/5] clk: qcom: Add support for NSS/GMAC clocks and resets

2015-05-27 Thread Mathieu Olivari
From: Stephen Boyd Add the NSS/GMAC clocks and the TCM clock and NSS resets. Signed-off-by: Stephen Boyd Signed-off-by: Mathieu Olivari --- drivers/clk/qcom/gcc-ipq806x.c | 594 ++- include/dt-bindings/clock/qcom,gcc-ipq806x.h | 2 + include/dt

[PATCH V2 2/5] stmmac: add phy-handle support to the platform layer

2015-05-27 Thread Mathieu Olivari
the phy-handle property, as specified in Documentation/devicetree/bindings/net/ethernet.txt. Signed-off-by: Mathieu Olivari --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 28 ++ .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 6 - include

[PATCH V2 0/5] Add support for QCA IPQ806x Ethernet GMAC controller

2015-05-27 Thread Mathieu Olivari
: *Fix MODULE_LICENSE to "Dual BSD/GPL" as the dwmac-ipq806x.c is using ISC license. Mathieu Olivari (4): stmmac: add phy-handle support to the platform layer stmmac: add fixed-link device-tree support stmmac: add ipq806x glue layer net: stmmac: ipq806x: document device tre

[PATCH V2 3/5] stmmac: add fixed-link device-tree support

2015-05-27 Thread Mathieu Olivari
In case DT is used, this change adds the ability to the stmmac driver to detect a fixed-link PHY, instanciate it, and use it during phy_connect(). Fixed link PHYs DT usage is described in: Documentation/devicetree/bindings/net/fixed-link.txt Signed-off-by: Mathieu Olivari --- drivers/net

[PATCH V2 4/5] stmmac: add ipq806x glue layer

2015-05-27 Thread Mathieu Olivari
The ethernet controller available in IPQ806x is a Synopsys DesignWare Gigabit MAC IP core, already supported by the stmmac driver. This glue layer implements some platform specific settings required to get the controller working on an IPQ806x based platform. Signed-off-by: Mathieu Olivari

[PATCH V2 5/5] net: stmmac: ipq806x: document device tree bindings

2015-05-27 Thread Mathieu Olivari
Add the device tree bindings documentation for the QCA IPQ806x variant of the Synopsys DesignWare MAC. Signed-off-by: Mathieu Olivari --- .../devicetree/bindings/net/ipq806x-dwmac.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree

RE: [PATCH 4/5] stmmac: add ipq806x glue layer

2015-05-27 Thread Mathieu Olivari
Sent: Wednesday, May 27, 2015 12:04 AM To: Mathieu Olivari Cc: robh...@kernel.org; pawel.m...@arm.com; mark.rutl...@arm.com; ijc+devicet...@hellion.org.uk; ga...@codeaurora.org; mturque...@linaro.org; sb...@codeaurora.org; peppe.cavall...@st.com; agr...@codeaurora.org; jo...@codeaurora.org; arch...

[PATCH 0/5] Add support for QCA IPQ806x Ethernet GMAC controller

2015-05-26 Thread Mathieu Olivari
. Mathieu Olivari (4): stmmac: add phy-handle support to the platform layer stmmac: add fixed-link device-tree support stmmac: add ipq806x glue layer net: stmmac: ipq806x: document device tree bindings Stephen Boyd (1): clk: qcom: Add support for NSS/GMAC clocks and resets .../devicetree

[PATCH 3/5] stmmac: add fixed-link device-tree support

2015-05-26 Thread Mathieu Olivari
In case DT is used, this change adds the ability to the stmmac driver to detect a fixed-link PHY, instanciate it, and use it during phy_connect(). Fixed link PHYs DT usage is described in: Documentation/devicetree/bindings/net/fixed-link.txt Signed-off-by: Mathieu Olivari --- drivers/net

[PATCH 5/5] net: stmmac: ipq806x: document device tree bindings

2015-05-26 Thread Mathieu Olivari
Add the device tree bindings documentation for the QCA IPQ806x variant of the Synopsys DesignWare MAC. Signed-off-by: Mathieu Olivari --- .../devicetree/bindings/net/ipq806x-dwmac.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree

[PATCH 1/5] clk: qcom: Add support for NSS/GMAC clocks and resets

2015-05-26 Thread Mathieu Olivari
From: Stephen Boyd Add the NSS/GMAC clocks and the TCM clock and NSS resets. Signed-off-by: Stephen Boyd Signed-off-by: Mathieu Olivari --- drivers/clk/qcom/gcc-ipq806x.c | 594 ++- include/dt-bindings/clock/qcom,gcc-ipq806x.h | 2 + include/dt

[PATCH 4/5] stmmac: add ipq806x glue layer

2015-05-26 Thread Mathieu Olivari
The ethernet controller available in IPQ806x is a Synopsys DesignWare Gigabit MAC IP core, already supported by the stmmac driver. This glue layer implements some platform specific settings required to get the controller working on an IPQ806x based platform. Signed-off-by: Mathieu Olivari

[PATCH 2/5] stmmac: add phy-handle support to the platform layer

2015-05-26 Thread Mathieu Olivari
the phy-handle property, as specified in Documentation/devicetree/bindings/net/ethernet.txt. Signed-off-by: Mathieu Olivari --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 28 ++ .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 6 - include

[PATCH] net: stmmac: create one debugfs dir per net-device

2015-05-22 Thread Mathieu Olivari
debugfs information for the first registered device only. This patch changes the debugfs structure to have one sub-directory per net-device. Files under "/sys/kernel/debug/stmmaceth" will now show-up under /sys/kernel/debug/stmmaceth/ethN/. Signed-off-by: Mathieu Olivari --- drivers/ne