Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54413c42 authored by SEO HOYOUNG's avatar SEO HOYOUNG Committed by Greg Kroah-Hartman
Browse files

ANDROID: scsi: ufs: export ufshcd_wb_ctrl func



At mainline can not disable after enable write booster.
Continued enablement of the write booster affects ufs life expectancy.
And there is also a problem with power efficiency.
So modified ufshcd_wb_ctrl for dynamic enable at other driver.

Bug: 163991865

Change-Id: Iad0734d29229841bf583f7befbf35a769d3c2478
Signed-off-by: default avatarSEO HOYOUNG <hy50.seo@samsung.com>
parent 55adb91a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -269,7 +269,7 @@ static inline int ufshcd_config_vreg_hpm(struct ufs_hba *hba,
					 struct ufs_vreg *vreg);
static int ufshcd_wb_buf_flush_enable(struct ufs_hba *hba);
static int ufshcd_wb_buf_flush_disable(struct ufs_hba *hba);
static int ufshcd_wb_ctrl(struct ufs_hba *hba, bool enable);
int ufshcd_wb_ctrl(struct ufs_hba *hba, bool enable);
static int ufshcd_wb_toggle_flush_during_h8(struct ufs_hba *hba, bool set);
static inline void ufshcd_wb_toggle_flush(struct ufs_hba *hba, bool enable);

@@ -5442,7 +5442,7 @@ static void ufshcd_bkops_exception_event_handler(struct ufs_hba *hba)
				__func__, err);
}

static int ufshcd_wb_ctrl(struct ufs_hba *hba, bool enable)
int ufshcd_wb_ctrl(struct ufs_hba *hba, bool enable)
{
	int ret;
	u8 index;
@@ -5473,6 +5473,7 @@ static int ufshcd_wb_ctrl(struct ufs_hba *hba, bool enable)

	return ret;
}
EXPORT_SYMBOL_GPL(ufshcd_wb_ctrl);

static int ufshcd_wb_toggle_flush_during_h8(struct ufs_hba *hba, bool set)
{
+1 −0
Original line number Diff line number Diff line
@@ -1099,6 +1099,7 @@ int ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id,
u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba);

int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd);
int ufshcd_wb_ctrl(struct ufs_hba *hba, bool enable);

int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba,
			     struct utp_upiu_req *req_upiu,