• Marek Behún's avatar
    net: sfp: rework the RollBall PHY waiting code · 2f3ce7a5
    Marek Behún authored
    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: default avatarMarek Behún <kabel@kernel.org>
    Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2f3ce7a5
sfp.c 77.1 KB