linux-xiaomi-chiron/include/linux/mmc
Eric Biggers 86c639ce08 mmc: core: Store pointer to bio_crypt_ctx in mmc_request
Make 'struct mmc_request' contain a pointer to the request's
'struct bio_crypt_ctx' directly, instead of extracting a 32-bit DUN from
it which is a cqhci-crypto specific detail.

This keeps the cqhci crypto specific details in the cqhci module, and it
makes mmc_core and mmc_block ready for MMC crypto hardware that accepts
the DUN and/or key in a way that is more flexible than that which will
be specified by the eMMC v5.2 standard.  Exynos SoCs are an example of
such hardware, as their inline encryption hardware takes keys directly
(it has no concept of keyslots) and supports 128-bit DUNs.

Note that the 32-bit DUN length specified by the standard is very
restrictive, so it is likely that more hardware will support longer DUNs
despite it not following the standard.  Thus, limiting the scope of the
32-bit DUN assumption to the place that actually needs it is warranted.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20210721154738.3966463-1-ebiggers@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2021-08-24 10:15:32 +02:00
..
card.h mmc: core: Add support for cache ctrl for SD cards 2021-06-14 13:57:38 +02:00
core.h mmc: core: Store pointer to bio_crypt_ctx in mmc_request 2021-08-24 10:15:32 +02:00
host.h mmc: Improve function name when aborting a tuning cmd 2021-06-14 13:57:44 +02:00
mmc.h mmc: core: expose info about enhanced rpmb support 2020-05-28 11:21:03 +02:00
pm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sd.h mmc: core: Add support for Power Off Notification for SD cards 2021-06-14 13:57:37 +02:00
sdhci-pci-data.h MMC core: 2017-11-13 10:17:35 -08:00
sdio.h mmc: sdio: fix a typo in the comment of SDIO_SD_REV_3_00 2021-03-30 11:42:03 +02:00
sdio_func.h mmc: sdio: Parse CISTPL_VERS_1 major and minor revision numbers 2020-09-07 09:11:28 +02:00
sdio_ids.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-08-05 20:13:21 -07:00
sh_mmcif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 178 2019-05-30 11:29:19 -07:00
slot-gpio.h mmc: core: Remove mmc_gpiod_request_*(invert_gpio) 2019-12-18 13:37:07 +01:00