Re: [PATCH v2] net: mvpp2: initialize port of_node pointer

2018-08-29 Thread David Miller
From: Baruch Siach Date: Wed, 29 Aug 2018 09:44:39 +0300 > 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

[PATCH v2] net: mvpp2: initialize port of_node pointer

2018-08-29 Thread Baruch Siach
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 _eth2 port: _mdio { ... switch0: