NFC: driver: use SMEM to getPeripheralStatus at bootup

Updated getPeripheralStatus call to use SMEM, instead of sending a
secure monitor call to QTEE.

Change-Id: Id2be09aa10f00bf4a2373e4056c0e9533c9f3ac2
This commit is contained in:
Mallikarjun S T
2023-02-08 17:41:13 +05:30
parent 38edb908ea
commit 3b1ddde824
4 changed files with 24 additions and 75 deletions

View File

@@ -420,7 +420,7 @@ int nfc_i2c_dev_probe(struct i2c_client *client, const struct i2c_device_id *id)
if( nfc_dev->configs.CNSS_NFC_HW_SECURE_ENABLE == true) {
/*Check NFC Secure Zone status*/
if(!nfc_hw_secure_check()) {
if(!nfc_hw_secure_check_smem()) {
nfc_post_init(nfc_dev);
nfc_dev->secure_zone = false;
}