[PATCH net v3 5/5] fsl/fman: fix eth hash table allocation

2020-08-03 Thread Florinel Iordache
n MAC support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_mac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_mac.h b/drivers/net/ethernet/freescale/fman/fman_mac.h index dd6d052..19f327e 10

[PATCH net v3 4/5] fsl/fman: check dereferencing null pointer

2020-08-03 Thread Florinel Iordache
Add a safe check to avoid dereferencing null pointer Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_dtsec.c | 4 ++-- drivers/net/ethernet/freescale/fman/fman_memac.c | 2 +- drivers/net/ethernet

[PATCH net v3 3/5] fsl/fman: fix unreachable code

2020-08-03 Thread Florinel Iordache
The parameter 'priority' is incorrectly forced to zero which ultimately induces logically dead code in the subsequent lines. Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_memac.c | 1

[PATCH net v3 0/5] DPAA FMan driver fixes

2020-08-03 Thread Florinel Iordache
Here are several fixes for the DPAA FMan driver. v2 changes: * corrected patch 4 by removing the line added by mistake * used longer fixes tags with the first 12 characters of the SHA-1 ID v3 changes: * remove the empty line inserted after fixes tag Florinel Iordache (5): fsl/fman: use 32-bit

[PATCH net v3 1/5] fsl/fman: use 32-bit unsigned integer

2020-08-03 Thread Florinel Iordache
sting to u16. Fixed by using an unsigned 32-bit integer since the value is truncated anyway in the end. Fixes: 414fd46e7762 ("fsl/fman: Add FMan support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH net v3 2/5] fsl/fman: fix dereference null return value

2020-08-03 Thread Florinel Iordache
Check before using returned value to avoid dereferencing null pointer. Fixes: 18a6c85fcc78 ("fsl/fman: Add FMan Port Support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_port.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH net v2 5/5] fsl/fman: fix eth hash table allocation

2020-07-31 Thread Florinel Iordache
n MAC support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_mac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_mac.h b/drivers/net/ethernet/freescale/fman/fman_mac.h index dd6d052..19f327e 10

[PATCH net v2 3/5] fsl/fman: fix unreachable code

2020-07-31 Thread Florinel Iordache
The parameter 'priority' is incorrectly forced to zero which ultimately induces logically dead code in the subsequent lines. Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_memac.c | 1

[PATCH net v2 1/5] fsl/fman: use 32-bit unsigned integer

2020-07-31 Thread Florinel Iordache
sting to u16. Fixed by using an unsigned 32-bit integer since the value is truncated anyway in the end. Fixes: 414fd46e7762 ("fsl/fman: Add FMan support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH net v2 4/5] fsl/fman: check dereferencing null pointer

2020-07-31 Thread Florinel Iordache
Add a safe check to avoid dereferencing null pointer Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_dtsec.c | 4 ++-- drivers/net/ethernet/freescale/fman/fman_memac.c | 2 +- drivers/net/ethernet

[PATCH net v2 2/5] fsl/fman: fix dereference null return value

2020-07-31 Thread Florinel Iordache
Check before using returned value to avoid dereferencing null pointer. Fixes: 18a6c85fcc78 ("fsl/fman: Add FMan Port Support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_port.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) di

[PATCH net v2 0/5] DPAA FMan driver fixes

2020-07-31 Thread Florinel Iordache
Here are several fixes for the DPAA FMan driver. v2 changes: * corrected patch 4 by removing the line added by mistake * used longer fixes tags with the first 12 characters of the SHA-1 ID Florinel Iordache (5): fsl/fman: use 32-bit unsigned integer fsl/fman: fix dereference null return

[PATCH net 2/5] fsl/fman: fix dereference null return value

2020-07-30 Thread Florinel Iordache
Check before using returned value to avoid dereferencing null pointer. Fixes: 18a6c85f ("fsl/fman: Add FMan Port Support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_port.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH net 1/5] fsl/fman: use 32-bit unsigned integer

2020-07-30 Thread Florinel Iordache
sting to u16. Fixed by using an unsigned 32-bit integer since the value is truncated anyway in the end. Fixes: 414fd46e ("fsl/fman: Add FMan support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) di

[PATCH net 3/5] fsl/fman: fix unreachable code

2020-07-30 Thread Florinel Iordache
The parameter 'priority' is incorrectly forced to zero which ultimately induces logically dead code in the subsequent lines. Fixes: 57ba4c9b ("fsl/fman: Add FMan MAC support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_memac.c | 1

[PATCH net 0/5] DPAA FMan driver fixes

2020-07-30 Thread Florinel Iordache
Here are several fixes for the DPAA FMan driver. Florinel Iordache (5): fsl/fman: use 32-bit unsigned integer fsl/fman: fix dereference null return value fsl/fman: fix unreachable code fsl/fman: check dereferencing null pointer fsl/fman: fix eth hash table allocation drivers/net

[PATCH net 5/5] fsl/fman: fix eth hash table allocation

2020-07-30 Thread Florinel Iordache
n MAC support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_mac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_mac.h b/drivers/net/ethernet/freescale/fman/fman_mac.h index dd6d052..19f327e 100644 ---

[PATCH net 4/5] fsl/fman: check dereferencing null pointer

2020-07-30 Thread Florinel Iordache
Add a safe check to avoid dereferencing null pointer Fixes: 57ba4c9b ("fsl/fman: Add FMan MAC support") Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_dtsec.c | 4 ++-- drivers/net/ethernet/freescale/fman/fman_memac.c | 3 ++- drivers/net/ethernet/free

RE: [EXT] Re: [PATCH net-next v3 7/7] arm64: dts: add serdes and mdio description

2020-06-29 Thread Florinel Iordache
> -Original Message- > From: Florian Fainelli > Sent: Friday, June 26, 2020 10:08 PM > To: Florinel Iordache ; da...@davemloft.net; > netdev@vger.kernel.org; and...@lunn.ch; hkallwe...@gmail.com; > li...@armlinux.org.uk > Cc: devicet...@vger.kernel.org; linux-...@vg

RE: [EXT] Re: [PATCH net-next v3 4/7] net: phy: add backplane kr driver support

2020-06-29 Thread Florinel Iordache
> -Original Message- > From: Florian Fainelli > Sent: Friday, June 26, 2020 10:05 PM > To: Florinel Iordache ; Andrew Lunn > > Cc: da...@davemloft.net; netdev@vger.kernel.org; hkallwe...@gmail.com; > li...@armlinux.org.uk; devicet...@vger.kernel.org; linux-...@vg

RE: [EXT] Re: [PATCH net-next v3 2/7] dt-bindings: net: add backplane dt bindings

2020-06-24 Thread Florinel Iordache
> -Original Message- > From: Florian Fainelli > Sent: Tuesday, June 23, 2020 1:21 AM > To: Florinel Iordache ; da...@davemloft.net; > netdev@vger.kernel.org; and...@lunn.ch; hkallwe...@gmail.com; > li...@armlinux.org.uk > Cc: devicet...@vger.kernel.org; linux-...@vg

RE: [EXT] Re: [PATCH net-next v3 4/7] net: phy: add backplane kr driver support

2020-06-22 Thread Florinel Iordache
> -Original Message- > From: Andrew Lunn > Sent: Monday, June 22, 2020 5:25 PM > To: Florinel Iordache > Cc: da...@davemloft.net; netdev@vger.kernel.org; f.faine...@gmail.com; > hkallwe...@gmail.com; li...@armlinux.org.uk; devicet...@vger.kernel.org; > linux-...@

Recall: [PATCH net-next v2 0/9] net: ethernet backplane support on DPAA1

2020-06-22 Thread Florinel Iordache
Florinel Iordache would like to recall the message, "[PATCH net-next v2 0/9] net: ethernet backplane support on DPAA1".

[PATCH net-next v3 0/7] net: ethernet backplane support on DPAA1

2020-06-22 Thread Florinel Iordache
n v2 that addressed all the feedback not related to PCS representation, are kept in v3 as well. Florinel Iordache (7): doc: net: add backplane documentation dt-bindings: net: add backplane dt bindings net: fman: add kr support for dpaa1 mac net: phy: add backplane kr driver support net:

[PATCH net-next v3 4/7] net: phy: add backplane kr driver support

2020-06-22 Thread Florinel Iordache
Add support for backplane kr generic driver including link training (ieee802.3ap/ba) and fixed equalization algorithm Signed-off-by: Florinel Iordache --- drivers/net/phy/Kconfig |2 + drivers/net/phy/Makefile |1 + drivers/net/phy/backplane/Kconfig

[PATCH net-next v3 5/7] net: phy: enable qoriq backplane support

2020-06-22 Thread Florinel Iordache
Enable backplane support for qoriq family of devices Signed-off-by: Florinel Iordache --- drivers/net/phy/backplane/Kconfig| 11 +- drivers/net/phy/backplane/Makefile | 2 + drivers/net/phy/backplane/qoriq_backplane.c | 473 ++ drivers/net/phy

[PATCH net-next v3 7/7] arm64: dts: add serdes and mdio description

2020-06-22 Thread Florinel Iordache
Add dt nodes with serdes, lanes, mdio generic description for supported platform: ls1046. This is a prerequisite to enable backplane on device tree for these platforms. Signed-off-by: Florinel Iordache --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 33 +- .../boot

[PATCH net-next v3 6/7] net: phy: add bee algorithm for kr training

2020-06-22 Thread Florinel Iordache
Add support for bee equalization algorithm used by kr training: 3-Taps Bit Edge Equalization (BEE) algorithm Signed-off-by: Florinel Iordache --- drivers/net/phy/backplane/Kconfig | 11 + drivers/net/phy/backplane/Makefile |1 + drivers/net/phy/backplane/eq_bee.c | 1076

[PATCH net-next v3 3/7] net: fman: add kr support for dpaa1 mac

2020-06-22 Thread Florinel Iordache
Add kr support in mac driver for dpaa1 Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/mac.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/mac.c b/drivers/net/ethernet/freescale/fman/mac.c index

[PATCH net-next v3 2/7] dt-bindings: net: add backplane dt bindings

2020-06-22 Thread Florinel Iordache
Add ethernet backplane device tree bindings Signed-off-by: Florinel Iordache --- .../bindings/net/ethernet-controller.yaml | 7 ++- .../devicetree/bindings/net/ethernet-phy.yaml | 50 ++ .../devicetree/bindings/net/serdes-lane.yaml | 49

[PATCH net-next v3 1/7] doc: net: add backplane documentation

2020-06-22 Thread Florinel Iordache
Add ethernet backplane documentation Signed-off-by: Florinel Iordache --- Documentation/networking/backplane.rst | 159 + Documentation/networking/phy.rst | 9 +- 2 files changed, 165 insertions(+), 3 deletions(-) create mode 100644 Documentation

[PATCH net-next v2 0/9] net: ethernet backplane support on DPAA1

2020-06-22 Thread Florinel Iordache
n v2 that addressed all the feedback not related to PCS representation, are kept in v3 as well. Florinel Iordache (7): doc: net: add backplane documentation dt-bindings: net: add backplane dt bindings net: fman: add kr support for dpaa1 mac net: phy: add backplane kr driver support net:

[PATCH net-next] fsl/fman: implement several errata workarounds

2017-08-10 Thread Florinel Iordache
Implemented workarounds for the following dTSEC Erratum: A002, A004, A0012, A0014, A004839 on several operations that involve MAC CFG register changes: adjust link, rx pause frames, modify MAC address. Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_dtsec.c | 118