Skip to content
Commit 0123832f authored by Eric Biggers's avatar Eric Biggers Committed by William McVicker
Browse files

ANDROID: scsi: ufs: add vendor hook to override key reprogramming



Some hardware has a way to restore all keyslots at once that is
significantly faster than restoring each keyslot individually, as is
done by blk_ksm_reprogram_all_keys().  Add a hook
"android_rvh_ufs_reprogram_all_keys" that allows overriding the
restoration of all keyslots after UFS reset.  This may sleep, so this
must be a "restricted" Android vendor hook rather than a regular one.

Note that currently this functionality can't be upstreamed, as support
for the hardware that needs it would need to be upstreamed first.

(cherry picked from commit e2e063f5074e2e14a96875e5e5670314a41e1c34)

Bug: 162257402
Bug: 181905172
Bug: 241106918
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarKenny Root <kroot@google.com>
Change-Id: I0b25393a5131941f085892560e08a64e63cd1369
parent 7ce11730
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment