feat(app/device_assignment): add transition pdev from has_key to ready

Add support in pdev_communicate RMI handler to transition pdev state
from RMI_PDEV_STATE_HAS_KEY to RMI_PDEV_STATE_READY.

If pdev_communicate is called when the state is RMI_PDEV_STATE_HAS_KEY
then it issues SPDM_SECURE_SESSION command to establish a secure
session.

Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Change-Id: I81849fa52671016c8ec95921dbc01af99a6cd512
6 files changed