aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/cqhci.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2024-12-12 20:19:50 -0800
committerUlf Hansson <ulf.hansson@linaro.org>2024-12-19 14:43:33 +0100
commit741521fa273fdd119f149dd208d7b60fc9400bb5 (patch)
treea9648e636d00123c14bb1d68f06ce57127f96cb9 /drivers/mmc/host/cqhci.h
parentmmc: crypto: add mmc_from_crypto_profile() (diff)
downloadlinux-741521fa273fdd119f149dd208d7b60fc9400bb5.tar.gz
linux-741521fa273fdd119f149dd208d7b60fc9400bb5.zip
mmc: sdhci-msm: convert to use custom crypto profile
As is being done in ufs-qcom, make the sdhci-msm driver override the full crypto profile rather than "just" key programming and eviction. This makes it much more straightforward to add support for hardware-wrapped inline encryption keys. It also makes it easy to pass the original blk_crypto_key down to qcom_ice_program_key() once it is updated to require the key in that form. Signed-off-by: Eric Biggers <ebiggers@google.com> Message-ID: <20241213041958.202565-8-ebiggers@kernel.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/cqhci.h')
-rw-r--r--drivers/mmc/host/cqhci.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/mmc/host/cqhci.h b/drivers/mmc/host/cqhci.h
index fab9d74445ba..ce189a1866b9 100644
--- a/drivers/mmc/host/cqhci.h
+++ b/drivers/mmc/host/cqhci.h
@@ -289,13 +289,11 @@ struct cqhci_host_ops {
u64 *data);
void (*pre_enable)(struct mmc_host *mmc);
void (*post_disable)(struct mmc_host *mmc);
-#ifdef CONFIG_MMC_CRYPTO
- int (*program_key)(struct cqhci_host *cq_host,
- const union cqhci_crypto_cfg_entry *cfg, int slot);
-#endif
void (*set_tran_desc)(struct cqhci_host *cq_host, u8 **desc,
dma_addr_t addr, int len, bool end, bool dma64);
-
+#ifdef CONFIG_MMC_CRYPTO
+ bool uses_custom_crypto_profile;
+#endif
};
static inline void cqhci_writel(struct cqhci_host *host, u32 val, int reg)