From bbf3b7bdf87669026ade4ad0fb6fefde331e68c9 Mon Sep 17 00:00:00 2001 From: hlh-restart Date: Sat, 19 Mar 2022 12:37:24 -0400 Subject: [PATCH] rtsx: Call rtsx_init() on resume. Approved by: re (gjb) (cherry picked from commit 1b1bab0078a7bbeb575942c4706a2abcd71d6022) (cherry picked from commit 205fa5f0a5cba5f9dc2ce9ef6c18a867bcd20e71) --- sys/dev/rtsx/rtsx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/rtsx/rtsx.c b/sys/dev/rtsx/rtsx.c index dffdbd2ca09..466e6a864ca 100644 --- a/sys/dev/rtsx/rtsx.c +++ b/sys/dev/rtsx/rtsx.c @@ -173,7 +173,7 @@ struct rtsx_softc { #define RTSX_RTL8411 0x5289 #define RTSX_RTL8411B 0x5287 -#define RTSX_VERSION "2.1d" +#define RTSX_VERSION "2.1e" static const struct rtsx_device { uint16_t vendor_id; @@ -3822,6 +3822,8 @@ rtsx_resume(device_t dev) { device_printf(dev, "Resume\n"); + rtsx_init(device_get_softc(dev)); + bus_generic_resume(dev); return (0);