diff options
author | Joshua Stein <jcs@cvs.openbsd.org> | 2019-07-31 16:09:13 +0000 |
---|---|---|
committer | Joshua Stein <jcs@cvs.openbsd.org> | 2019-07-31 16:09:13 +0000 |
commit | 0548bf75ac7da04481038acf1a66a1560592f3a4 (patch) | |
tree | 712b294b0e815d62c25aebd39ef86533212da6f2 /sys/dev | |
parent | 12e7c79b5b58258b924010a925677b82ad01f71d (diff) |
ihidev: continue doing polling when interrupt setup fails
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/i2c/ihidev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/ihidev.c b/sys/dev/i2c/ihidev.c index 686d9f3986a..f60db492f07 100644 --- a/sys/dev/i2c/ihidev.c +++ b/sys/dev/i2c/ihidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ihidev.c,v 1.20 2019/07/22 14:37:06 jcs Exp $ */ +/* $OpenBSD: ihidev.c,v 1.21 2019/07/31 16:09:12 jcs Exp $ */ /* * HID-over-i2c driver * @@ -129,7 +129,7 @@ ihidev_attach(struct device *parent, struct device *self, void *aux) printf(", can't establish interrupt"); } - if (ia->ia_poll) { + if (ia->ia_poll || !sc->sc_ih) { printf(" (polling)"); sc->sc_poll = 1; sc->sc_fastpoll = 1; |