]> git.baikalelectronics.ru Git - kernel.git/commit
phy dp83867: Make rgmii parameters optional
authorAlexander Graf <agraf@suse.de>
Mon, 16 May 2016 18:52:43 +0000 (20:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 18:31:09 +0000 (14:31 -0400)
commit36f25ed6e621163e55bf598b5930dd7e96380e5e
treeeb51d133e67c396f2c6c6f52deef7ff78e681ed0
parentb5e85d1f494c19481c4f1e7c38671710ee153ec9
phy dp83867: Make rgmii parameters optional

If you compile without OF_MDIO support in an RGMII configuration, we fail
to configure the dp83867 phy today by writing garbage into its configuration
registers.

On the other hand if you do compile with OF_MDIO and the phy gets loaded via
device tree, you have to have the properties set in the device tree, otherwise
we fail to load the driver and don't even attach the generic phy driver to
the interface anymore.

To make things slightly more consistent, make the rgmii configuration properties
optional and allow a user to omit them in their device tree.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c