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

Commit 46c75750 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: host: Add recovery_finish crypto vops"

parents ac75bd9f a0b8d32b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ static struct cqhci_host_crypto_variant_ops cqhci_crypto_qti_variant_ops = {
	.debug = cqhci_crypto_qti_debug,
	.reset = cqhci_crypto_qti_reset,
	.prepare_crypto_desc = cqhci_crypto_qti_prep_desc,
	.recovery_finish = cqhci_crypto_qti_recovery_finish,
};

static atomic_t keycache;
@@ -411,3 +412,9 @@ int cqhci_crypto_qti_resume(struct cqhci_host *host)
{
	return crypto_qti_resume(host->crypto_vops->priv);
}

int cqhci_crypto_qti_recovery_finish(struct cqhci_host *host)
{
	keyslot_manager_reprogram_all_keys(host->ksm);
	return 0;
}
+3 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2020 - 2021, The Linux Foundation. All rights reserved.
 */

#ifndef _UFSHCD_CRYPTO_QTI_H
@@ -28,4 +28,6 @@ int cqhci_crypto_qti_prep_desc(struct cqhci_host *host,

int cqhci_crypto_qti_reset(struct cqhci_host *host);

int cqhci_crypto_qti_recovery_finish(struct cqhci_host *host);

#endif /* _UFSHCD_ICE_QTI_H */