Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2024 13:38:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 280290] hms(4): Broken fresh after boot, fixed by resume
Message-ID:  <bug-280290-227-z4Ql9aTFMS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-280290-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-280290-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280290

--- Comment #24 from Edward Tomasz Napierala <trasz@FreeBSD.org> ---
Hah, good call with that ACPI thing.  This patch fixes it for me:

diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c
index fc9f5c2a68b3..03b951b22878 100644
--- a/sys/dev/iicbus/iichid.c
+++ b/sys/dev/iicbus/iichid.c
@@ -1207,6 +1207,13 @@ iichid_attach(device_t dev)
 done:
        (void)iichid_set_power(sc, I2C_HID_POWER_OFF);
        sc->power_on =3D false;
+
+       error =3D iichid_set_power_state(sc, IICHID_PS_NULL, IICHID_PS_ON);
+       if (error !=3D 0)
+               DPRINTF(sc, "Could not set power_state, error: %d\n", error=
);
+       else
+               DPRINTF(sc, "Successfully set power_state\n");
+
        return (error);
 }

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280290-227-z4Ql9aTFMS>