security: tlk_driver: modify secure storage glue
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 23 Apr 2014 05:04:00 +0000 (10:04 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Wed, 14 May 2014 21:05:46 +0000 (14:05 -0700)
commitdfc98274759500dffa41d90b08c5019630612812
tree865a4a1ae3a45e8ef8092d95ba45f596e6c4f7aa
parentc644396e53d0100431ea5e4e06528d967581f812
security: tlk_driver: modify secure storage glue

The secure world now sends a PREEMPT_BY_FS error code as a result
of OpenSession/LaunchOp call. This indicates a pending FS request
from the secure world which we need to handle and send the
FS_COMPLETION SMC on completion.

Until the secure firmware and the linux driver get in sync, we keep
legacy SS handling alive to avoid incomaptibility issues. Once the
secure firmware switches to the new handling, we would remove the
legacy support from the linux driver as well.

Bug 1500621

Change-Id: I9e84cd5a87d820107b1c2279c9d89dcd5c31b44b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/375994
(cherry picked from commit 433d8d1687725ab7db23eef27e5a073e8d88e862)
Reviewed-on: http://git-master/r/406769
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
security/tlk_driver/ote_comms.c
security/tlk_driver/ote_device.c
security/tlk_driver/ote_fs.c
security/tlk_driver/ote_protocol.h