diff options
| author | Stefan Roese <[email protected]> | 2023-01-25 08:09:08 +0100 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2023-01-27 08:47:37 +0100 |
| commit | a33ad8051e0fdcc2af34259006c470899ad8cd77 (patch) | |
| tree | ee0cd91187aba953b6375d5d819d9149bf4fe554 /scripts/env2string.awk | |
| parent | b387c258240c761f61fbcd0c9b33039275219002 (diff) | |
net: zynq_gem: Wait for SGMII PCS link in zynq_gem_init()
In our system using ZynqMP with an external SGMII PHY it's necessary
to wait for the PCS link and auto negotiation to finish before the xfer
starts. Otherwise the first packet(s) might get dropped, resulting in a
delay at the start of the ethernet transfers.
This is only done when the PHY link is already up, which is done in
phy_startup(). As waiting for the PHY link bits via pcsstatus does not
make much sense, when the link is not available in general (e.g. no
cable connected).
This patch adds the necessary code including a minimal delay of 1 ms
which fixes problems of dropped first packages.
Signed-off-by: Stefan Roese <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Katakam Harini <[email protected]>
Cc: Ramon Fried <[email protected]>
Cc: Sean Anderson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'scripts/env2string.awk')
0 files changed, 0 insertions, 0 deletions
