From f46c5d762eea415ed307de4e0da12e96f9962770 Mon Sep 17 00:00:00 2001 From: Hagen Fritsch Date: Tue, 9 Jan 2024 18:54:04 +0100 Subject: [PATCH] samsung-manta: fix the battery readout driver (MR 4701) In the mainline ds2482 onewire kernel driver, active_pullup defaults to 1 which is setting the APU register. This caused the connection to the ds2784_battery slave to be unstable and flaky. In the AOSP manta project this flag is set to 0 as well. --- device/testing/device-samsung-manta/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/device/testing/device-samsung-manta/APKBUILD b/device/testing/device-samsung-manta/APKBUILD index 0432ed405..addb3edf3 100644 --- a/device/testing/device-samsung-manta/APKBUILD +++ b/device/testing/device-samsung-manta/APKBUILD @@ -2,7 +2,7 @@ pkgname=device-samsung-manta pkgdesc="Google Nexus 10" pkgver=1 -pkgrel=0 +pkgrel=1 url="https://postmarketos.org" license="MIT" arch="armv7" @@ -33,6 +33,10 @@ package() { install -Dm644 "$srcdir"/100-wlan-mac.rules \ -t "$pkgdir"/usr/lib/udev/rules.d/ + + mkdir -p "$pkgdir"/etc/modprobe.d + echo "options ds2482 active_pullup=0" \ + > "$pkgdir"/etc/modprobe.d/ds2482.conf } nonfree_firmware() {