soc: qcom: smem: Add secure device check for smem dump

In peripheral SSR case SMEM dump is collected and stored which
is not expected on secure devices.

Add a check and avoid dumping SMEM on secure device.

Bug: 135588290
CRs-Fixed: 2264360
Change-Id: I2895aeb86d97b45dcb3ea293aa79a06174b8ac0b
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
1 file changed