]> 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)
commitaa81f8e3b82b5e0c4578a86f2ec4f1dbc689d6ce
treed17182807436d01f8dc85d1e86a665d4e37aebc5
parentb0393c5a8d613ce902ce2ff286ad6a8d8ca4c3f2
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