]> 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)
commit26e1766c2d9c94ff908e2d8af5546da5587afb7a
tree46cf4ff20c6eaadfd22eb9473503ab8741895ae1
parent450be0e51d34d11ca2d15a19934671eb58b44478
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: 8c1f72d9aba0 ("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