r8169: add handling DASH when DASH is disabled
authorChunHao Lin <hau@realtek.com>
Thu, 9 Nov 2023 17:33:59 +0000 (01:33 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Nov 2023 05:00:07 +0000 (21:00 -0800)
commit0ab0c45d8aaea5192328bfa6989673aceafc767c
tree16691a1d79c743774889add0abfb1825a65f022e
parent334e90b8d74f83b8cbe5c9b606d1690858b4897b
r8169: add handling DASH when DASH is disabled

For devices that support DASH, even DASH is disabled, there may still
exist a default firmware that will influence device behavior.
So driver needs to handle DASH for devices that support DASH, no
matter the DASH status is.

This patch also prepares for "fix network lost after resume on DASH
systems".

Fixes: ee7a1beb9759 ("r8169:call "rtl8168_driver_start" "rtl8168_driver_stop" only when hardware dash function is enabled")
Cc: stable@vger.kernel.org
Signed-off-by: ChunHao Lin <hau@realtek.com>
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/20231109173400.4573-2-hau@realtek.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c