net: mvpp2: make the phy optional
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Fri, 1 Sep 2017 09:04:53 +0000 (11:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Sep 2017 17:08:25 +0000 (10:08 -0700)
commit5997c86bf0e94f0b29f9ab416b1db62a8fa4e4eb
tree672c15c20884eae236cc32f943668f5e1acc6bb1
parent1df2270d06fa65c3479e713eb00eca25896db653
net: mvpp2: make the phy optional

There is not necessarily a PHY between the GoP and the physical port.
However, the driver currently makes the "phy" property mandatory,
contrary to what is stated in the device tree bindings. This patch makes
the PHY optional, and aligns the PPv2 driver on its device tree
documentation. However if a PHY is provided, the GoP link interrupt
won't be used.

With this patch switches directly connected to the serdes lanes and SFP
ports on the Armada 8040-db and Armada 7040-db can be used if the link
interrupt is described in the device tree.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Tested-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c