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

Commit eae202aa authored by Eric Lapuyade's avatar Eric Lapuyade Committed by John W. Linville
Browse files

NFC: update PN544 HCI driver state when opened/closed

parent 36516268
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -377,6 +377,9 @@ static int pn544_hci_open(struct nfc_shdlc *shdlc)

	r = pn544_hci_enable(info, HCI_MODE);

	if (r == 0)
		info->state = PN544_ST_READY;

out:
	mutex_unlock(&info->info_lock);
	return r;
@@ -393,6 +396,8 @@ static void pn544_hci_close(struct nfc_shdlc *shdlc)

	pn544_hci_disable(info);

	info->state = PN544_ST_COLD;

out:
	mutex_unlock(&info->info_lock);
}