Commit 4f6b69f3 authored by Jinyoung Choi's avatar Jinyoung Choi Committed by Martin K. Petersen
parent 42f8c5cd
...@@ -231,7 +231,7 @@ static ssize_t wb_on_store(struct device *dev, struct device_attribute *attr, ...@@ -231,7 +231,7 @@ static ssize_t wb_on_store(struct device *dev, struct device_attribute *attr,
* If the platform supports UFSHCD_CAP_CLK_SCALING, turn WB * If the platform supports UFSHCD_CAP_CLK_SCALING, turn WB
* on/off will be done while clock scaling up/down. * on/off will be done while clock scaling up/down.
*/ */
dev_warn(dev, "To control WB through wb_on is not allowed!\n"); dev_warn(dev, "It is not allowed to configure WB!\n");
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
......
...@@ -5765,13 +5765,13 @@ int ufshcd_wb_toggle(struct ufs_hba *hba, bool enable) ...@@ -5765,13 +5765,13 @@ int ufshcd_wb_toggle(struct ufs_hba *hba, bool enable)
ret = __ufshcd_wb_toggle(hba, enable, QUERY_FLAG_IDN_WB_EN); ret = __ufshcd_wb_toggle(hba, enable, QUERY_FLAG_IDN_WB_EN);
if (ret) { if (ret) {
dev_err(hba->dev, "%s Write Booster %s failed %d\n", dev_err(hba->dev, "%s: Write Booster %s failed %d\n",
__func__, enable ? "enable" : "disable", ret); __func__, enable ? "enabling" : "disabling", ret);
return ret; return ret;
} }
hba->dev_info.wb_enabled = enable; hba->dev_info.wb_enabled = enable;
dev_dbg(hba->dev, "%s Write Booster %s\n", dev_dbg(hba->dev, "%s: Write Booster %s\n",
__func__, enable ? "enabled" : "disabled"); __func__, enable ? "enabled" : "disabled");
return ret; return ret;
...@@ -5785,11 +5785,11 @@ static void ufshcd_wb_toggle_buf_flush_during_h8(struct ufs_hba *hba, ...@@ -5785,11 +5785,11 @@ static void ufshcd_wb_toggle_buf_flush_during_h8(struct ufs_hba *hba,
ret = __ufshcd_wb_toggle(hba, enable, ret = __ufshcd_wb_toggle(hba, enable,
QUERY_FLAG_IDN_WB_BUFF_FLUSH_DURING_HIBERN8); QUERY_FLAG_IDN_WB_BUFF_FLUSH_DURING_HIBERN8);
if (ret) { if (ret) {
dev_err(hba->dev, "%s: WB-Buf Flush during H8 %s failed: %d\n", dev_err(hba->dev, "%s: WB-Buf Flush during H8 %s failed %d\n",
__func__, enable ? "enable" : "disable", ret); __func__, enable ? "enabling" : "disabling", ret);
return; return;
} }
dev_dbg(hba->dev, "%s WB-Buf Flush during H8 %s\n", dev_dbg(hba->dev, "%s: WB-Buf Flush during H8 %s\n",
__func__, enable ? "enabled" : "disabled"); __func__, enable ? "enabled" : "disabled");
} }
...@@ -5803,14 +5803,13 @@ int ufshcd_wb_toggle_buf_flush(struct ufs_hba *hba, bool enable) ...@@ -5803,14 +5803,13 @@ int ufshcd_wb_toggle_buf_flush(struct ufs_hba *hba, bool enable)
ret = __ufshcd_wb_toggle(hba, enable, QUERY_FLAG_IDN_WB_BUFF_FLUSH_EN); ret = __ufshcd_wb_toggle(hba, enable, QUERY_FLAG_IDN_WB_BUFF_FLUSH_EN);
if (ret) { if (ret) {
dev_err(hba->dev, "%s WB-Buf Flush %s failed %d\n", __func__, dev_err(hba->dev, "%s: WB-Buf Flush %s failed %d\n",
enable ? "enable" : "disable", ret); __func__, enable ? "enabling" : "disabling", ret);
return ret; return ret;
} }
hba->dev_info.wb_buf_flush_enabled = enable; hba->dev_info.wb_buf_flush_enabled = enable;
dev_dbg(hba->dev, "%s: WB-Buf Flush %s\n",
dev_dbg(hba->dev, "%s WB-Buf Flush %s\n",
__func__, enable ? "enabled" : "disabled"); __func__, enable ? "enabled" : "disabled");
return ret; return ret;
...@@ -5828,7 +5827,7 @@ static bool ufshcd_wb_presrv_usrspc_keep_vcc_on(struct ufs_hba *hba, ...@@ -5828,7 +5827,7 @@ static bool ufshcd_wb_presrv_usrspc_keep_vcc_on(struct ufs_hba *hba,
QUERY_ATTR_IDN_CURR_WB_BUFF_SIZE, QUERY_ATTR_IDN_CURR_WB_BUFF_SIZE,
index, 0, &cur_buf); index, 0, &cur_buf);
if (ret) { if (ret) {
dev_err(hba->dev, "%s dCurWriteBoosterBufferSize read failed %d\n", dev_err(hba->dev, "%s: dCurWriteBoosterBufferSize read failed %d\n",
__func__, ret); __func__, ret);
return false; return false;
} }
...@@ -5913,7 +5912,7 @@ static bool ufshcd_wb_need_flush(struct ufs_hba *hba) ...@@ -5913,7 +5912,7 @@ static bool ufshcd_wb_need_flush(struct ufs_hba *hba)
QUERY_ATTR_IDN_AVAIL_WB_BUFF_SIZE, QUERY_ATTR_IDN_AVAIL_WB_BUFF_SIZE,
index, 0, &avail_buf); index, 0, &avail_buf);
if (ret) { if (ret) {
dev_warn(hba->dev, "%s dAvailableWriteBoosterBufferSize read failed %d\n", dev_warn(hba->dev, "%s: dAvailableWriteBoosterBufferSize read failed %d\n",
__func__, ret); __func__, ret);
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment