From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 22 Oct 2024 10:36:11 +0000
Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM

---
 kernel/drivers/mmc/core/crypto.h |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/kernel/drivers/mmc/core/crypto.h b/kernel/drivers/mmc/core/crypto.h
index 74145c3..fbe9a52 100644
--- a/kernel/drivers/mmc/core/crypto.h
+++ b/kernel/drivers/mmc/core/crypto.h
@@ -1,5 +1,7 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
+ * MMC crypto engine (inline encryption) support
+ *
  * Copyright 2020 Google LLC
  */
 
@@ -8,26 +10,31 @@
 
 struct mmc_host;
 struct mmc_queue_req;
-struct request;
 struct request_queue;
 
 #ifdef CONFIG_MMC_CRYPTO
 
-void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q);
+void mmc_crypto_set_initial_state(struct mmc_host *host);
 
-void mmc_crypto_free_host(struct mmc_host *host);
+void mmc_crypto_setup_queue(struct request_queue *q, struct mmc_host *host);
 
 void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq);
 
 #else /* CONFIG_MMC_CRYPTO */
 
-static inline void mmc_crypto_setup_queue(struct mmc_host *host,
-					  struct request_queue *q) { }
+static inline void mmc_crypto_set_initial_state(struct mmc_host *host)
+{
+}
 
-static inline void mmc_crypto_free_host(struct mmc_host *host) { }
+static inline void mmc_crypto_setup_queue(struct request_queue *q,
+					  struct mmc_host *host)
+{
+}
 
-static inline void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq) { }
+static inline void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq)
+{
+}
 
-#endif /* CONFIG_MMC_CRYPTO */
+#endif /* !CONFIG_MMC_CRYPTO */
 
 #endif /* _MMC_CORE_CRYPTO_H */

--
Gitblit v1.6.2