Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'gpio-v4.12-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio

Pull last minute fixes for GPIO from Linus Walleij:

- Fix another ACPI problem with broken BIOSes.

- Filter out the right GPIO events, making a very user-visible bug go
away.

* tag 'gpio-v4.12-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
gpio: acpi: Skip _AEI entries without a handler rather then aborting the scan
gpiolib: fix filtering out unwanted events

+3 -2
+1 -1
drivers/gpio/gpiolib-acpi.c
··· 201 201 handler = acpi_gpio_irq_handler_evt; 202 202 } 203 203 if (!handler) 204 - return AE_BAD_PARAMETER; 204 + return AE_OK; 205 205 206 206 pin = acpi_gpiochip_pin_to_gpio_offset(chip->gpiodev, pin); 207 207 if (pin < 0)
+2 -1
drivers/gpio/gpiolib.c
··· 708 708 709 709 ge.timestamp = ktime_get_real_ns(); 710 710 711 - if (le->eflags & GPIOEVENT_REQUEST_BOTH_EDGES) { 711 + if (le->eflags & GPIOEVENT_REQUEST_RISING_EDGE 712 + && le->eflags & GPIOEVENT_REQUEST_FALLING_EDGE) { 712 713 int level = gpiod_get_value_cansleep(le->desc); 713 714 714 715 if (level)