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-fixes-for-v6.10-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull gpio fixes from Bartosz Golaszewski:
"Two OF lookup quirks and one fix for an issue in the generic gpio-mmio
driver:

- add two OF lookup quirks for TSC2005 and MIPS Lantiq

- don't try to figure out bgpio_bits from the 'ngpios' property in
gpio-mmio"

* tag 'gpio-fixes-for-v6.10-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
gpiolib: of: add polarity quirk for TSC2005
gpio: mmio: do not calculate bgpio_bits via "ngpios"
gpiolib: of: fix lookup quirk for MIPS Lantiq

+20 -4
-2
drivers/gpio/gpio-mmio.c
··· 619 619 ret = gpiochip_get_ngpios(gc, dev); 620 620 if (ret) 621 621 gc->ngpio = gc->bgpio_bits; 622 - else 623 - gc->bgpio_bits = roundup_pow_of_two(round_up(gc->ngpio, 8)); 624 622 625 623 ret = bgpio_setup_io(gc, dat, set, clr, flags); 626 624 if (ret)
+20 -2
drivers/gpio/gpiolib-of.c
··· 203 203 */ 204 204 { "qi,lb60", "rb-gpios", true }, 205 205 #endif 206 + #if IS_ENABLED(CONFIG_PCI_LANTIQ) 207 + /* 208 + * According to the PCI specification, the RST# pin is an 209 + * active-low signal. However, most of the device trees that 210 + * have been widely used for a long time incorrectly describe 211 + * reset GPIO as active-high, and were also using wrong name 212 + * for the property. 213 + */ 214 + { "lantiq,pci-xway", "gpio-reset", false }, 215 + #endif 216 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_TSC2005) 217 + /* 218 + * DTS for Nokia N900 incorrectly specified "active high" 219 + * polarity for the reset line, while the chip actually 220 + * treats it as "active low". 221 + */ 222 + { "ti,tsc2005", "reset-gpios", false }, 223 + #endif 206 224 }; 207 225 unsigned int i; 208 226 ··· 522 504 { "reset", "reset-n-io", "marvell,nfc-uart" }, 523 505 { "reset", "reset-n-io", "mrvl,nfc-uart" }, 524 506 #endif 525 - #if !IS_ENABLED(CONFIG_PCI_LANTIQ) 507 + #if IS_ENABLED(CONFIG_PCI_LANTIQ) 526 508 /* MIPS Lantiq PCI */ 527 - { "reset", "gpios-reset", "lantiq,pci-xway" }, 509 + { "reset", "gpio-reset", "lantiq,pci-xway" }, 528 510 #endif 529 511 530 512 /*