r8152: fix the RX FIFO settings when suspending
authorHayes Wang <hayeswang@realtek.com>
Thu, 18 Aug 2022 08:06:20 +0000 (16:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:16:38 +0000 (17:16 +0200)
commit2e8b65fda933ea518b524c6fb345d7f2e682dfac
tree9283e15f57394e0229452f37e04895f877c6f152
parent59cfae681ffb1800bff49b3c89c07244ce73d5d5
r8152: fix the RX FIFO settings when suspending

[ Upstream commit b75d612014447e04abdf0e37ffb8f2fd8b0b49d6 ]

The RX FIFO would be changed when suspending, so the related settings
have to be modified, too. Otherwise, the flow control would work
abnormally.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=216333
Reported-by: Mark Blakeney <mark.blakeney@bullet-systems.net>
Fixes: cdf0b86b250f ("r8152: fix a WOL issue")
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/r8152.c