diff options
Diffstat (limited to 'Documentation/i2c/i2c-stub')
-rw-r--r-- | Documentation/i2c/i2c-stub | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/i2c/i2c-stub b/Documentation/i2c/i2c-stub index 89e69ad3436..0d8be1c20c1 100644 --- a/Documentation/i2c/i2c-stub +++ b/Documentation/i2c/i2c-stub | |||
@@ -25,6 +25,9 @@ The typical use-case is like this: | |||
25 | 3. load the target sensors chip driver module | 25 | 3. load the target sensors chip driver module |
26 | 4. observe its behavior in the kernel log | 26 | 4. observe its behavior in the kernel log |
27 | 27 | ||
28 | There's a script named i2c-stub-from-dump in the i2c-tools package which | ||
29 | can load register values automatically from a chip dump. | ||
30 | |||
28 | PARAMETERS: | 31 | PARAMETERS: |
29 | 32 | ||
30 | int chip_addr[10]: | 33 | int chip_addr[10]: |
@@ -32,9 +35,6 @@ int chip_addr[10]: | |||
32 | 35 | ||
33 | CAVEATS: | 36 | CAVEATS: |
34 | 37 | ||
35 | There are independent arrays for byte/data and word/data commands. Depending | ||
36 | on if/how a target driver mixes them, you'll need to be careful. | ||
37 | |||
38 | If your target driver polls some byte or word waiting for it to change, the | 38 | If your target driver polls some byte or word waiting for it to change, the |
39 | stub could lock it up. Use i2cset to unlock it. | 39 | stub could lock it up. Use i2cset to unlock it. |
40 | 40 | ||