summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrey Markovytch <andreym@codeaurora.org>2017-02-08 14:32:22 +0200
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-08 04:35:20 -0800
commita1cd6239e49dc1a6a3d34ad555745da103a79350 (patch)
tree89eed10d333e7a0d7bbb18c41453ed97747b7d8c /include
parent2aa89ab3ff59a788321bc6af782d639cfc8dab1f (diff)
ice: fix issue with losing ICE key configuration during reset
TZ is called to restore key configuration in case of UFS reset Change-Id: Id434e7f9ec6befdce97f52fd350957b66adcb15f Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pfk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/pfk.h b/include/linux/pfk.h
index 2fc64442b8ee..82ee74199752 100644
--- a/include/linux/pfk.h
+++ b/include/linux/pfk.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -24,6 +24,7 @@ int pfk_load_key_start(const struct bio *bio,
int pfk_load_key_end(const struct bio *bio, bool *is_pfe);
int pfk_remove_key(const unsigned char *key, size_t key_size);
bool pfk_allow_merge_bio(const struct bio *bio1, const struct bio *bio2);
+void pfk_clear_on_reset(void);
#else
static inline int pfk_load_key_start(const struct bio *bio,
@@ -48,6 +49,9 @@ static inline bool pfk_allow_merge_bio(const struct bio *bio1,
return true;
}
+static inline void pfk_clear_on_reset(void)
+{}
+
#endif /* CONFIG_PFK */
#endif /* PFK_H */