From 44eb6044d2a319b6fa032f90d4624c4404623c97 Mon Sep 17 00:00:00 2001 From: Pierre Labadens Date: Tue, 1 Jun 2021 21:27:38 +0200 Subject: [PATCH] kernel/lts: add cw2015_battery-charge-now.patch Backports the `cw2015 battery` CHARGE_NOW interface to the `_lts` (5.10) kernel. This is needed by certain applications (waybar) to properly estimate remaining charge. This patch is expected to reach mainline in the 5.13 release. --- kernel/lts/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kernel/lts/default.nix b/kernel/lts/default.nix index 1a3249b..aa1d145 100644 --- a/kernel/lts/default.nix +++ b/kernel/lts/default.nix @@ -62,6 +62,15 @@ linux_5_10.override({ (nhp "0024-arm64-dts-rockchip-setup-USB-type-c-port-as-dual-dat.patch" "0zwwyhryghafga36mgnazn6gk88m2rvs8ng5ykk4hhg9pi5bgzh9") (nhp "0026-arm64-dts-rockchip-add-typec-extcon-hack.patch" "1kri47nkm6qgsqgkxzgy6iwhpajcx9xwd4rf8dldr6prb9f6iv3p") (nhp "pbp-2d-fix.patch" "1hwd6clk1qnjyd4jl7kjn9pnilijz4brh1p5dnv8jzr2ajx2346j") + + rec { + name = "cw2015_battery-charge-now.patch"; + patch = fetchpatch { + inherit name; + url = "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch?id=bf3841073bf34c9568ee5d6a6020b3902b3eef81"; + sha256 = "sha256-S7g5whBc7GH7dGFMbfD0ye6U5+sdN+PUUHvPlZd3xPw="; + }; + } ]); }) //