From 0548bf75ac7da04481038acf1a66a1560592f3a4 Mon Sep 17 00:00:00 2001 From: Joshua Stein Date: Wed, 31 Jul 2019 16:09:13 +0000 Subject: ihidev: continue doing polling when interrupt setup fails --- sys/dev/i2c/ihidev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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; -- cgit v1.2.3