Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39525ee1 authored by Arron Wang's avatar Arron Wang Committed by Samuel Ortiz
Browse files

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: default avatarArron Wang <arron.wang@intel.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 2c383283
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -589,6 +589,8 @@ int nfc_enable_se(struct nfc_dev *dev, u32 se_idx)
	}
	}


	rc = dev->ops->enable_se(dev, se_idx);
	rc = dev->ops->enable_se(dev, se_idx);
	if (rc >= 0)
		se->state = NFC_SE_ENABLED;


error:
error:
	device_unlock(&dev->dev);
	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);
	rc = dev->ops->disable_se(dev, se_idx);
	if (rc >= 0)
		se->state = NFC_SE_DISABLED;


error:
error:
	device_unlock(&dev->dev);
	device_unlock(&dev->dev);