Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for timeout during read operations #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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