r8169: don't try to read counters if chip is in a PCI power-save state
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 6 Jan 2019 19:44:00 +0000 (20:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 20:40:31 +0000 (21:40 +0100)
commitd976151a51c8e3fd92d49f106430a92a4528ecd6
tree9d2bb16aa7402b28788edaa704db61d6addeb364
parent8dc262df0c6f304657a0d6db071a7287390307af
r8169: don't try to read counters if chip is in a PCI power-save state

[ Upstream commit 10262b0b53666cbc506989b17a3ead1e9c3b43b4 ]

Avoid log spam caused by trying to read counters from the chip whilst
it is in a PCI power-save state.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=107421

Fixes: 1ef7286e7f36 ("r8169: Dereference MMIO address immediately before use")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/r8169.c