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
..
2018-08-25 18:13:10 -07:00
2018-08-08 11:05:47 +02:00
2018-08-24 13:20:33 -07:00
2018-08-18 11:04:51 -07:00
2018-08-18 11:44:53 -07:00
2018-08-26 11:48:42 -07:00
2018-08-21 16:56:20 +02:00
2018-08-23 13:52:46 -07:00
2018-08-02 15:22:39 -06:00
2018-08-20 16:30:27 -07:00
2018-08-23 13:52:46 -07:00
2018-08-19 09:56:38 -07:00
2018-08-23 13:52:46 -07:00
2018-08-22 07:42:36 -07:00
2018-08-23 19:20:12 -07:00
2018-08-25 18:43:59 -07:00
2018-08-18 11:04:51 -07:00
2018-08-26 11:48:42 -07:00
2018-08-17 15:13:34 +02:00
2018-08-17 16:20:27 -07:00
2018-08-23 15:44:58 -07:00
2018-08-08 15:44:47 +10:00
2018-08-20 15:38:44 -07:00
2018-08-26 11:48:42 -07:00
2018-08-20 15:59:01 -07:00
2018-08-02 10:20:59 +02:00
2018-08-23 13:52:46 -07:00
2018-07-30 20:54:51 -07:00
2018-08-23 18:48:43 -07:00
2018-08-24 17:26:43 +02:00
2018-08-22 07:40:33 -07:00
2018-08-23 18:48:43 -07:00
2018-08-23 15:34:48 -07:00
2018-08-23 13:44:43 -07:00
2018-08-25 14:12:36 -07:00
2018-08-26 09:55:28 -07:00
2018-08-16 12:26:24 -07:00
2018-08-06 23:03:12 +02:00
2018-08-24 14:42:42 +02:00
2018-08-15 09:53:07 +05:30
2018-08-25 18:13:10 -07:00
2018-08-26 11:48:42 -07:00
2018-08-23 13:52:46 -07:00
2018-07-30 23:17:53 -04:00
2018-08-21 17:40:46 -07:00
2018-08-26 11:48:42 -07:00
2018-08-09 14:47:05 +01:00
2018-08-23 15:58:04 -07:00
2018-08-02 10:23:02 +02:00
2018-08-29 22:09:01 -07:00
2018-08-25 18:43:59 -07:00
2018-08-16 14:21:29 -06:00
2018-08-15 15:04:25 -07:00
2018-08-18 11:04:51 -07:00
2018-08-22 12:34:08 -07:00
2018-08-18 12:30:42 -07:00
2018-08-18 11:04:51 -07:00
2018-07-30 10:04:58 +02:00
2018-08-20 15:38:44 -07:00
2018-08-22 14:14:15 -07:00
2018-08-23 18:48:43 -07:00
2018-08-18 11:04:51 -07:00
2018-08-20 11:36:07 +02:00
2018-08-22 10:52:51 -07:00
2018-08-20 15:38:44 -07:00
2018-08-16 17:39:55 -07:00
2018-08-25 14:12:36 -07:00
2018-07-30 23:40:23 -07:00
2018-08-20 16:30:27 -07:00
2018-08-25 18:13:10 -07:00
2018-08-26 11:48:42 -07:00
2018-08-02 13:54:06 +02:00
2018-08-23 14:02:22 -07:00
2018-08-18 16:45:27 -07:00
2018-08-09 18:47:47 +03:00
2018-08-23 13:52:46 -07:00
2018-08-26 11:48:42 -07:00
2018-08-23 13:52:46 -07:00
2018-08-24 13:03:51 -07:00
2018-08-24 09:34:23 -07:00
2018-08-19 09:30:44 -07:00
2018-08-23 13:52:46 -07:00
2018-08-17 11:32:50 -07:00
2018-08-27 11:59:39 -07:00
2018-08-23 15:44:58 -07:00
2018-08-24 08:45:19 -07:00
2018-08-21 18:06:27 -07:00
2018-08-22 17:31:34 -07:00
2018-08-23 14:52:23 -07:00
2018-08-18 11:04:51 -07:00