summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubhash Jadavani <subhashj@codeaurora.org>2015-07-15 16:45:10 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:00:15 -0700
commitbb0a6f5728bdc78dd7f48e481de205413e460eb6 (patch)
treeba5f8c8c8a8df90d357a997214f9409361e84dba
parent9a86fd5e39dc41120b7d6eeeef55d01c407406d5 (diff)
scsi: ufs: remove the query of ref_clk frequency
UFS device ref_clk frequency is set during the one time provisioning, UFS driver just queries the reference clock frequency from device and prints it out for informational purpose. Although this seems redundant as incorrect reference clock frequency would anyway be detected during bootup phase itself. This patch removes this redundant query and in turn removes one message from going to serial console. Change-Id: Id6a4d6d84b05f4b07b5299fd90e78e793e9689dc Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
-rw-r--r--drivers/scsi/ufs/ufshcd.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index c0a73bbe4900..a32bf0bf6588 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -6258,33 +6258,6 @@ out:
}
/**
- * ufshcd_get_device_ref_clk - get the device bRefClkFreq
- * @hba: per-adapter instance
- *
- * Returns zero on success, non-zero error value on failure.
- */
-static int ufshcd_get_device_ref_clk(struct ufs_hba *hba)
-{
- int err = 0;
- int val = -1;
- char *arr[] = {"19.2 MHz", "26 MHz", "38.4 MHz", "52 MHz"};
-
- err = ufshcd_query_attr_retry(hba, UPIU_QUERY_OPCODE_READ_ATTR,
- QUERY_ATTR_IDN_REF_CLK_FREQ, 0, 0, &val);
-
- if (err || val >= ARRAY_SIZE(arr) || val < 0) {
- dev_err(hba->dev, "%s: err = %d, val = %d",
- __func__, err, val);
- goto out;
- }
-
- dev_info(hba->dev, "%s: bRefClkFreq = %s", __func__, arr[val]);
-
-out:
- return err;
-}
-
-/**
* ufshcd_tune_pa_tactivate - Tunes PA_TActivate of local UniPro
* @hba: per-adapter instance
*
@@ -6457,16 +6430,6 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)
if (ret)
goto out;
- if (!hba->is_init_prefetch) {
- ret = ufshcd_get_device_ref_clk(hba);
- if (ret) {
- dev_err(hba->dev,
- "%s: Failed reading bRefClkFreq attribute\n",
- __func__);
- ret = 0;
- }
- }
-
/* UFS device is also active now */
ufshcd_set_ufs_dev_active(hba);
ufshcd_force_reset_auto_bkops(hba);