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

Commit ae1d5324 authored by Shivaprasad Hongal's avatar Shivaprasad Hongal Committed by Gerrit - the friendly Code Review server
Browse files

scsi: ufs: ice: Skip CTRL_INFO configuration



CTRL_INFO configuration needs to be skipped
for all targets with ICE 3.0.

Change-Id: I42310a439afbcc2f7e61b4bae40655ae691bda2d
Signed-off-by: default avatarShivaprasad Hongal <shongal@codeaurora.org>
parent 4719c01d
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -368,8 +368,13 @@ int ufs_qcom_ice_cfg_start(struct ufs_qcom_host *qcom_host,
		return -EINVAL;
	}

	if (qcom_host->hw_ver.major == 0x3) {
		/* nothing to do here for version 0x3, exit silently */
	if (qcom_host->hw_ver.major >= 0x3) {
		/*
		 * ICE 3.0 crypto sequences were changed,
		 * CTRL_INFO register no longer exists
		 * and doesn't need to be configured.
		 * The configuration is done via utrd.
		 */
		return 0;
	}