Skip to content

Commit

Permalink
nfc: nxp-nci: use msleep for long delays
Browse files Browse the repository at this point in the history
ulseep_range() uses hrtimers and provides no advantage over msleep()
for larger delays. For this large delay msleep() is preferable.

Fixes: commit 6be8867 ("NFC: nxp-nci_i2c: Add I2C support to NXP NCI driver")
Link: http://lkml.org/lkml/2017/1/11/377
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Nicholas Mc Guire authored and Samuel Ortiz committed Apr 1, 2017
1 parent 8f79ded commit 96bd0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nfc/nxp-nci/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 96bd0b5

Please sign in to comment.