• A
    MCS7830 USB-Ether: resume _with_ working link, via .reset_resume support · ace2a4d0
    Andreas Mohr 提交于
    ChangeLog:
    Implement .reset_resume support to retain a live network connection
    during suspend despite USB power loss.
    - rework operation to reference cached data in mcs7830_data and
      netdev->dev_addr
    - update netdev->dev_addr only in case new MAC was set successfully
    . Tests done:
      . ethtool -d pre-/post-suspend: register values match
      . running ssh session suspend, resume: works
      . ifdown device, suspend, resume: works
      . ifup, suspend, unplug, resume: WORKS (eth1 is removed, re-ifup of eth1
        after card replug works)
      . verified identical MAC in ifconfig post-resume
        (ok, should be verified on network side to be fully certain...)
    
    Keywords: suspend resume network connection dead interface down
    Signed-off-by: NAndreas Mohr <andi@lisas.de>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    ace2a4d0
mcs7830.c 17.8 KB