Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
38fa8aff
Commit
38fa8aff
authored
Jul 23, 2016
by
Wolfram Sang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation: i2c: slave: describe buffer problems a bit better
Signed-off-by:
Wolfram Sang
<
wsa@the-dreams.de
>
parent
85946abc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
Documentation/i2c/slave-interface
Documentation/i2c/slave-interface
+8
-7
No files found.
Documentation/i2c/slave-interface
View file @
38fa8aff
...
@@ -173,13 +173,14 @@ During development of this API, the question of using buffers instead of just
...
@@ -173,13 +173,14 @@ During development of this API, the question of using buffers instead of just
bytes came up. Such an extension might be possible, usefulness is unclear at
bytes came up. Such an extension might be possible, usefulness is unclear at
this time of writing. Some points to keep in mind when using buffers:
this time of writing. Some points to keep in mind when using buffers:
* Buffers should be opt-in and slave drivers will always have to support
* Buffers should be opt-in and backend drivers will always have to support
byte-based transactions as the ultimate fallback because this is how the
byte-based transactions as the ultimate fallback anyhow because this is how
majority of HW works.
the majority of HW works.
* For backends simulating hardware registers, buffers are not helpful because
* For backends simulating hardware registers, buffers are largely not helpful
on writes an action should be immediately triggered. For reads, the data in
because after each byte written an action should be immediately triggered.
the buffer might get stale.
For reads, the data kept in the buffer might get stale if the backend just
updated a register because of internal processing.
* A master can send STOP at any time. For partially transferred buffers, this
* A master can send STOP at any time. For partially transferred buffers, this
means additional code to handle this exception. Such code tends to be
means additional code to handle this exception. Such code tends to be
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment