Skip to content
Commit 2464b229 authored by Jorge Ramirez-Ortiz's avatar Jorge Ramirez-Ortiz Committed by Tom Rini
Browse files

drivers: optee: rpmb: fix returning CID to TEE



The mmc CID value is one of the input parameters used to provision the
RPMB key. The trusted execution environment expects this value to be
specified in big endian format.

Before this fix, on little endian systems, the value returned by the
linux kernel mmc driver differed from the one returned by u-boot.
This meant that if linux provisioned the RPMB key, u-boot would not
have access to the partition (and the other way around).

Signed-off-by: default avatarJorge Ramirez-Ortiz <jorge@foundries.io>
Reviewed-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent 787f10a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment