]> asedeno.scripts.mit.edu Git - linux.git/commit
net: phy: dp83867: Add rx-fifo-depth and tx-fifo-depth
authorDan Murphy <dmurphy@ti.com>
Mon, 9 Dec 2019 20:10:25 +0000 (14:10 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2019 04:19:10 +0000 (20:19 -0800)
commite02d18161e9707d9ca6b04da8f4cf9e1c345d0b8
treed17182807436d01f8dc85d1e86a665d4e37aebc5
parent96ae38af9d2992073f553d14d3a85f3e4ad56250
net: phy: dp83867: Add rx-fifo-depth and tx-fifo-depth

This code changes the TI specific ti,fifo-depth to the common
tx-fifo-depth property.  The tx depth is applicable for both RGMII and
SGMII modes of operation.

rx-fifo-depth was added as well but this is only applicable for SGMII
mode.

So in summary
if RGMII mode write tx fifo depth only
if SGMII mode write both rx and tx fifo depths

If the property is not populated in the device tree then set the value
to the default values.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c