scsi: ufs-qcom: don't print error if ufs_qcom_update_sec_cfg fails

Some platforms don't support restoring the secure configuration as
secure configuration can never be lost hence scm_restore_sec_cfg() is
expected to be failed for such platforms. This change changes the
failure message level from error to debug.

Change-Id: Ie4b96971d5c4c394576a78444fe5013749375c28
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
This commit is contained in:
Subhash Jadavani 2015-07-15 17:17:10 -07:00 committed by David Keitel
parent e64871e61d
commit 5eeb089464

View file

@ -2009,7 +2009,7 @@ static int ufs_qcom_update_sec_cfg(struct ufs_hba *hba, bool restore_sec_cfg)
cbuf.device_id = UFS_TZ_DEV_ID; cbuf.device_id = UFS_TZ_DEV_ID;
ret = scm_restore_sec_cfg(cbuf.device_id, cbuf.spare, &scm_ret); ret = scm_restore_sec_cfg(cbuf.device_id, cbuf.spare, &scm_ret);
if (ret || scm_ret) { if (ret || scm_ret) {
dev_err(hba->dev, "%s: failed, ret %d scm_ret %d\n", dev_dbg(hba->dev, "%s: failed, ret %d scm_ret %d\n",
__func__, ret, scm_ret); __func__, ret, scm_ret);
if (!ret) if (!ret)
ret = scm_ret; ret = scm_ret;