Skip to content

Commit f560cd5

Browse files
feckertandy-shev
authored andcommitted
platform/x86: pcengines-apuv2: revert wiring up simswitch GPIO as LED
This reverts commit 5037d4d. Explanation why this does not work: This change connects the simswap to the LED subsystem of the kernel. From my point of view, it's nonsense. If we do it this way, then this can be switched relatively easily via the LED subsystem (trigger: none/default-on) and that is dangerous! If this is used, it would be unfavorable, since there is also another trigger (trigger: heartbeat/netdev). Therefore, this simswap GPIO should remain in the GPIO subsystem and be switched via it and not be connected to the LED subsystem. To avoid the problems mentioned above. The LED subsystem is not made for this and it is not a good compromise, but rather dangerous. Signed-off-by: Florian Eckert <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent f9e1104 commit f560cd5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/platform/x86/pcengines-apuv2.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ static const struct gpio_led apu2_leds[] = {
7878
{ .name = "apu:green:1" },
7979
{ .name = "apu:green:2" },
8080
{ .name = "apu:green:3" },
81-
{ .name = "apu:simswap" },
8281
};
8382

8483
static const struct gpio_led_platform_data apu2_leds_pdata = {
@@ -95,8 +94,6 @@ static struct gpiod_lookup_table gpios_led_table = {
9594
NULL, 1, GPIO_ACTIVE_LOW),
9695
GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_LED3,
9796
NULL, 2, GPIO_ACTIVE_LOW),
98-
GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_SIMSWAP,
99-
NULL, 3, GPIO_ACTIVE_LOW),
10097
}
10198
};
10299

0 commit comments

Comments
 (0)