From b277ca6fbaa2aaaab5ad76d9a7ae8bcfaee83215 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 17 Aug 2024 02:14:22 +0000 Subject: dwiic resume is almost exclusively a "hardware state restore", and not a "restart transaction", so the job should get done at DVACT_RESUME time. ok kettenis mlarkin --- sys/dev/ic/dwiic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/dwiic.c') diff --git a/sys/dev/ic/dwiic.c b/sys/dev/ic/dwiic.c index abe043cc308..cb2f986cc29 100644 --- a/sys/dev/ic/dwiic.c +++ b/sys/dev/ic/dwiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwiic.c,v 1.17 2024/08/16 15:27:11 deraadt Exp $ */ +/* $OpenBSD: dwiic.c,v 1.18 2024/08/17 02:14:20 deraadt Exp $ */ /* * Synopsys DesignWare I2C controller * @@ -43,7 +43,7 @@ dwiic_activate(struct device *self, int act) dwiic_write(sc, DW_IC_INTR_MASK, 0); dwiic_read(sc, DW_IC_CLR_INTR); break; - case DVACT_WAKEUP: + case DVACT_RESUME: dwiic_init(sc); break; } -- cgit v1.2.3