Skip to content

Commit

Permalink
Merge pull request #21 from chaptsand/android12-stable
Browse files Browse the repository at this point in the history
Fixes abnormal power consumption on UMI
  • Loading branch information
UtsavBalar1231 authored Aug 1, 2022
2 parents 7df891b + f4401ef commit 3c09e4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/scsi/ufs/ufs-qcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2056,9 +2056,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 3c09e4b

Please sign in to comment.