]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commite2a54350dc9642e7dfc07335ca355581caa9dbfe
tree46cf4ff20c6eaadfd22eb9473503ab8741895ae1
parent8eab9be56cc6b702a445d2b6d0256aa0992316b3
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: 4dc08dcc9f6f ("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