openwrt/target/linux/lantiq
Martin Schiller cffd3ad8d7 lantiq: add patch to fix the reset gpio handling in the pci driver
Linux kernel commit 90c2d2eb7ab5 ("MIPS: pci: lantiq: switch to using
gpiod API") not only switched to the gpiod API, but also inverted /
changed the polarity of the GPIO.

According to the PCI specification, the RST# pin is an active-low
signal. However, most of the device trees that have been widely used for
a long time (mainly in the openWrt project) define this GPIO as
active-high and the old driver code inverted the signal internally.

Apparently there are actually boards where the reset gpio must be
operated inverted. For this reason, we cannot use the GPIOD_OUT_LOW/HIGH
flag for initialization. Instead, we must explicitly set the gpio to
value 1 in order to take into account any "GPIO_ACTIVE_LOW" flag that
may have been set.

In order to remain compatible with all these existing device trees, we
should therefore keep the logic as it was before the commit.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2024-05-15 08:54:58 +02:00
..
ase kernel/lantiq: Restore kernel files for v5.15 2024-05-15 08:54:58 +02:00
base-files
falcon kernel/lantiq: Restore kernel files for v5.15 2024-05-15 08:54:58 +02:00
files lantiq: dts: add missing irqs to mei node on AmazonSE, Danube and AR9 2024-05-15 08:54:58 +02:00
image
patches-5.15 lantiq: vmmc kernel-in-tree driver: use platform_get_irq to get irqs 2024-05-15 08:54:58 +02:00
patches-6.1 lantiq: add patch to fix the reset gpio handling in the pci driver 2024-05-15 08:54:58 +02:00
xrx200 lantiq: Refresh patches and configuration 2024-05-15 08:54:58 +02:00
xway lantiq: Refresh patches and configuration 2024-05-15 08:54:58 +02:00
xway_legacy kernel/lantiq: Restore kernel files for v5.15 2024-05-15 08:54:58 +02:00
Makefile lantiq: set Linux 6.1 as testing kernel 2024-05-15 08:54:58 +02:00
config-5.15 kernel/lantiq: Restore kernel files for v5.15 2024-05-15 08:54:58 +02:00
config-6.1 lantiq: Refresh patches and configuration 2024-05-15 08:54:58 +02:00
modules.mk