BACKPORT: net: phy: dp83867: allow RGMII_TXID/RGMII_RXID interface types
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Fri, 13 Jan 2017 14:32:34 +0000 (09:32 -0500)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 31 May 2017 03:07:21 +0000 (11:07 +0800)
commit7e2eb0d903b808889e90ce87513219124cda9b37
tree40b9ff4ac9e9598c5c701000ca2a87f56a018282
parentd0b81f9d48dccc0c2a97ee12f003bb8eca3fbe2c
BACKPORT: net: phy: dp83867: allow RGMII_TXID/RGMII_RXID interface types

Currently dp83867 driver returns error if phy interface type
PHY_INTERFACE_MODE_RGMII_RXID is used to set the rx only internal
delay. Similarly issue happens for PHY_INTERFACE_MODE_RGMII_TXID.
Fix this by checking also the interface type if a particular delay
value is missing in the phy dt bindings. Also update the DT document
accordingly.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 34c55cf2fc75f8bf6ba87df321038c064cf2d426)
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Change-Id: Ideca1aae2512f0ee2944bc751e47436d8d1746b6
Documentation/devicetree/bindings/net/ti,dp83867.txt
drivers/net/phy/dp83867.c