linux_dsm_epyc7002/drivers/net/ethernet/marvell/mvpp2
Baruch Siach c4053ef322 net: mvpp2: initialize port of_node pointer
Without a valid of_node in struct device we can't find the mvpp2 port
device by its DT node. Specifically, this breaks
of_find_net_device_by_node().

For example, the Armada 8040 based Clearfog GT-8K uses Marvell 88E6141
switch connected to the &cp1_eth2 port:

&cp1_mdio {
	...

	switch0: switch0@4 {
		compatible = "marvell,mv88e6085";
		...

		ports {
			...

			port@5 {
				reg = <5>;
				label = "cpu";
				ethernet = <&cp1_eth2>;
			};
		};
	};
};

Without this patch, dsa_register_switch() returns -EPROBE_DEFER because
of_find_net_device_by_node() can't find the device_node of the &cp1_eth2
device.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-08-29 22:09:01 -07:00
..
Makefile net: mvpp2: add a debugfs interface for the Header Parser 2018-07-16 00:10:00 -07:00
mvpp2_cls.c net: mvpp2: debugfs: add classifier hit counters 2018-07-16 00:10:01 -07:00
mvpp2_cls.h net: mvpp2: debugfs: add classifier hit counters 2018-07-16 00:10:01 -07:00
mvpp2_debugfs.c net: mvpp2: debugfs: fix incorrect bitwise operator 2018-07-18 10:55:42 -07:00
mvpp2_main.c net: mvpp2: initialize port of_node pointer 2018-08-29 22:09:01 -07:00
mvpp2_prs.c net: mvpp2: debugfs: add hit counter stats for Header Parser entries 2018-07-16 00:10:01 -07:00
mvpp2_prs.h net: mvpp2: debugfs: add hit counter stats for Header Parser entries 2018-07-16 00:10:01 -07:00
mvpp2.h net: mvpp2: debugfs: add classifier hit counters 2018-07-16 00:10:01 -07:00