Re: [PATCH net-next v3 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-13 Thread Neil Armstrong
he coalesce frames > to 25. > > Tested in B2B setup between XGMAC2 and GMAC5. I will run a test today, Thanks, Neil > > Signed-off-by: Jose Abreu > Cc: Florian Fainelli > Cc: Neil Armstrong > Cc: Jerome Brunet > Cc: Martin Blumenstingl > Cc: David S. Miller

Re: [net-next, v2, 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-12 Thread Neil Armstrong
Hi Jose, On 11/09/2018 10:17, Jose Abreu wrote: > On 10-09-2018 19:15, Neil Armstrong wrote: >> >> RX is still ok but now TX fails almost immediately... >> >> With 100ms report : >> >> $ iperf3 -c 192.168.1.47 -t 0 -p 5202 -R -i 0.1 >> Connecting to

Re: [net-next, v2, 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-10 Thread Neil Armstrong
Hi Jose, On 10/09/2018 18:21, Jose Abreu wrote: > On 10-09-2018 16:49, Neil Armstrong wrote: >> Hi Jose, >> >> On 10/09/2018 16:44, Jose Abreu wrote: >>> On 10-09-2018 14:46, Neil Armstrong wrote: >>>> hi Jose, >>>> >>>> On 10/09/2

Re: [net-next, v2, 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-10 Thread Neil Armstrong
Hi Jose, On 10/09/2018 16:44, Jose Abreu wrote: > On 10-09-2018 14:46, Neil Armstrong wrote: >> hi Jose, >> >> On 10/09/2018 14:55, Jose Abreu wrote: >>> On 10-09-2018 13:52, Jose Abreu wrote: >>>> Can you please try attached follow-up patch ? >&

Re: [net-next, v2, 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-10 Thread Neil Armstrong
hi Jose, On 10/09/2018 14:55, Jose Abreu wrote: > On 10-09-2018 13:52, Jose Abreu wrote: >> >> Can you please try attached follow-up patch ? > > Oh, please apply the whole series otherwise this will not apply > cleanly. Indeed, it helps! With the fixups, it fails later, around 15s instead of

Re: [net-next, v2, 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-10 Thread Neil Armstrong
Hi Jose, On 10/09/2018 11:14, Jose Abreu wrote: > This follows David Miller advice and tries to fix coalesce timer in > multi-queue scenarios. > > We are now using per-queue coalesce values and per-queue TX timer. > > Coalesce timer default values was changed to 1ms and the coalesce frames > to

Re: [PATCH net-next v2 3/8] net: phy: meson-gxl: add read and write helpers for bank registers

2017-12-07 Thread Neil Armstrong
On 07/12/2017 16:46, Andrew Lunn wrote: > On Thu, Dec 07, 2017 at 03:27:10PM +0100, Jerome Brunet wrote: >> Add read and write helpers to manipulate banked registers on this PHY >> This helps clarify the settings applied to these registers in the init >> function and upcoming changes. >> >>

Re: [PATCH] ARM64: dts: meson-axg: add ethernet mac controller

2017-11-17 Thread Neil Armstrong
"eth_rxd1_y", > +"eth_rxd2_rgmii", > + "eth_rxd3_rgmii", > +"eth_rgmii_tx_clk", > +"eth_txen_y", > +"eth_txd0_y", > +"eth_txd1_y", > +"eth_txd2_rgmii", > +"eth_txd3_rgmii"; > + function = "eth"; > + }; > + }; > }; > }; > > Reviewed-by: Neil Armstrong <narmstr...@baylibre.com>

Re: [PATCH net] mdio: mux: fix parsing mux registers outside of the PHY address range

2017-07-10 Thread Neil Armstrong
{ > int v; > > - v = of_mdio_parse_addr(dev, child_bus_node); > - if (v < 0) { > + r = of_property_read_u32(child_bus_node, "reg", ); > + if (r) { > dev_err(dev, >

Re: [PATCH net 0/3] net: stmmac: dwmac-oxnas: fix leaks and simplify pm

2017-01-02 Thread Neil Armstrong
On 01/02/2017 12:56 PM, Johan Hovold wrote: > These patches fixes of-node and fixed-phydev leaks in the recently added > dwmac-oxnas driver, and ultimately switches over to using the generic pm > implementation as the required callbacks are now in place. > > Note that this series has only been

Re: [PATCH net-next v3 0/4] Fix OdroidC2 Gigabit Tx link issue

2016-11-28 Thread Neil Armstrong
t; +++--- > include/dt-bindings/net/mdio.h | 19 + > include/linux/phy.h| 3 + > 6 files changed, 114 insertions(+), 9 deletions(-) > create mode 100644 include/dt-bindings/net/mdio.h > Tested using Nexbox A1 (S912) and Amlogic P230 (S905D) devices (DWMAC + RTL8211F). Tested-by: Neil Armstrong <narmstr...@baylibre.com>

[PATCH net-next 0/2] ARM64: Add Internal PHY support for Meson GXL

2016-11-04 Thread Neil Armstrong
/1477932987-27871-1-git-send-email-narmstr...@baylibre.com Neil Armstrong (2): net: mdio-mux-mmioreg: Add support for 16bit and 32bit register sizes net: phy: Add Meson GXL Internal PHY driver .../devicetree/bindings/net/mdio-mux-mmioreg.txt | 4 +- drivers/net/phy/Kconfig

[PATCH net-next 1/2] net: mdio-mux-mmioreg: Add support for 16bit and 32bit register sizes

2016-11-04 Thread Neil Armstrong
In order to support PHY switching on Amlogic GXL SoCs, add support for 16bit and 32bit registers sizes. Reviewed-by: Andrew Lunn <and...@lunn.ch> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- .../devicetree/bindings/net/mdio-mux-mmioreg.txt | 4 +- drivers/net/

[PATCH net-next 2/2] net: phy: Add Meson GXL Internal PHY driver

2016-11-04 Thread Neil Armstrong
until clarification about these registers names and registers fields are provided by Amlogic. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/phy/Kconfig | 5 +++ drivers/net/phy/Makefile| 1 + drivers/net/phy/meson-gxl.

Re: [RFC PATCH v2 0/5] ARM64: Add Internal PHY support for Meson GXL

2016-11-04 Thread Neil Armstrong
On 10/31/2016 05:56 PM, Neil Armstrong wrote: > The Amlogic Meson GXL SoCs have an internal RMII PHY that is muxed with the > external RGMII pins. > > In order to support switching between the two PHYs links, extended registers > size for mdio-mux-mmioreg must be added. > >

[PATCH v3 2/2] dt-bindings: net: Add OXNAS DWMAC Bindings

2016-11-02 Thread Neil Armstrong
Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- .../devicetree/bindings/net/oxnas-dwmac.txt| 39 ++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/oxnas-dwmac.txt diff --git a/Documentation/devicetree/bi

[PATCH v3 1/2] net: stmmac: Add OXNAS Glue Driver

2016-11-02 Thread Neil Armstrong
Add Synopsys Designware MAC Glue layer for the Oxford Semiconductor OX820. Acked-by: Joachim Eastwood <manab...@gmail.com> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 ++ drivers/net/ethernet/stmicro/stm

[PATCH v3 0/2] net: stmmac: Add OXNAS DWMAC Glue

2016-11-02 Thread Neil Armstrong
://patchwork.kernel.org/patch/9387257 : - Drop init/exit callbacks - Implement proper remove and PM callback - Call init from probe - Disable/Unprepare clock if stmmac probe fails Neil Armstrong (2): net: stmmac: Add OXNAS Glue Driver dt-bindings: net: Add OXNAS DWMAC Bindings

Re: [PATCH v2 1/2] net: stmmac: Add OXNAS Glue Driver

2016-11-02 Thread Neil Armstrong
On 10/31/2016 12:12 PM, Joachim Eastwood wrote: > Hi Neil, > > On 31 October 2016 at 11:54, Neil Armstrong <narmstr...@baylibre.com> wrote: >> Add Synopsys Designware MAC Glue layer for the Oxford Semiconductor OX820. >> >> Acked-by: Joachim Eastwood <manab.

Re: [RFC PATCH v2 2/5] net: phy: Add Meson GXL Internal PHY driver

2016-11-02 Thread Neil Armstrong
On 10/31/2016 08:05 PM, Andrew Lunn wrote: > On Mon, Oct 31, 2016 at 05:56:24PM +0100, Neil Armstrong wrote: >> Add driver for the Internal RMII PHY found in the Amlogic Meson GXL SoCs. >> >> This PHY seems to only implement some standard registers and need some >> wor

[RFC PATCH v2 0/5] ARM64: Add Internal PHY support for Meson GXL

2016-10-31 Thread Neil Armstrong
- Add external PHY support for p230 [1] http://lkml.kernel.org/r/1477932286-27482-1-git-send-email-narmstr...@baylibre.com [2] http://lkml.kernel.org/r/1477060838-14164-1-git-send-email-narmstr...@baylibre.com Neil Armstrong (5): net: mdio-mux-mmioreg: Add support for 16bit and 32bit register

[RFC PATCH v2 4/5] ARM64: dts: meson-gxl-p23x: Enable ethernet

2016-10-31 Thread Neil Armstrong
Enable Ethernet on the p23x board, pinctrl attribute is only added for the p230 board since the p231 only uses the Internal PHY. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts | 16 arch/arm64/boot/dts/a

[RFC PATCH v2 1/5] net: mdio-mux-mmioreg: Add support for 16bit and 32bit register sizes

2016-10-31 Thread Neil Armstrong
In order to support PHY switching on Amlogic GXL SoCs, add support for 16bit and 32bit registers sizes. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- .../devicetree/bindings/net/mdio-mux-mmioreg.txt | 4 +- drivers/net/phy/mdio-mux-mmioreg.c

[RFC PATCH v2 3/5] ARM64: dts: meson-gxl: Add ethernet nodes with internal PHY

2016-10-31 Thread Neil Armstrong
Add Ethernet node with Internal PHY selection for the Amlogic GXL SoCs Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 45 ++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic

[RFC PATCH v2 5/5] ARM64: dts: meson-gxl-s905x: Enable internal ethernet PHY

2016-10-31 Thread Neil Armstrong
Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi index 07f0e0b..08237ee

[RFC PATCH v2 2/5] net: phy: Add Meson GXL Internal PHY driver

2016-10-31 Thread Neil Armstrong
until clarification about these registers names and registers fields are provided by Amlogic. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/phy/Kconfig | 5 +++ drivers/net/phy/Makefile| 1 + drivers/net/phy/meson-gxl.

Re: [RFC PATCH 09/13] net: phy: Add Meson GXL Internal PHY driver

2016-10-31 Thread Neil Armstrong
On 10/21/2016 10:56 PM, Florian Fainelli wrote: > On 10/21/2016 07:40 AM, Neil Armstrong wrote: >> Add driver for the Internal RMII PHY found in the Amlogic Meson GXL SoCs. >> >> This PHY seems to only implement some standard registers and need some >> workarounds to

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-31 Thread Neil Armstrong
On 10/21/2016 06:08 PM, Andrew Lunn wrote: > Hi Neil > >> Yes this would be a good idea if we were able to scan the internal >> and external PHYs at the same time, but with our limited knowledge >> the values we write in the register seems to switch a mux for the >> whole RMII and MDIO signals to

[PATCH v2 0/2] net: stmmac: Add OXNAS DWMAC Glue

2016-10-31 Thread Neil Armstrong
if stmmac probe fails Neil Armstrong (2): net: stmmac: Add OXNAS Glue Driver dt-bindings: net: Add OXNAS DWMAC Bindings .../devicetree/bindings/net/oxnas-dwmac.txt| 39 drivers/net/ethernet/stmicro/stmmac/Kconfig| 11 ++ drivers/net/ethernet/stmicro/stmmac/Makefile

[PATCH v2 1/2] net: stmmac: Add OXNAS Glue Driver

2016-10-31 Thread Neil Armstrong
Add Synopsys Designware MAC Glue layer for the Oxford Semiconductor OX820. Acked-by: Joachim Eastwood <manab...@gmail.com> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 ++ drivers/net/ethernet/stmicro/stm

[PATCH v2 2/2] dt-bindings: net: Add OXNAS DWMAC Bindings

2016-10-31 Thread Neil Armstrong
Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- .../devicetree/bindings/net/oxnas-dwmac.txt| 39 ++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/oxnas-dwmac.txt diff --git a/Documentation/devicetree/bi

Re: [PATCH] net: stmmac: Add OXNAS Glue Driver

2016-10-31 Thread Neil Armstrong
On 10/31/2016 11:20 AM, Joachim Eastwood wrote: > Hi Neil, > > On 31 October 2016 at 10:55, Neil Armstrong <narmstr...@baylibre.com> wrote: >> On 10/30/2016 09:41 PM, Rob Herring wrote: >>> On Fri, Oct 21, 2016 at 10:44:45AM +0200, Neil Armstrong wrote: >>>&

Re: [PATCH] net: stmmac: Add OXNAS Glue Driver

2016-10-31 Thread Neil Armstrong
On 10/30/2016 09:41 PM, Rob Herring wrote: > On Fri, Oct 21, 2016 at 10:44:45AM +0200, Neil Armstrong wrote: >> Add Synopsys Designware MAC Glue layer for the Oxford Semiconductor OX820. >> >> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> >> --- >

Re: [RFC PATCH 01/13] pinctrl: meson: Add GXL pinctrl definitions

2016-10-31 Thread Neil Armstrong
On 10/24/2016 03:03 AM, Linus Walleij wrote: > On Fri, Oct 21, 2016 at 4:40 PM, Neil Armstrong <narmstr...@baylibre.com> > wrote: > >> Add support for the Amlogic Meson GXL SoC, this is a partially complete >> definition only based on the Amlogic Vendor tree. >>

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Neil Armstrong
On 10/21/2016 05:54 PM, Andrew Lunn wrote: > On Fri, Oct 21, 2016 at 04:40:33PM +0200, Neil Armstrong wrote: >> The Meson GXL dwmac Glue Layer also provides switching between an external >> PHY >> and an internal RMII 10/100 PHY. >> Add a way to setup the correct PHY s

Re: [PATCH] net: stmmac: Add OXNAS Glue Driver

2016-10-21 Thread Neil Armstrong
On 10/21/2016 01:53 PM, Giuseppe CAVALLARO wrote: > Hello > > some my minor cents below > > On 10/21/2016 12:20 PM, Joachim Eastwood wrote: >> Hi Neil, >> >> On 21 October 2016 at 10:44, Neil Armstrong <narmstr...@baylibre.com> wrote: >>> Add S

[RFC PATCH 01/13] pinctrl: meson: Add GXL pinctrl definitions

2016-10-21 Thread Neil Armstrong
Add support for the Amlogic Meson GXL SoC, this is a partially complete definition only based on the Amlogic Vendor tree. This definition differs a lot from the GXBB and needs a separate entry. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- .../devicetree/bindings/pinctrl

[RFC PATCH 07/13] ARM64: dts: meson-gxl-p23x: Add uart pinctrl

2016-10-21 Thread Neil Armstrong
Add pinctrl attribute to p23x uart node. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p23x.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p23x.dtsi b/arch/arm64/boot/dts/a

[RFC PATCH 00/13] ARM64: meson-gxl: Add extended support

2016-10-21 Thread Neil Armstrong
and clock nodes for GXL - Adds correct GXL P23X boards uart pinctrl - Adds the GXL Internal PHY driver - Add a temporary workaround to select the internal PHY - Add Ethernet nodes for GXL and the P23X boards - Add SD/MMC and SDIO WiFi support support for P23X boards Neil Armstrong (13): pinctrl

Re: [PATCH] net: stmmac: Add OXNAS Glue Driver

2016-10-21 Thread Neil Armstrong
On 10/21/2016 12:20 PM, Joachim Eastwood wrote: > Hi Neil, > > On 21 October 2016 at 10:44, Neil Armstrong <narmstr...@baylibre.com> wrote: >> Add Synopsys Designware MAC Glue layer for the Oxford Semiconductor OX820. >> >> Signed-off-by: Neil A

[RFC PATCH 02/13] ARM64: dts: meson-gxbb: Move common nodes to meson-gx

2016-10-21 Thread Neil Armstrong
Move common nodes between GXBB and GXL in to the common GX dtsi. Leave the clock attributes in the GXBB dtsi for now. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 131 +++ arch/arm64/boot/dts/amlogic/meson-gxb

[RFC PATCH 04/13] ARM64: dts: meson-gxl: Add clock nodes

2016-10-21 Thread Neil Armstrong
Add clock node for Amlogic Meson GXL. The GXBB compatible is retained since the GXBB clock tree is used for now. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/bo

[RFC PATCH 10/13] ARM64: dts: meson-gxl: Add ethernet nodes with internal PHY

2016-10-21 Thread Neil Armstrong
Add Ethernet node with Internal PHY selection for the Amlogic GXL SoCs Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic

[RFC PATCH 11/13] ARM64: dts: meson-gxl-p23x: Enable ethernet

2016-10-21 Thread Neil Armstrong
Enable Ethernet on the p23x board, pinctrl attribute are not added since the current setup uses the Internal PHY. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p23x.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch

[RFC PATCH 05/13] ARM64: dts: meson-gxl: Add i2c nodes

2016-10-21 Thread Neil Armstrong
Add i2c nodes clock attributes for Amlogic Meson GXL. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/a

[RFC PATCH 06/13] ARM64: dts: meson-gxl: Add MMC/SD/SDIO nodes

2016-10-21 Thread Neil Armstrong
Add MMC/SD/SDIO nodes clock attributes for Amlogic Meson GXL. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch

[RFC PATCH 12/13] ARM64: dts: meson-gxl-p23x: Add SD/SDIO/MMC and PWM nodes

2016-10-21 Thread Neil Armstrong
Add SD/SDIO/MMC nodes and PWM 32768Hz clock configuration to provide storage and WiFi functionality on the p23x boards. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- .../boot/dts/amlogic/meson-gxl-s905d-p23x.dtsi | 112 + 1 file changed, 112 inse

[RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Neil Armstrong
on the registers fields is received from Amlogic. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- .../net/ethernet/stmicro/stmmac/dwmac-meson8b.c| 25 ++ 1 file changed, 25 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c b/drive

[RFC PATCH 03/13] ARM64: dts: meson-gxl: Add pinctrl nodes

2016-10-21 Thread Neil Armstrong
Add pinctrl nodes and pin definitions for Amlogic Meson GXL. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 168 + 1 file changed, 168 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.d

[RFC PATCH 09/13] net: phy: Add Meson GXL Internal PHY driver

2016-10-21 Thread Neil Armstrong
until clarification about these registers names and registers fields are provided by Amlogic. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/phy/Kconfig | 5 ++ drivers/net/phy/Makefile| 1 + drivers/net/phy/meson-gxl.c

[RFC PATCH 13/13] ARM64: dts: meson-gxl-p23x: Enable IR receiver

2016-10-21 Thread Neil Armstrong
Enable the Infraread Receiver on the p23x board. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p23x.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p23x.dtsi b/arch/arm6

[PATCH] net: stmmac: Add OXNAS Glue Driver

2016-10-21 Thread Neil Armstrong
Add Synopsys Designware MAC Glue layer for the Oxford Semiconductor OX820. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- .../devicetree/bindings/net/oxnas-dwmac.txt| 44 + drivers/net/ethernet/stmicro/stmmac/Kconfig| 11 ++ drivers/net/ethernet/stmicro/

Re: [RFC PATCH] net: stmmac: Add OXNAS Glue Driver

2016-10-21 Thread Neil Armstrong
On 10/20/2016 06:26 PM, Joachim Eastwood wrote: > Hi Neil, > > On 20 October 2016 at 17:54, Neil Armstrong <narmstr...@baylibre.com> wrote: >> Add Synopsys Designware MAC Glue layer for the Oxford Semiconductor OX820. >> >> Signed-off-by: Neil A

[RFC PATCH] net: stmmac: Add OXNAS Glue Driver

2016-10-20 Thread Neil Armstrong
Add Synopsys Designware MAC Glue layer for the Oxford Semiconductor OX820. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- .../devicetree/bindings/net/oxnas-dwmac.txt| 44 ++ drivers/net/ethernet/stmicro/stmmac/Kconfig| 11 ++ drivers/net/ethernet/stmicro/

[PATCH] net: ethernet: davinci_emac: Fix devioctl while in fixed link

2016-04-25 Thread Neil Armstrong
When configured in fixed link, the DaVinci emac driver sets the priv->phydev to NULL and further ioctl calls to the phy_mii_ioctl() causes the kernel to crash. Cc: Brian Hutchinson <b.hutch...@gmail.com> Fixes: 1bb6aa56bb38 ("net: davinci_emac: Add support for fixed-link PHY")

[PATCH 1/2] net: ethernet: davinci_emac: Fix Unbalanced pm_runtime_enable

2016-04-20 Thread Neil Armstrong
c: add pm_runtime support") Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/ti/davinci_emac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index 5d9abed..e9fe3fb 100644 -

[PATCH 2/2] net: ethernet: davinci_emac: Fix platform_data overwrite

2016-04-20 Thread Neil Armstrong
upport") Cc: Brian Hutchinson <b.hutch...@gmail.com> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/ti/davinci_emac.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_e

Re: [PATCH 1/1] net: macb: remove BUG_ON() and reset the queue to handle RX errors

2016-03-24 Thread Neil Armstrong
ts the RX queue before restarting the reception from a clean > state. > > This patch is a rework of an older patch proposed by Neil Armstrong: > http://patchwork.ozlabs.org/patch/371525/ > > Signed-off-by: Cyrille Pitchen <cyrille.pitc...@atmel.com> > --- &

[PATCH] net: dsa: Fix cleanup resources upon module removal

2016-03-08 Thread Neil Armstrong
ule removal ") Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- net/dsa/dsa.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) David, Florian, Andrew, This fix is quite urgent since it breaks all the removal cleanup. Thanks, Neil diff --git a/net/dsa

Re: [PATCH 2/2] net: dsa: remove phy_disconnect from error path

2016-02-15 Thread Neil Armstrong
ret, slave_dev->name); >> -phy_disconnect(p->phy); >> ds->ports[port] = NULL; >> free_netdev(slave_dev); >> return ret; > > I'm adding Neil in the loop, since he did some work similar to this, if > I'm not mistaken. > > Thanks, > -v > He's right, the phy is not yet created in this error path. Acked-by: Neil Armstrong <narmstr...@baylibre.com> Thanks Vivien, Neil

[PATCH v5 net-next 3/3] dt-bindings: net: macb: Add NP4 macb variant

2016-01-05 Thread Neil Armstrong
Add NP4 macb SoC variant. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- Documentation/devicetree/bindings/net/macb.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt index 3

[PATCH v5 net-next 1/3] net: ethernet: cadence-macb: Add disabled usrio caps

2016-01-05 Thread Neil Armstrong
platforms. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/cadence/macb.c | 27 +++ drivers/net/ethernet/cadence/macb.h | 1 + 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/d

[PATCH v5 net-next 0/3] Add new capability and macb DT variant

2016-01-05 Thread Neil Armstrong
: http://lkml.kernel.org/r/1451900573-22657-1-git-send-email-narmstr...@baylibre.com v5: switch SoC name to non-generic NP4 name Neil Armstrong (3): net: ethernet: cadence-macb: Add disabled usrio caps net: macb: Add NP4 macb config using USRIO_DISABLED dt-bindings: net: macb: Add NP4 macb

[PATCH v5 net-next 2/3] net: macb: Add NP4 macb config using USRIO_DISABLED

2016-01-05 Thread Neil Armstrong
Declare a new NP4 SoC variant having USRIO_DISABLED as capability bit. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/cadence/macb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/c

Re: [PATCH v4 net-next 2/3] net: macb: Add NPx macb config using USRIO_DISABLED cap

2016-01-05 Thread Neil Armstrong
On 01/04/2016 11:38 AM, Nicolas Ferre wrote: > Le 04/01/2016 10:42, Neil Armstrong a écrit : >> static const struct macb_config zynqmp_config = { >> .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_JUMBO, >> @@ -2801,6 +2806,7 @@ static const struct of_

[PATCH v3 net-next] net: ethernet: cadence-macb: Add disabled usrio caps

2016-01-04 Thread Neil Armstrong
platforms. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/cadence/macb.c | 27 +++ drivers/net/ethernet/cadence/macb.h | 1 + 2 files changed, 16 insertions(+), 12 deletions(-) Nicolas, I post only the first patch of the previo

[PATCH v4 net-next 0/3] Add new capability and macb DT variant

2016-01-04 Thread Neil Armstrong
...@baylibre.com v3: http://lkml.kernel.org/r/1451898103-21868-1-git-send-email-narmstr...@baylibre.com v4: as nicolas suggested, use a new macb config and a new product/vendor prefix Neil Armstrong (3): net: ethernet: cadence-macb: Add disabled usrio caps net: macb: Add NPx macb config using

[PATCH v4 net-next 1/3] net: ethernet: cadence-macb: Add disabled usrio caps

2016-01-04 Thread Neil Armstrong
platforms. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/cadence/macb.c | 27 +++ drivers/net/ethernet/cadence/macb.h | 1 + 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/d

[PATCH v4 net-next 2/3] net: macb: Add NPx macb config using USRIO_DISABLED cap

2016-01-04 Thread Neil Armstrong
Declare a new SoC variant for NPx SoCs having USRIO_DISABLED as capability bit. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/cadence/macb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/et

[PATCH v4 net-next 3/3] dt-bindings: net: macb: Add NPx macb variant

2016-01-04 Thread Neil Armstrong
Add NPx macb variant for NPx SoCs. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- Documentation/devicetree/bindings/net/macb.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt

Re: [PATCH net 1/2] net: cadence: macb: Disable USRIO register on some platforms

2015-12-08 Thread Neil Armstrong
Hi Josh, 2015-12-07 20:32 GMT+01:00 Josh Cartwright <jo...@ni.com>: > On Mon, Dec 07, 2015 at 11:58:33AM +0100, Neil Armstrong wrote: >> On some platforms, the macb integration does not use the USRIO >> register to configure the (R)MII port and clocks. >> When the

[PATCH v2 net-next 2/3] net: ethernet: cadence-macb: Add fallback to read DT provided caps

2015-12-08 Thread Neil Armstrong
Add 1:1 mapping of software defines caps parsing from DT in case the generic macb compatible form is used. These properties will provide support for futures implementations only defined from DT without need to update the driver code to support new variants. Signed-off-by: Neil Armstrong <narm

[PATCH v2 net-next 1/3] net: ethernet: cadence-macb: Add disabled usrio caps

2015-12-08 Thread Neil Armstrong
platforms. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/ethernet/cadence/macb.c | 27 +++ drivers/net/ethernet/cadence/macb.h | 1 + 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/d

[PATCH v2 net-next 0/3] Add new capability and parse from DT

2015-12-08 Thread Neil Armstrong
software CAPS_* as DT properties Neil Armstrong (3): net: ethernet: cadence-macb: Add disabled usrio caps net: ethernet: cadence-macb: Add fallback to read DT provided caps bindings: ethernet: macb: Add optional caps properties Documentation/devicetree/bindings/net/macb.txt | 10

[PATCH v2 net-next 3/3] bindings: ethernet: macb: Add optional caps properties

2015-12-08 Thread Neil Armstrong
Add generic caps properties to the binding in order to support future macb/gem implementations with the generic macb compatible form. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- Documentation/devicetree/bindings/net/macb.txt | 10 ++ 1 file changed, 10 insertions(+)

[PATCH net 1/2] net: cadence: macb: Disable USRIO register on some platforms

2015-12-07 Thread Neil Armstrong
On some platforms, the macb integration does not use the USRIO register to configure the (R)MII port and clocks. When the register is not implemented and the MACB error signal is connected to the bus error, reading or writing to the USRIO register can trigger some Imprecise External Aborts on ARM

[PATCH net 0/2] Add a property to disable MACB USRIO register

2015-12-07 Thread Neil Armstrong
This patchet introduces an optional DT property to disable usage of the USRIO register on platform not implementing it thus avaiding some external impresise aborts of ARM based platforms. Neil Armstrong (2): net: cadence: macb: Disable USRIO register on some platforms bindings: net: macb: add

[PATCH net 2/2] bindings: net: macb: add no-usrio optional property

2015-12-07 Thread Neil Armstrong
Add the no-usrio optional property to disable usage of the USRIO register on platforms not implementing it. --- Documentation/devicetree/bindings/net/macb.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/macb.txt

Re: [RFC PATCH v3 0/5] net: dsa: cleanup dsa driver

2015-12-07 Thread Neil Armstrong
On 10/29/2015 03:45 PM, Neil Armstrong wrote: > Introduce a new remove callback to allow DSA drivers to cleanup their > ressources. > Then add a remove implementation for bcm_sf2 and mv88e6xxx. > > This patch was not tested due of a lack of hardware. > > v2: add

[PATCH v3 net-next 3/4] net: dsa: Add missing master netdev dev_put() calls

2015-12-07 Thread Neil Armstrong
Upon probe failure or unbinding, add missing dev_put() calls. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- net/dsa/dsa.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index d9e0172..d22d303e 100644 --- a/net/dsa/dsa.c

[PATCH v3 net-next 4/4] net: dsa: move dsa slave destroy code to slave.c

2015-12-07 Thread Neil Armstrong
Move dsa slave dedicated code from dsa_switch_destroy to a new dsa_slave_destroy function in slave.c. Add the netif_carrier_off and phy_disconnect calls in order to correctly cleanup the netdev state and PHY state machine. Signed-off-by: Frode Isaksen <fisak...@baylibre.com> Signed-off-by

[PATCH v3 net-next 2/4] net: dsa: cleanup resources upon module removal

2015-12-07 Thread Neil Armstrong
Make sure that we unassign the master_netdev dsa_ptr to make the packet processing go through the regular Ethernet receive path. Suggested-by: Florian Fainelli <f.faine...@gmail.com> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- net/dsa/dsa.c | 8 1 fil

[PATCH v3 net-next 1/4] net: dsa: remove DSA link polling

2015-12-07 Thread Neil Armstrong
Since no more DSA driver uses the polling callback, and since the phylib handles the link detection, remove the link polling work and timer code. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- include/net/dsa.h | 12 net/dsa/dsa.c

[PATCH v3 net-next 0/4] Further fix for dsa unbinding

2015-12-07 Thread Neil Armstrong
://lkml.kernel.org/r/562f8ecb.6050...@baylibre.com v2: http://lkml.kernel.org/r/56321d9a.8010...@baylibre.com remove phy fix and add missing calls in dsa_switch_destroy then add dedicated dsa_slave_destroy v3: remove polling instead of fixing it, make single patch for dsa slave destroy Neil Armstrong (4

Re: [PATCH net-next 1/2] net: dsa: Add support for a switch reset gpio

2015-11-19 Thread Neil Armstrong
Hi Andrew, On 11/19/2015 12:29 AM, Andrew Lunn wrote: > + gpio = of_get_named_gpio_flags(child, "reset-gpios", 0, > +); > + if (gpio_is_valid(gpio)) { > + ret = devm_gpio_request_one(dev, gpio, flags, > +

Re: [PATCH v2 0/6] net: dsa: mv88e6060: cleanup and fix setup

2015-11-12 Thread Neil Armstrong
On 11/10/2015 05:14 PM, Andrew Lunn wrote: > On Tue, Nov 10, 2015 at 04:51:09PM +0100, Neil Armstrong wrote: >> This patchset introduces some fixes and a registers addressing cleanup for >> the mv88e6060 DSA driver. > > Hi Neil > > It is normal for netdev to put into t

[PATCH v2 0/6] net: dsa: mv88e6060: cleanup and fix setup

2015-11-10 Thread Neil Armstrong
. v2: cleanup InitReady patch, add missing Acked-by and fix header copyright notice Neil Armstrong (6): net: dsa: mv88e6060: remove poll_link callback net: dsa: mv88e6060: use the correct InitReady bit net: dsa: mv88e6060: use the correct MaxFrameSize bit net: dsa: mv88e6060: use

[PATCH v2 2/6] net: dsa: mv88e6060: use the correct InitReady bit

2015-11-10 Thread Neil Armstrong
According to the mv88e6060 datasheet, the InitReady bit position is 11 and the polarity is inverted. Use the bit correctly to detect the end of initialization. Acked-by: Andrew Lunn <and...@lunn.ch> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/dsa/mv88e6060

[PATCH v2 3/6] net: dsa: mv88e6060: use the correct MaxFrameSize bit

2015-11-10 Thread Neil Armstrong
According to the mv88e6060 datasheet, the MaxFrameSize bit position is 10 instead of 11 which is reserved. Use the bit correctly to setup max frame size to 1536. Acked-by: Andrew Lunn <and...@lunn.ch> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/dsa/mv8

[PATCH v2 1/6] net: dsa: mv88e6060: remove poll_link callback

2015-11-10 Thread Neil Armstrong
As of mv88e6xxx remove the poll_link callback since the link state change polling is now handled by the phylib. Tested on a mv88e6060 B0 device with a TI DM816X SoC. Suggested-by: Andrew Lunn <and...@lunn.ch> Acked-by: Andrew Lunn <and...@lunn.ch> Signed-off-by: Neil Armstr

[PATCH v2 4/6] net: dsa: mv88e6060: use the correct bit shift for mac0

2015-11-10 Thread Neil Armstrong
.ch> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/dsa/mv88e6060.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c index 10647ad..cd08079 100644 --- a/drivers/net/dsa/mv88e6060.c +++ b/dri

[PATCH v2 5/6] net: dsa: mv88e6060: add register defines header file

2015-11-10 Thread Neil Armstrong
To align with the mv88e6xxx code, add a similar header file with all the register defines. The file is based on the mv88e6xxx header for coherency. Acked-by: Andrew Lunn <and...@lunn.ch> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/dsa/mv88e

[PATCH v2 6/6] net: dsa: mv88e6060: replace magic values with register defines

2015-11-10 Thread Neil Armstrong
To align with the mv88e6xxx code, use the register defines to access all the register addresses and bit fields. Acked-by: Andrew Lunn <and...@lunn.ch> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/dsa/mv88e6060.c | 64 ++--

Re: [PATCH 5/6] net: dsa: mv88e6060: add register defines header file

2015-11-10 Thread Neil Armstrong
On 11/10/2015 03:25 PM, Vivien Didelot wrote: > Hi Neil, > > On Nov. Tuesday 10 (46) 02:25 PM, Neil Armstrong wrote: >> To align with the mv88e6xxx code, add a similar header file >> with all the register defines. >> The file is based on the mv88e6xxx header for

[PATCH 1/6] net: dsa: mv88e6060: remove poll_link callback

2015-11-10 Thread Neil Armstrong
As of mv88e6xxx remove the poll_link callback since the link state change polling is now handled by the phylib. Tested on a mv88e6060 B0 device with a TI DM816X SoC. Suggested-by: Andrew Lunn <and...@lunn.ch> Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/d

[PATCH 0/6] net: dsa: mv88e6060: cleanup and fix setup

2015-11-10 Thread Neil Armstrong
. Neil Armstrong (6): net: dsa: mv88e6060: remove poll_link callback net: dsa: mv88e6060: use the correct InitReady bit net: dsa: mv88e6060: use the correct MaxFrameSize bit net: dsa: mv88e6060: use the correct bit shift for mac0 net: dsa: mv88e6060: add register defines header file net

[PATCH 6/6] net: dsa: mv88e6060: replace magic values with register defines

2015-11-10 Thread Neil Armstrong
To align with the mv88e6xxx code, use the register defines to access all the register addresses and bit fields. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/dsa/mv88e6060.c | 64 ++--- 1 file changed, 37 insertions(

[PATCH 3/6] net: dsa: mv88e6060: use the correct MaxFrameSize bit

2015-11-10 Thread Neil Armstrong
According to the mv88e6060 datasheet, the MaxFrameSize bit position is 10 instead of 11 which is reserved. Use the bit correctly to setup max frame size to 1536. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/dsa/mv88e6060.c | 2 +- 1 file changed, 1 insertion

[PATCH 4/6] net: dsa: mv88e6060: use the correct bit shift for mac0

2015-11-10 Thread Neil Armstrong
According to the mv88e6060 datasheet, the first mac byte must be at position 9 instead of 8 since the bit 8 is used to select if the mac address must differ for each port for Pause frames. Use the correct shift and set the same mac address for all port. Signed-off-by: Neil Armstrong <narm

[PATCH 2/6] net: dsa: mv88e6060: use the correct InitReady bit

2015-11-10 Thread Neil Armstrong
According to the mv88e6060 datasheet, the InitReady bit position is 11 and the polarity is inverted. Use the bit correctly to detect the end of initialization. Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> --- drivers/net/dsa/mv88e6060.c | 2 +- 1 file changed, 1 insertion

  1   2   >