]> git.baikalelectronics.ru Git - kernel.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)
commit9e817252aa02d25d5be28e63a3430de0975170c9
treed17182807436d01f8dc85d1e86a665d4e37aebc5
parent2267e6eedb25619efa2f1406c3761bf38f289300
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