Skip to content

Commit

Permalink
Enable UFS LPM for all devices. (Follow Xiaomi upstream code)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyafe1997 committed Aug 13, 2024
1 parent 393a8ba commit dee414d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/scsi/ufs/ufs-qcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2057,12 +2057,11 @@ __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
#ifdef CONFIG_FACTORY_BUILD
struct device_node *node = host->hba->dev->of_node;

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

0 comments on commit dee414d

Please sign in to comment.