openwrt/target/linux/lantiq/patches-6.1
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
..
0001-MIPS-lantiq-add-pcie-driver.patch
0002-MIPS-pci-lantiq-restore-reset-gpio-polarity.patch lantiq: add patch to fix the reset gpio handling in the pci driver 2024-05-15 08:54:58 +02:00
0004-MIPS-lantiq-add-atm-hack.patch
0008-MIPS-lantiq-backport-old-timer-code.patch lantiq: old gptu timer driver: use platform_get_irq to get irqs 2024-05-15 08:54:58 +02:00
0018-MTD-nand-lots-of-xrx200-fixes.patch
0020-MTD-lantiq-handle-NO_XIP-on-cfi0001-flash.patch
0023-NET-PHY-add-led-support-for-intel-xway.patch
0028-NET-lantiq-various-etop-fixes.patch
0031-I2C-MIPS-lantiq-add-FALC-ON-i2c-bus-master.patch
0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
0042-arch-mips-increase-io_space_limit.patch
0050-USB-DWC2-make-the-lantiq-settings-match-vendor-drive.patch
0051-MIPS-lantiq-improve-USB-initialization.patch
0101-find_active_root.patch
0151-lantiq-ifxmips_pcie-use-of.patch lantiq: ifxmips_pcie: use platform_get_irq to get irqs from dts 2024-05-15 08:54:58 +02:00
0152-lantiq-VPE.patch
0154-lantiq-pci-bar11mask-fix.patch
0155-lantiq-VPE-nosmp.patch
0160-owrt-lantiq-multiple-flash.patch
0200-MIPS-lantiq-xway-vmmc-use-platform_get_irq-to-get-ir.patch lantiq: vmmc kernel-in-tree driver: use platform_get_irq to get irqs 2024-05-15 08:54:58 +02:00
0300-MTD-cfi-cmdset-0001-disable-buffered-writes.patch
0301-xrx200-add-gphy-clk-src-device-tree-binding.patch
0302-mtd-cfi_cmdset_0001-Disable-write-buffer-functions-i.patch
0400-mtd-rawnand-xway-don-t-yield-while-holding-spinlock.patch
0701-NET-lantiq-etop-of-mido.patch
0731-dt-bindings-net-dsa-lantiq_gswip-Add-missing-phy-mod.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0732-net-dsa-lantiq_gswip-Only-allow-phy-mode-internal-on.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0733-net-dsa-lantiq_gswip-Use-dev_err_probe-where-appropr.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0734-net-dsa-lantiq_gswip-Don-t-manually-call-gswip_port_.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0735-net-dsa-lantiq_gswip-do-also-enable-or-disable-cpu-p.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0736-net-dsa-lantiq_gswip-Use-dsa_is_cpu_port-in-gswip_po.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0737-net-dsa-lantiq_gswip-Change-literal-6-to-ETH_ALEN.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0738-net-dsa-lantiq_gswip-Consistently-use-macros-for-the.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0739-net-dsa-lantiq_gswip-Forbid-gswip_add_single_port_br.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0740-net-dsa-lantiq_gswip-Fix-error-message-in-gswip_add_.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0741-net-dsa-lantiq_gswip-Fix-comments-in-gswip_port_vlan.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0742-net-dsa-lantiq_gswip-Add-and-use-a-GSWIP_TABLE_MAC_B.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00
0743-net-dsa-lantiq_gswip-Improve-error-message-in-gswip_.patch lantiq: Add some gswip patches 2024-05-15 08:54:58 +02:00