now that suspend operations are done as quiesce, we can try to use
authorderaadt <deraadt@openbsd.org>
Mon, 19 Aug 2024 14:24:24 +0000 (14:24 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 19 Aug 2024 14:24:24 +0000 (14:24 +0000)
the MXT_T7_POWER_MODE_DEEP_SLEEP operation.

sys/dev/i2c/iatp.c

index 701289d..e18f800 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: iatp.c,v 1.10 2024/08/18 03:25:04 deraadt Exp $ */
+/* $OpenBSD: iatp.c,v 1.11 2024/08/19 14:24:24 deraadt Exp $ */
 /*
  * Atmel maXTouch i2c touchscreen/touchpad driver
  * Copyright (c) 2016 joshua stein <jcs@openbsd.org>
@@ -300,10 +300,7 @@ iatp_activate(struct device *self, int act)
        switch (act) {
        case DVACT_QUIESCE:
                rv = config_activate_children(self, act);
-#if 0
-               /* XXX: causes dwiic troubles */
                iatp_t7_set_power_mode(sc, MXT_T7_POWER_MODE_DEEP_SLEEP);
-#endif
                break;
        case DVACT_WAKEUP:
                sc->sc_busy = 1;