Skip to content

Conversation

@agambier
Copy link

If NFC chip is not responding, the read operations can be blocking.

This PR implement :

  • timeout is defined in device tree with nxp,nxpnfc-read-timeout. If omitted the timeout is set to 0 (disabled).
  • timeout for I2C & SPI read operations.

Tested with a PN7160.

pr_err("%s: timeout error\n",
__func__);
// pr_err("%s: timeout error\n",
// __func__);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the timeout error message commented out?
There should be feedback to the user when a read timeout occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants