[Gta04-owner] [PATCH 4/6] HACK: disable gpio186 check

H. Nikolaus Schaller hns at goldelico.com
Sun Apr 23 10:23:59 CEST 2017


> Am 23.04.2017 um 09:36 schrieb Andreas Kemnade <andreas at kemnade.info>:
> 
> this forcefully enables hw routing
> and removes the check for gpio186 which is
> hidden in newer kernels
> 
> TODO: add a real check for >= GTA04A4

either read /proc/device-tree/model and parse the string

or use "rfkill unblock wwan" or "rfkill list wwan".
Our rfkill extension for newer kernels should hide modem power control completely,
so no user-space software should know about gpio186 or have a need to.

> 
> 
> Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
> ---
> rootdir/voice-routing-init.sh | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/rootdir/voice-routing-init.sh b/rootdir/voice-routing-init.sh
> index 24219d1..1e07be7 100755
> --- a/rootdir/voice-routing-init.sh
> +++ b/rootdir/voice-routing-init.sh
> @@ -1,4 +1,6 @@
> #!/system/bin/sh
> +exit 0
> +# todo reenable hw routing
> MODEM_GPIO="/sys/class/gpio/gpio186/value" #available on GTA04a4++
> if [ ! -e $MODEM_GPIO ]
> then
> -- 
> 2.1.4
> 
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner



More information about the Gta04-owner mailing list