Date: Fri, 19 Jun 2020 17:56:05 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r362395 - stable/12/usr.sbin/gpioctl Message-ID: <202006191756.05JHu5gK043768@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Fri Jun 19 17:56:05 2020 New Revision: 362395 URL: https://svnweb.freebsd.org/changeset/base/362395 Log: MFC r359805: gpioctl: Print interrupts capabilities GPIO drivers who supports interrupts report them in the caps (obtain via the getcaps method) but gpioctl doesn't know how to interpret this and print "UNKNOWN" for each one of them. Even if we don't have userland gpio interrupts support for now let gpioctl print the supported caps. Modified: stable/12/usr.sbin/gpioctl/gpioctl.c Directory Properties: stable/12/ (props changed) Modified: stable/12/usr.sbin/gpioctl/gpioctl.c ============================================================================== --- stable/12/usr.sbin/gpioctl/gpioctl.c Fri Jun 19 17:52:48 2020 (r362394) +++ stable/12/usr.sbin/gpioctl/gpioctl.c Fri Jun 19 17:56:05 2020 (r362395) @@ -62,6 +62,11 @@ static struct flag_desc gpio_flags[] = { { "II", GPIO_PIN_INVIN }, { "IO", GPIO_PIN_INVOUT }, { "PULSE", GPIO_PIN_PULSATE }, + { "INTRLL", GPIO_INTR_LEVEL_LOW}, + { "INTRLH", GPIO_INTR_LEVEL_HIGH}, + { "INTRER", GPIO_INTR_EDGE_RISING}, + { "INTREF", GPIO_INTR_EDGE_FALLING}, + { "INTREB", GPIO_INTR_EDGE_BOTH}, { NULL, 0 }, };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006191756.05JHu5gK043768>