Skip to content

Commit

Permalink
Merge pull request #3 from wcedla/android14-stable-mod
Browse files Browse the repository at this point in the history
Fixes abnormal power consumption on UMI
  • Loading branch information
liyafe1997 authored Aug 13, 2024
2 parents ab02931 + dc9fa0c commit 393a8ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ scripts/config --file out/.config \
-e MIUI_ZRAM_MEMORY_TRACKING \
-d CONFIG_MODULE_SIG_SHA512 \
-d CONFIG_MODULE_SIG_HASH \
-e MI_SCHED \
-e MI_FRAGMENTION \

make $MAKE_ARGS -j$(nproc)
Expand Down
4 changes: 4 additions & 0 deletions drivers/scsi/ufs/ufs-qcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2057,9 +2057,13 @@ __setup("androidboot.bootdevice=", get_android_boot_dev);
*/
static void ufs_qcom_parse_lpm(struct ufs_qcom_host *host)
{
#if IS_ENABLED(CONFIG_BOARD_UMI) || IS_ENABLED(CONFIG_BOARD_THYME)
host->disable_lpm = false;
#else
struct device_node *node = host->hba->dev->of_node;

host->disable_lpm = of_property_read_bool(node, "qcom,disable-lpm");
#endif
if (host->disable_lpm)
pr_info("%s: will disable all LPM modes\n", __func__);
}
Expand Down

0 comments on commit 393a8ba

Please sign in to comment.