]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: dp83867: Fix SGMII FIFO depth for non OF devices
authorMichael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Thu, 10 Nov 2022 05:49:38 +0000 (13:49 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 12 Nov 2022 03:58:44 +0000 (19:58 -0800)
commit2e0c055bbc0547f1519252eaa8db25bd640604de
tree46cf4ff20c6eaadfd22eb9473503ab8741895ae1
parent69e56a98ae71329b571446613468a676d2aad369
net: phy: dp83867: Fix SGMII FIFO depth for non OF devices

Current driver code will read device tree node information,
and set default values if there is no info provided.

This is not done in non-OF devices leading to SGMII fifo depths being
set to the smallest size.

This patch sets the value to the default value of the PHY as stated in the
PHY datasheet.

Fixes: 8b3bbd216266 ("net: phy: dp83867: introduce critical chip default init for non-of platform")
Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20221110054938.925347-1-michael.wei.hong.sit@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/dp83867.c