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

2015-08-04 Thread Mathieu Olivari
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 dan.carpen...@oracle.com Signed-off-by: Mathieu Olivari math...@codeaurora.org --- drivers/net/ethernet

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

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 generic

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: I have patches which allow DSA to use two cpu

[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 math...@codeaurora.org --- drivers/net/dsa/ar8xxx.c | 106 +++ drivers/net/dsa/ar8xxx.h | 47 + 2 files changed, 146

[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 math...@codeaurora.org --- drivers/net/dsa/ar8xxx.c | 50

[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/mdiobus/registers : 1302 0004: ... ... Signed-off-by: Mathieu Olivari math...@codeaurora.org --- drivers/net/dsa/Kconfig | 1 + drivers/net/dsa/ar8xxx.c | 60

[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 math...@codeaurora.org --- .../devicetree/bindings/net/dsa/qca-ar8xxx.txt | 70 ++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dsa/qca

[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 math...@codeaurora.org --- include/net/dsa.h | 1 + net/dsa/Kconfig| 3 + net/dsa/Makefile | 1 + net/dsa/dsa.c | 5 ++ net/dsa

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

2015-05-28 Thread Mathieu Olivari
@ 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 math...@codeaurora.org --- drivers/net/dsa/Kconfig | 7 ++ drivers/net/dsa/Makefile | 1 + drivers/net/dsa

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

2015-05-28 Thread Mathieu Olivari
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 net: dsa: ar8xxx: add regmap support net: dsa: add QCA tag support

[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 math...@codeaurora.org --- .../devicetree/bindings/net/ipq806x-dwmac.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644

[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 math...@codeaurora.org

[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 math

[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 tree bindings

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

2015-05-27 Thread Mathieu Olivari
, as specified in Documentation/devicetree/bindings/net/ethernet.txt. Signed-off-by: Mathieu Olivari math...@codeaurora.org --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 28 ++ .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 6 - include/linux/stmmac.h

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

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

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

2015-05-27 Thread Mathieu Olivari
, 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...@codeaurora.org

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

2015-05-26 Thread Mathieu Olivari
, as specified in Documentation/devicetree/bindings/net/ethernet.txt. Signed-off-by: Mathieu Olivari math...@codeaurora.org --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 28 ++ .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 6 - include/linux/stmmac.h

[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 math

[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 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 math...@codeaurora.org --- .../devicetree/bindings/net/ipq806x-dwmac.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644

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

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

[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 math...@codeaurora.org

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

2015-05-22 Thread Mathieu Olivari
the 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 math...@codeaurora.org