From 99cbf18fa9e427ff37f4dc26e840b1761cfcdd84 Mon Sep 17 00:00:00 2001 From: Can Guo Date: Thu, 7 Apr 2022 02:58:50 -0700 Subject: [PATCH] scsi: ufs-qcom: Add ICE NOP supporting functions Currently the ICE is disabled. Adding nop functions to Pineapple platforms for UFS to build. The actual support of the ICE will be addressed later when the ICE is enabled. Change-Id: I011ec23a6ffc43fae892685740b8632a94b917f2 Signed-off-by: Can Guo --- drivers/scsi/ufs/ufs-qcom-ice.c | 4 ++++ drivers/scsi/ufs/ufshcd-crypto-qti.h | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 drivers/scsi/ufs/ufshcd-crypto-qti.h diff --git a/drivers/scsi/ufs/ufs-qcom-ice.c b/drivers/scsi/ufs/ufs-qcom-ice.c index bbb0ad7590ec..f111b702a950 100644 --- a/drivers/scsi/ufs/ufs-qcom-ice.c +++ b/drivers/scsi/ufs/ufs-qcom-ice.c @@ -168,6 +168,10 @@ int ufs_qcom_ice_enable(struct ufs_qcom_host *host) return ufs_qcom_ice_resume(host); } +void ufs_qcom_ice_disable(struct ufs_qcom_host *host) +{ +} + /* Poll until all BIST bits are reset */ static int qcom_ice_wait_bist_status(struct ufs_qcom_host *host) { diff --git a/drivers/scsi/ufs/ufshcd-crypto-qti.h b/drivers/scsi/ufs/ufshcd-crypto-qti.h new file mode 100644 index 000000000000..5b13f5f15d6a --- /dev/null +++ b/drivers/scsi/ufs/ufshcd-crypto-qti.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. + */ + +#ifndef _UFSHCD_CRYPTO_QTI_H +#define _UFSHCD_CRYPTO_QTI_H + +#include "ufshcd.h" +#include "ufshcd-crypto.h" + +#if IS_ENABLED(CONFIG_SCSI_UFS_CRYPTO_QTI) +int ufshcd_qti_hba_init_crypto_capabilities(struct ufs_hba *hba); +#else /* CONFIG_SCSI_UFS_CRYPTO_QTI */ +static inline int ufshcd_qti_hba_init_crypto_capabilities( + struct ufs_hba *hba) +{ + return 0; +} +#endif /* CONFIG_SCSI_UFS_CRYPTO_QTI */ + +#endif /* _UFSHCD_CRYPTO_QTI_H */