forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is still a lot of software and vendor scripts for LCDs and others out there, which use the legacy GPIO sysfs API. In the meantime, libgpio is the modern replacement, hence this API has been deprecated, but it takes a while before old software and vendor scripts adjust, if ever. It was removed from sunxi64 current configs in this commit: armbian@6380b9e And the patch to make it independent of CONFIG_EXPERT=y was not ported to Linux 6.6. It does not seem to have happened intentional, since the CONFIG_GPIO_SYSFS=y is still set in 32-bit sunxi and rockchip configs. There also CONFIG_EXPERT=y is set, hence the patch not required. For reference, the original PR which added this flag and patch: armbian#3635 It still applies and is needed with recent Linux versions: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/gpio/Kconfig#n61 Signed-off-by: MichaIng <micha@dietpi.com>
- Loading branch information
Showing
8 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
patch/kernel/archive/sunxi-6.6/patches.armbian/drv-gpio-sysfs-without-expert.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From daed33d0944439dd9239057763b5e03bd9dd379f Mon Sep 17 00:00:00 2001 | ||
From: schwar3kat <61094841+schwar3kat@users.noreply.github.com> | ||
Date: Sun, 3 Apr 2022 00:20:50 +1300 | ||
Subject: [PATCH] fix-gpio-kconfig remove if EXPERT to allow normal build | ||
|
||
Signed-off-by: schwar3kat <61094841+schwar3kat@users.noreply.github.com> | ||
--- | ||
drivers/gpio/Kconfig | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig | ||
index 947474f6a..0458a96a7 100644 | ||
--- a/drivers/gpio/Kconfig | ||
+++ b/drivers/gpio/Kconfig | ||
@@ -59,7 +59,7 @@ config DEBUG_GPIO | ||
that are most common when setting up new platforms or boards. | ||
|
||
config GPIO_SYSFS | ||
- bool "/sys/class/gpio/... (sysfs interface)" if EXPERT | ||
+ bool "/sys/class/gpio/... (sysfs interface)" | ||
depends on SYSFS | ||
select GPIO_CDEV # We need to encourage the new ABI | ||
help | ||
-- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
patch/kernel/archive/sunxi-6.7/patches.armbian/drv-gpio-sysfs-without-expert.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From daed33d0944439dd9239057763b5e03bd9dd379f Mon Sep 17 00:00:00 2001 | ||
From: schwar3kat <61094841+schwar3kat@users.noreply.github.com> | ||
Date: Sun, 3 Apr 2022 00:20:50 +1300 | ||
Subject: [PATCH] fix-gpio-kconfig remove if EXPERT to allow normal build | ||
|
||
Signed-off-by: schwar3kat <61094841+schwar3kat@users.noreply.github.com> | ||
--- | ||
drivers/gpio/Kconfig | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig | ||
index 947474f6a..0458a96a7 100644 | ||
--- a/drivers/gpio/Kconfig | ||
+++ b/drivers/gpio/Kconfig | ||
@@ -59,7 +59,7 @@ config DEBUG_GPIO | ||
that are most common when setting up new platforms or boards. | ||
|
||
config GPIO_SYSFS | ||
- bool "/sys/class/gpio/... (sysfs interface)" if EXPERT | ||
+ bool "/sys/class/gpio/... (sysfs interface)" | ||
depends on SYSFS | ||
select GPIO_CDEV # We need to encourage the new ABI | ||
help | ||
-- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters