From: Wolfram Sang Date: Thu, 25 Aug 2016 17:27:40 +0000 (+0200) Subject: Documentation: i2c: slave-interface: add note for driver development X-Git-Tag: v5.15~12897^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30851a7c2155d0b321485e66386ea99191d8b3f5;p=platform%2Fkernel%2Flinux-starfive.git 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 --- diff --git a/Documentation/i2c/slave-interface b/Documentation/i2c/slave-interface index 80807ad..7e2a228 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: * Catch the slave interrupts and send appropriate i2c_slave_events to the backend. +Note that most hardware supports being master _and_ slave on the same bus. So, +if you extend a bus driver, please make sure that the driver supports that as +well. In almost all cases, slave support does not need to disable the master +functionality. + Check the i2c-rcar driver as an example.