mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
7269cba53d
Currently supplicant dependent optee device enumeration only registers
devices whenever tee-supplicant is invoked for the first time. But it
forgets to remove devices when tee-supplicant daemon stops running and
closes its context gracefully. This leads to following error for fTPM
driver during reboot/shutdown:
[ 73.466791] tpm tpm0: ftpm_tee_tpm_op_send: SUBMIT_COMMAND invoke error: 0xffff3024
Fix this by adding an attribute for supplicant dependent devices so that
the user-space service can detect and detach supplicant devices before
closing the supplicant:
$ for dev in /sys/bus/tee/devices/*; do if [[ -f "$dev/need_supplicant" && -f "$dev/driver/unbind" ]]; \
then echo $(basename "$dev") > $dev/driver/unbind; fi done
Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
Closes: https://github.com/OP-TEE/optee_os/issues/6094
Fixes:
|
||
---|---|---|
.. | ||
call.c | ||
core.c | ||
device.c | ||
ffa_abi.c | ||
Kconfig | ||
Makefile | ||
notif.c | ||
optee_ffa.h | ||
optee_msg.h | ||
optee_private.h | ||
optee_rpc_cmd.h | ||
optee_smc.h | ||
optee_trace.h | ||
rpc.c | ||
smc_abi.c | ||
supp.c |