diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2022-08-31 15:14:02 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2022-08-31 15:14:02 +0000 |
commit | b935f588d2a0b7de4db6488977d845abdc40ae50 (patch) | |
tree | 0ababb3628607971d41aa6d61159c71b41dbc408 /sys/dev/acpi | |
parent | 1bc87fb737eed8fa195295d4703afc27df958910 (diff) |
Introduce iic_intr_disestablish() and use it in ihidev(4).
ok jcs@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/dwiic_acpi.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/acpi/dwiic_acpi.c b/sys/dev/acpi/dwiic_acpi.c index 23b427b2bb4..ad8b9776116 100644 --- a/sys/dev/acpi/dwiic_acpi.c +++ b/sys/dev/acpi/dwiic_acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwiic_acpi.c,v 1.19 2022/04/06 18:59:27 naddy Exp $ */ +/* $OpenBSD: dwiic_acpi.c,v 1.20 2022/08/31 15:14:01 kettenis Exp $ */ /* * Synopsys DesignWare I2C controller * @@ -173,6 +173,7 @@ dwiic_acpi_attach(struct device *parent, struct device *self, void *aux) sc->sc_i2c_tag.ic_release_bus = dwiic_i2c_release_bus; sc->sc_i2c_tag.ic_exec = dwiic_i2c_exec; sc->sc_i2c_tag.ic_intr_establish = dwiic_i2c_intr_establish; + sc->sc_i2c_tag.ic_intr_disestablish = dwiic_i2c_intr_disestablish; sc->sc_i2c_tag.ic_intr_string = dwiic_i2c_intr_string; bzero(&sc->sc_iba, sizeof(sc->sc_iba)); @@ -312,6 +313,13 @@ dwiic_i2c_intr_establish(void *cookie, void *ih, int level, level, func, arg, name); } +void +dwiic_i2c_intr_disestablish(void *cookie, void *ih) +{ + /* XXX GPIO interrupts */ + acpi_intr_disestablish(ih); +} + const char * dwiic_i2c_intr_string(void *cookie, void *ih) { |