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

Commit 96bd0b5e authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Samuel Ortiz
Browse files

nfc: nxp-nci: use msleep for long delays

ulseep_range() uses hrtimers and provides no advantage over msleep()
for larger delays. For this large delay msleep() is preferable.

Fixes: commit 6be88670 ("NFC: nxp-nci_i2c: Add I2C support to NXP NCI driver")
Link: http://lkml.org/lkml/2017/1/11/377


Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 8f79ded9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ static int nxp_nci_i2c_write(void *phy_id, struct sk_buff *skb)
	r = i2c_master_send(client, skb->data, skb->len);
	if (r < 0) {
		/* Retry, chip was in standby */
		usleep_range(110000, 120000);
		msleep(110);
		r = i2c_master_send(client, skb->data, skb->len);
	}