[PATCH net-next v3 5/7] ARM: dts: at91: sama5d3: add an mdio sub-node to macb

2020-07-24 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu Reviewed-by: Florian Fainelli --- Changes in v3: - added tag from Florian Changes in v2: - none arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 1 file

[PATCH net-next v3 6/7] ARM: dts: at91: sama5d4: add an mdio sub-node to macb

2020-07-24 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu Reviewed-by: Florian Fainelli --- Changes in v3: - added tag from Florian Changes in v2: - none arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 1 file changed

[PATCH net-next v3 4/7] ARM: dts: at91: sama5d2: add an mdio sub-node to macb

2020-07-24 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu Reviewed-by: Florian Fainelli --- Changes in v3: - added tag from Florian Changes in v2: - none arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 16 ++-- arch/arm

[PATCH net-next v3 7/7] ARM: dts: at91: sam9x60: add an mdio sub-node to macb

2020-07-24 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu Reviewed-by: Florian Fainelli --- Changes in v3: - added tag from Florian Changes in v2: - none arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++-- 1 file changed, 6 insertions

[PATCH net-next v3 2/7] dt-bindings: net: macb: use an MDIO node as a container for PHY nodes

2020-07-24 Thread Codrin Ciubotariu
nodes). Signed-off-by: Codrin Ciubotariu Acked-by: Claudiu Beznea Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli --- Changes in v3: - Added tags from Claudiu, Rob and Florian Changes in v2: - patch renamed from "macb: bindings doc: use an MDIO node as a container for PHY nod

[PATCH net-next v3 1/7] net: macb: use device-managed devm_mdiobus_alloc()

2020-07-24 Thread Codrin Ciubotariu
Use the device-managed variant for the allocating the MDIO bus. This cleans-up the code a little on the remove and error paths. Signed-off-by: Codrin Ciubotariu Tested-by: Claudiu Beznea Acked-by: Claudiu Beznea Reviewed-by: Florian Fainelli --- Changes in v3: - added tags from Claudiu and

[PATCH net-next v3 0/7] Add an MDIO sub-node under MACB

2020-07-24 Thread Codrin Ciubotariu
de as a container for PHY nodes" to "dt-bindings: net: macb: use an MDIO node as a container for PHY nodes" - added back a newline removed by mistake in patch 3/7 Codrin Ciubotariu (7): net: macb: use device-managed devm_mdiobus_alloc() dt-bindings: net: macb: use an MDIO

[PATCH net-next v3 3/7] net: macb: parse PHY nodes found under an MDIO node

2020-07-24 Thread Codrin Ciubotariu
became deprecated, we adjust the MACB driver to look for an MDIO node and register the subnode MDIO devices. Signed-off-by: Codrin Ciubotariu --- Changes in v3: - moved the check for the mdio node at the beginnging of macb_mdiobus_register(). This way, the mdio devices will be probed even

[PATCH net-next v2 6/7] ARM: dts: at91: sama5d4: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91

[PATCH net-next v2 7/7] ARM: dts: at91: sam9x60: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b

[PATCH net-next v2 5/7] ARM: dts: at91: sama5d3: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none; arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH net-next v2 4/7] ARM: dts: at91: sama5d2: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 16 ++-- arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi | 17 ++--- arch/arm/boot/dts

[PATCH net-next v2 3/7] net: macb: parse PHY nodes found under an MDIO node

2020-07-21 Thread Codrin Ciubotariu
became deprecated, we adjust the MACB driver to look for an MDIO node and register the subnode MDIO devices. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - readded newline removed by mistake; drivers/net/ethernet/cadence/macb_main.c | 10 ++ 1 file changed, 10 insertions

[PATCH net-next v2 2/7] dt-bindings: net: macb: use an MDIO node as a container for PHY nodes

2020-07-21 Thread Codrin Ciubotariu
nodes). Signed-off-by: Codrin Ciubotariu --- Changes in v2: - patch renamed from "macb: bindings doc: use an MDIO node as a container for PHY nodes" to "dt-bindings: net: macb: use an MDIO node as a container for PHY nodes" Documentation/devicetree/bindings/net/macb.txt | 1

[PATCH net-next v2 1/7] net: macb: use device-managed devm_mdiobus_alloc()

2020-07-21 Thread Codrin Ciubotariu
Use the device-managed variant for the allocating the MDIO bus. This cleans-up the code a little on the remove and error paths. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none drivers/net/ethernet/cadence/macb_main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions

[PATCH net-next v2 0/7] Add an MDIO sub-node under MACB

2020-07-21 Thread Codrin Ciubotariu
r PHY nodes" to "dt-bindings: net: macb: use an MDIO node as a container for PHY nodes" - added back a newline removed by mistake in patch 3/7 Codrin Ciubotariu (7): net: macb: use device-managed devm_mdiobus_alloc() dt-bindings: net: macb: use an MDIO node as a container

[PATCH net-next 7/7] ARM: dts: at91: sam9x60: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91

[PATCH net-next 5/7] ARM: dts: at91: sama5d3: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts b

[PATCH net-next 6/7] ARM: dts: at91: sama5d4: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d4_xplained.dts b/arch

[PATCH net-next 4/7] ARM: dts: at91: sama5d2: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 16 ++-- arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi | 17 ++--- arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts

[PATCH net-next 3/7] net: macb: parse PHY nodes found under an MDIO node

2020-07-21 Thread Codrin Ciubotariu
became deprecated, we adjust the MACB driver to look for an MDIO node and register the subnode MDIO devices. Signed-off-by: Codrin Ciubotariu --- drivers/net/ethernet/cadence/macb_main.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence

[PATCH net-next 2/7] macb: bindings doc: use an MDIO node as a container for PHY nodes

2020-07-21 Thread Codrin Ciubotariu
nodes). Signed-off-by: Codrin Ciubotariu --- Documentation/devicetree/bindings/net/macb.txt | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt index 0b61a90f1592..88d5199

[PATCH net-next 0/7] Add an MDIO sub-node under MACB

2020-07-21 Thread Codrin Ciubotariu
bindings and adapt macb driver to parse the device-tree PHY nodes from under an MDIO node. The last patches add the MDIO node in the device-trees of sama5d2, sama5d3, samad4 and sam9x60 boards. Codrin Ciubotariu (7): net: macb: use device-managed devm_mdiobus_alloc() macb: bindings doc: use an

[PATCH net-next 1/7] net: macb: use device-managed devm_mdiobus_alloc()

2020-07-21 Thread Codrin Ciubotariu
Use the device-managed variant for the allocating the MDIO bus. This cleans-up the code a little on the remove and error paths. Signed-off-by: Codrin Ciubotariu --- drivers/net/ethernet/cadence/macb_main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net

[PATCH net-next v2 2/2] net: dsa: microchip: remove unused private members

2020-07-02 Thread Codrin Ciubotariu
Private structure members live_ports, on_ports, rx_ports, tx_ports are initialized but not used anywhere. Let's remove them. Suggested-by: Russell King Signed-off-by: Codrin Ciubotariu --- Changes in v2: - new patch, there was no v1 drivers/net/dsa/microchip/ksz8795.c

[PATCH net-next v2 1/2] net: dsa: microchip: split adjust_link() in phylink_mac_link_{up|down}()

2020-07-02 Thread Codrin Ciubotariu
The DSA subsystem moved to phylink and adjust_link() became deprecated in the process. This patch removes adjust_link from the KSZ DSA switches and adds phylink_mac_link_up() and phylink_mac_link_down(). Signed-off-by: Codrin Ciubotariu Reviewed-by: Russell King --- Changes in v2: - added

[PATCH net-next] net: dsa: microchip: split adjust_link() in phylink_mac_link_{up|down}()

2020-07-02 Thread Codrin Ciubotariu
The DSA subsystem moved to phylink and adjust_link() became deprecated in the process. This patch removes adjust_link from the KSZ DSA switches and adds phylink_mac_link_up() and phylink_mac_link_down(). Signed-off-by: Codrin Ciubotariu --- drivers/net/dsa/microchip/ksz8795.c| 3

[PATCH net] net: dsa: microchip: set the correct number of ports

2020-07-02 Thread Codrin Ciubotariu
known registers. Fixes: b987e98e50ab ("dsa: add DSA switch driver for Microchip KSZ9477") Signed-off-by: Codrin Ciubotariu --- drivers/net/dsa/microchip/ksz8795.c | 3 +++ drivers/net/dsa/microchip/ksz9477.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/dsa/microchip/ksz87

[PATCH 2/2] net: dsa: microchip: split adjust_link() in phylink_mac_link_{up|down}()

2020-07-01 Thread Codrin Ciubotariu
The DSA subsystem moved to phylink and adjust_link() became deprecated in the process. This patch removes adjust_link from the KSZ DSA switches and adds phylink_mac_link_up() and phylink_mac_link_down(). Signed-off-by: Codrin Ciubotariu --- drivers/net/dsa/microchip/ksz8795.c| 3

[PATCH 1/2] net: dsa: microchip: set the correct number of ports in dsa_switch

2020-07-01 Thread Codrin Ciubotariu
known registers. Fixes: b987e98e50ab ("dsa: add DSA switch driver for Microchip KSZ9477") Signed-off-by: Codrin Ciubotariu --- drivers/net/dsa/microchip/ksz8795.c| 7 +-- drivers/net/dsa/microchip/ksz9477.c| 7 +-- drivers/net/dsa/microchip/ks