feat(runtime/rmi): implement RMI_PDEV_DESTROY
Implement RMI handler to destroy a PDEV and release all PDEV resources.
This calls device specific deinit routine. Scrub and transition PDEV
AUX granules and PDEV granule to DELEGATED state.
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Change-Id: I6c228930cb96c8a41671859a820d986a7b0bc6f6
diff --git a/runtime/core/handler.c b/runtime/core/handler.c
index 6aaed49..54c1aef 100644
--- a/runtime/core/handler.c
+++ b/runtime/core/handler.c
@@ -164,7 +164,7 @@
HANDLER(PDEV_ABORT, 0, 0, NULL, true, true),
HANDLER(PDEV_COMMUNICATE, 2, 0, NULL, true, true),
HANDLER(PDEV_CREATE, 2, 0, smc_pdev_create, true, true),
- HANDLER(PDEV_DESTROY, 0, 0, NULL, true, true),
+ HANDLER(PDEV_DESTROY, 1, 0, smc_pdev_destroy, true, true),
HANDLER(PDEV_GET_STATE, 1, 1, smc_pdev_get_state, true, true),
HANDLER(PDEV_IDE_RESET, 0, 0, NULL, true, true),
HANDLER(PDEV_NOTIFY, 0, 0, NULL, true, true),