From de0bc01e34e4621f7dd50c2fec065ebb69831698 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Fri, 2 Apr 2021 19:21:55 -0700 Subject: [PATCH] purism-librem5: fix bluetooth by disabling LE mode (MR 2089) This forces coex. mode to only support BT classic/EDR, and disabled LE. When LE coex. is enabled, BT controller init fails. see: https://gitlab.com/postmarketOS/pmaports/-/issues/1042 fixes: https://gitlab.com/postmarketOS/pmaports/-/issues/976 --- device/community/device-purism-librem5/APKBUILD | 4 ++-- device/community/device-purism-librem5/modprobe.d_rsi.conf | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/device/community/device-purism-librem5/APKBUILD b/device/community/device-purism-librem5/APKBUILD index 99800acf3..28378f697 100644 --- a/device/community/device-purism-librem5/APKBUILD +++ b/device/community/device-purism-librem5/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Clayton Craft pkgname=device-purism-librem5 pkgdesc="Purism Librem 5 Phone" -pkgver=1.18 +pkgver=1.19 pkgrel=0 _confver=36 _purismrel=1 @@ -133,7 +133,7 @@ sha512sums="ef2cce6de4e85b14b4a7dee7fe8175d6ca455db38bfe4453b390ac15ad51240dec58 647cd95872bfa3e533ce2a825f9215315f629c0f2835becd77e3acb07b748a2c662090197de59155ff6e8137165dea877a0b179db4bd8bee3dd3d205f390a656 deviceinfo 2703c7a4e7f32cf102dfed644a8213497828ae1fe9f3bd789663157f79c8c8ddb05672e5c9a0c6883e9dee42afcfe9578e611dd1d9fe6cd8129d8d7738d28ad2 flash_script.lst 110630f959e3f3a2acc335d755defeb0f49fb40f46cb2423205511f43d1dfdbb91722271fac34a6cbf04a5f0406e6a34ed77e75555acc3f420041d32224027d6 modprobe.d-ship_mode.conf -9dc018f0de523cbfe5a49cbe831aa30e975a8dd34635197bb52582f072ac356ef2c02223fc794d970380091a69a83a74c3fbe34520190c8536e77f9ea98c7659 modprobe.d_rsi.conf +3f62c04eb92d850e32d5e1b17534dec753563342ea6c4f9dc2572700d4f6eeb8ae8cd8e8e4f1b0f5c61f21d87bc61c02212f27313986157220003d78e2d69505 modprobe.d_rsi.conf a0740e405781ec6ef765fdc9f5700c95adbb241c45c97b9384ba68cdece662cb216ca5918640042f6e65a5d1b1a9099936382c99b49a44303f7b6d77a075a471 modules-load.d_librem5.conf 8ef4ec7a9e9a4fb801d207e7d94b627aacc9243a93b0ec28e0823a6f44b8102416c040e4ddf499f87bb9dfa960cf6f627b008b79f197f6814b3fd881e18ae8ef pcscd-librem5-reader.conf 2618b40eebd3602066ee75ab85cbdbb4cfee498def9879c95a304f05a6eeedf1ab28c5dd9fa5efc8f88c790f49c96458c61d5dfe8a3ca0f96bcc0e244313ab01 pcscd-librem5.initd diff --git a/device/community/device-purism-librem5/modprobe.d_rsi.conf b/device/community/device-purism-librem5/modprobe.d_rsi.conf index 5d10e8b61..ff2e88529 100644 --- a/device/community/device-purism-librem5/modprobe.d_rsi.conf +++ b/device/community/device-purism-librem5/modprobe.d_rsi.conf @@ -2,4 +2,8 @@ blacklist rsi_91x blacklist rsi_sdio # Redpine WIFI module -options redpine_91x dev_oper_mode=13 rsi_zone_enabled=1 antenna_diversity=1 +# Note: LE coex. disabled, see: https://gitlab.com/postmarketOS/pmaports/-/issues/1042 +options redpine_91x dev_oper_mode=5 rsi_zone_enabled=1 antenna_diversity=1 +# Note: this line re-enables LE, replace above line with this one when LE +# is fixed: +# options redpine_91x dev_oper_mode=13 rsi_zone_enabled=1 antenna_diversity=1