From 99aa7e2bf7c3b93a84929ebc1ddc46ae881fde65 Mon Sep 17 00:00:00 2001 From: Aren Moynihan Date: Mon, 28 Oct 2024 14:45:18 -0400 Subject: [PATCH] gpio: remove handling of W_DISABLE pin The PinePhone has circuitry that makes this pin active-high, but the PinePhone Pro doesn't appear to, which means we would need read active high / active low from the config file. Since the modem works fine without setting this pin, remove the logic to handle the W_DISBALE pin. --- src/gpio.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gpio.c b/src/gpio.c index d3bf329..6f24386 100644 --- a/src/gpio.c +++ b/src/gpio.c @@ -74,10 +74,6 @@ int gpio_line_set_value(struct EG25Manager *manager, int line, enum gpiod_line_v int gpio_sequence_poweron(struct EG25Manager *manager) { - /* Disable airplane mode in case it was enabled by other software. The - * W_DISABLE pin is active-low, so we set it to high here. */ - gpio_line_set_value(manager, GPIO_OUT_DISABLE, GPIOD_LINE_VALUE_ACTIVE); - /* * Force the modem to poweroff using the RESET_N pin before attempting to * boot in case the it got into a bad state.