]> git.baikalelectronics.ru Git - uboot.git/commit
net: phy: ti: Use default values for tx/rx delay and fifo size
authorTrent Piepho <tpiepho@impinj.com>
Thu, 9 May 2019 19:41:51 +0000 (19:41 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Jul 2019 18:32:25 +0000 (13:32 -0500)
commit25cf710d31a3c0bb1ba01aa3779e7667633ee431
treeaa4c45bd66bacd6dce6d4e5703e1249bfb77fdcd
parent763345d63b0ae4bcd9410968c6b38cbcae60f633
net: phy: ti: Use default values for tx/rx delay and fifo size

When not using DM_ETH, these PHY settings are programmed with default
values hardcoded into the driver.  When using DM_ETH, they should come
from the device tree.  However, if the device tree does not have the
properties, the driver will silent use -1.  Which is entirely out of
range, programs nonsense into the PHY's registers, and does not work.

Change this to use the same defaults as non-DM_ETH if the device tree is
lacking the properties.

As an alternative, the kernel driver for the phy will display an error
message and fail if the device tree is lacking.

Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Janine Hagemann <j.hagemann@phytec.de>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/ti.c