]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
sky2: Increase D3 delay to sky2 stops working after suspend
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Sat, 31 Mar 2018 15:42:03 +0000 (23:42 +0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 12 Apr 2018 13:06:47 +0000 (10:06 -0300)
BugLink: http://bugs.launchpad.net/bugs/1763366
[ Upstream commit afb133637071be6deeb8b3d0e55593ffbf63c527 ]

The sky2 ethernet stops working after system resume from suspend:
[ 582.852065] sky2 0000:04:00.0: Refused to change power state, currently in D3

The current 150ms delay is not enough, change it to 200ms can solve the
issue.

BugLink: https://bugs.launchpad.net/bugs/1758507
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/ethernet/marvell/sky2.c

index 9efe1771423cdde9b7832042b61f3ac60b347123..523e1108c9dfa3c223721777fd1abdf335db26f0 100644 (file)
@@ -5087,7 +5087,7 @@ static int sky2_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        INIT_WORK(&hw->restart_work, sky2_restart);
 
        pci_set_drvdata(pdev, hw);
-       pdev->d3_delay = 150;
+       pdev->d3_delay = 200;
 
        return 0;