]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: add MikroTik suffix to the local GPIO latch driver
authorShiji Yang <yangshiji66@qq.com>
Sat, 16 Mar 2024 00:39:16 +0000 (08:39 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 9 May 2024 21:51:14 +0000 (23:51 +0200)
The upcoming 6.6 kernel will introduce a new upstream generic
"gpio-latch" driver. It will conflict with the downstream MikroTik
GPIO latch driver. Let's rename it to avoid any potential issues.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ath79/config-6.1
target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g.dtsi
target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c [moved from target/linux/ath79/files/drivers/gpio/gpio-latch.c with 98% similarity]
target/linux/ath79/mikrotik/config-default
target/linux/ath79/patches-6.1/911-mikrotik-rb91x.patch

index f2a6969aa1e5ddf9605cc7c750e4ccd595376f00..87f520228f93555fb8903a0abd152453a75a5d45 100644 (file)
@@ -81,7 +81,7 @@ CONFIG_GPIO_74X164=y
 CONFIG_GPIO_ATH79=y
 CONFIG_GPIO_CDEV=y
 CONFIG_GPIO_GENERIC=y
-# CONFIG_GPIO_LATCH is not set
+# CONFIG_GPIO_LATCH_MIKROTIK is not set
 # CONFIG_GPIO_RB91X_KEY is not set
 CONFIG_HARDWARE_WATCHPOINTS=y
 CONFIG_HAS_DMA=y
index 5f9d8e42fb8015545197d866cd1c4b8aeea8ace3..0c98a6634ee4b737d884ef77c42ce28397b1c9dd 100644 (file)
@@ -22,7 +22,7 @@
        };
 
        gpio_latch: gpio_latch {
-               compatible = "gpio-latch";
+               compatible = "gpio-latch-mikrotik";
                gpio-controller;
                #gpio-cells = <2>;
                gpios = <&gpio 0 GPIO_ACTIVE_HIGH>,
similarity index 98%
rename from target/linux/ath79/files/drivers/gpio/gpio-latch.c
rename to target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c
index 5518184caa0f8a1162e5b8682891c14b0cd7991c..8f53974e46af24d32f9df9e35d9aa0ab78e3648c 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/of_platform.h>
 #include <linux/of_gpio.h>
 
-#define GPIO_LATCH_DRIVER_NAME  "gpio-latch"
+#define GPIO_LATCH_DRIVER_NAME  "gpio-latch-mikrotik"
 #define GPIO_LATCH_LINES 9
 
 struct gpio_latch_chip {
index a231188c835025784057d31ac3d7c4a1f57a0db0..3fe5cd49799e61c29a377359683f6ed0d74aab9e 100644 (file)
@@ -3,7 +3,7 @@ CONFIG_CRYPTO_DEFLATE=y
 CONFIG_CRYPTO_HASH_INFO=y
 CONFIG_CRYPTO_LZO=y
 CONFIG_CRYPTO_ZSTD=y
-CONFIG_GPIO_LATCH=y
+CONFIG_GPIO_LATCH_MIKROTIK=y
 CONFIG_GPIO_RB4XX=y
 CONFIG_GPIO_RB91X_KEY=y
 CONFIG_GPIO_WATCHDOG=y
index 768ab6fb49ad8c41753232ddd52a74e2a58e7eec..677428fa65c1e8c0ac6a5c4da1a5b965f6a8c44c 100644 (file)
@@ -33,7 +33,7 @@ Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
  
          If unsure, say N.
  
-+config GPIO_LATCH
++config GPIO_LATCH_MIKROTIK
 +      tristate "MikroTik RouterBOARD GPIO latch support"
 +      depends on ATH79
 +      help
@@ -59,7 +59,7 @@ Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
  obj-$(CONFIG_GPIO_IXP4XX)             += gpio-ixp4xx.o
  obj-$(CONFIG_GPIO_JANZ_TTL)           += gpio-janz-ttl.o
  obj-$(CONFIG_GPIO_KEMPLD)             += gpio-kempld.o
-+obj-$(CONFIG_GPIO_LATCH)              += gpio-latch.o
++obj-$(CONFIG_GPIO_LATCH_MIKROTIK)     += gpio-latch-mikrotik.o
  obj-$(CONFIG_GPIO_LOGICVC)            += gpio-logicvc.o
  obj-$(CONFIG_GPIO_LOONGSON1)          += gpio-loongson1.o
  obj-$(CONFIG_GPIO_LOONGSON)           += gpio-loongson.o