Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1210461 > unrolled thread

Re: [PATCH v3 1/4] i2c: tegra: implement slave mode

Started byAndrey Danin <danindrey@mail.ru>
First post2015-08-20 14:20 +0200
Last post2015-08-20 14:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3 1/4] i2c: tegra: implement slave mode Andrey Danin <danindrey@mail.ru> - 2015-08-20 14:20 +0200

#1210461 — Re: [PATCH v3 1/4] i2c: tegra: implement slave mode

FromAndrey Danin <danindrey@mail.ru>
Date2015-08-20 14:20 +0200
SubjectRe: [PATCH v3 1/4] i2c: tegra: implement slave mode
Message-ID<pZwZ4-4Ab-33@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On 24.07.2015 13:52, Wolfram Sang wrote:
>
>> At the begin of my work on this patchset I even denied clock disable call if
>> slave is registered (to minimize code that can affect transfer).
>
> I hacked something like this, but it seems it was not enough.
>
>> If only slave mode is used, then this logic is not needed.
>
> This is not sufficent. We shouldn't break being a master only because we
> also listen to a slave address (as long as the HW supports that of
> course).
>
>> tegra_i2c_init is called on probe and resume. Also it is called in case of
>> xfer fail. If xfer is ok, then I think slave addr must be kept unchanged.
>
> This is fragile. Try scanning the bus with i2cdetect and slave setup
> will be gone.
>
>> As far as I understand it is a loopback mode. Probably it will not work
>> (Stephen Warren already mentioned this).
>
> Just to make clear: I am not saying we should support talking to our own
> slave address. But it should still be possible to communicate with other
> remote devices on the bus.

Sorry for the long delay. I tried to analyze the issue. Attached patch 
works on AC100 (Misha Komarovsky helped me with testing).

Wolfram could you please try the patch with your environment?


Thanks.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web