diff options
author | 2023-11-21 18:20:24 +0100 | |
---|---|---|
committer | 2023-11-25 19:17:28 +0000 | |
commit | 2f3ce7a56c6e02bc0b258507f3a82b7511f62f9e (patch) | |
tree | 3896bdd94f2a28dda94703397400ed531144ad01 /mm/page_alloc.c | |
parent | Merge branch 'firmware_loader' (diff) | |
download | wireguard-linux-2f3ce7a56c6e02bc0b258507f3a82b7511f62f9e.tar.xz wireguard-linux-2f3ce7a56c6e02bc0b258507f3a82b7511f62f9e.zip |
net: sfp: rework the RollBall PHY waiting code
RollBall SFP modules allow the access to PHY registers only after a
certain time has passed. Until then, the registers read 0xffff.
Currently we have quirks for modules where we need to wait either 25
seconds or 4 seconds, but recently I got hands on another module where
the wait is even shorter.
Instead of hardcoding different wait times, lets rework the code:
- increase the PHY retry count to 25
- when RollBall module is detected, increase the PHY retry time from
50ms to 1s
Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions