mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:20:50 +07:00
NFC: Update secure element state
The secure element state was not updated from the enable/disable ops, leaving the SE state to disabled for ever. Signed-off-by: Arron Wang <arron.wang@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
2c3832834b
commit
39525ee1dc
@ -589,6 +589,8 @@ int nfc_enable_se(struct nfc_dev *dev, u32 se_idx)
|
||||
}
|
||||
|
||||
rc = dev->ops->enable_se(dev, se_idx);
|
||||
if (rc >= 0)
|
||||
se->state = NFC_SE_ENABLED;
|
||||
|
||||
error:
|
||||
device_unlock(&dev->dev);
|
||||
@ -632,6 +634,8 @@ int nfc_disable_se(struct nfc_dev *dev, u32 se_idx)
|
||||
}
|
||||
|
||||
rc = dev->ops->disable_se(dev, se_idx);
|
||||
if (rc >= 0)
|
||||
se->state = NFC_SE_DISABLED;
|
||||
|
||||
error:
|
||||
device_unlock(&dev->dev);
|
||||
|
Loading…
Reference in New Issue
Block a user