diff options
| author | Wolfram Sang <wsa@the-dreams.de> | 2016-08-25 13:27:40 -0400 |
|---|---|---|
| committer | Wolfram Sang <wsa@the-dreams.de> | 2016-09-08 10:57:14 -0400 |
| commit | 30851a7c2155d0b321485e66386ea99191d8b3f5 (patch) | |
| tree | c4d9cd960ee59266338b7b3f645151c2287d2314 /Documentation/i2c | |
| parent | e35478eac030990e23a56bf11dc074c5a069124a (diff) | |
Documentation: i2c: slave-interface: add note for driver development
Make it clear that adding slave support shall not disable master
functionality. We can have both, so we should.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Documentation/i2c')
| -rw-r--r-- | Documentation/i2c/slave-interface | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/i2c/slave-interface b/Documentation/i2c/slave-interface index 80807adb8ded..7e2a228f21bc 100644 --- a/Documentation/i2c/slave-interface +++ b/Documentation/i2c/slave-interface | |||
| @@ -145,6 +145,11 @@ If you want to add slave support to the bus driver: | |||
| 145 | 145 | ||
| 146 | * Catch the slave interrupts and send appropriate i2c_slave_events to the backend. | 146 | * Catch the slave interrupts and send appropriate i2c_slave_events to the backend. |
| 147 | 147 | ||
| 148 | Note that most hardware supports being master _and_ slave on the same bus. So, | ||
| 149 | if you extend a bus driver, please make sure that the driver supports that as | ||
| 150 | well. In almost all cases, slave support does not need to disable the master | ||
| 151 | functionality. | ||
| 152 | |||
| 148 | Check the i2c-rcar driver as an example. | 153 | Check the i2c-rcar driver as an example. |
| 149 | 154 | ||
| 150 | 155 | ||
