Thread (11 messages) 11 messages, 5 authors, 2012-12-10

Re: [PATCH] I2C: EXYNOS: Add slave support to i2c

From: Russell King - ARM Linux <hidden>
Date: 2012-12-07 12:33:58
Also in: linux-arm-kernel, linux-samsung-soc, lkml

On Fri, Dec 07, 2012 at 05:33:17PM +0530, Tushar Behera wrote:
On 12/03/2012 05:46 PM, Giridhar Maruthy wrote:
quoted
This patch adds slave support to i2c. The dt entry i2c-mode
decides at probe time if the controller needs to work in
slave mode and the controller is accordingly programmed.
(I don't have the original patches.)

Hmm.  How has slave-mode support been tested?

Remembering that I2C slave devices do not initiate bus accesses, all
accesses will be started by some other master.  How are you dealing
with the bytes received from the master, and how are you returning a
response to the master in reply to a read request?

We had support for this on PXA I2C through a callback from the driver
into PXA code (used for the Psion Teklogix Netbook device) and it worked
really well, but what you can't do is use the standard I2C interfaces
for slave mode.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help