linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* About one i2c failure issue after system reset
@ 2011-11-21  7:35 Jason Hui
       [not found] ` <CAFQ4atSRapXvhBnm=nH__zz2U=XRjxN4GK-JsXT=AEcKybANZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Hui @ 2011-11-21  7:35 UTC (permalink / raw)
  To: ben-linux-elnMNo+KYs3YtjvyW6yDsg, khali-PUYAD+kWke1g9hUCZPvPmw
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hi, Ben, Jean,

I have one issue about the i2c failure: there will be on-going i2c
transfer while system get reset.
At the time when the reset happens, the slave may pull the SDA to
LOW.After reset, the i2c master may reset, but
the slave may still pull the SDA to LOW since there is no reset pin
for the slave device to do i2c reset, thus
result in the further i2c access failure forever unless we completely
power off the system by pulling out
the battery.

I know we have the shutdown member function, but as I know there is
very less i2c master has implemented this
function correctly. I think we need take seriously about this issue,
do you have any comments? Thanks,


Jason Liu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: About one i2c failure issue after system reset
       [not found] ` <CAFQ4atSRapXvhBnm=nH__zz2U=XRjxN4GK-JsXT=AEcKybANZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-11-21 10:19   ` Rajeev kumar
  2011-11-21 11:49   ` Michael Lawnick
  1 sibling, 0 replies; 3+ messages in thread
From: Rajeev kumar @ 2011-11-21 10:19 UTC (permalink / raw)
  To: Jason Hui
  Cc: ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org,
	khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hello Jason

On 11/21/2011 1:05 PM, Jason Hui wrote:
> Hi, Ben, Jean,
>
> I have one issue about the i2c failure: there will be on-going i2c
> transfer while system get reset.
> At the time when the reset happens, the slave may pull the SDA to
> LOW.After reset, the i2c master may reset, but
> the slave may still pull the SDA to LOW since there is no reset pin
> for the slave device to do i2c reset, thus
> result in the further i2c access failure forever unless we completely
> power off the system by pulling out
> the battery.
>
This is not the only solution for this. Master can accomplishes error 
recovery by clocking Clock until Data is high and then issuing a Start 
followed by a Stop.

Best Regards
Rajeev
...

> I know we have the shutdown member function, but as I know there is
> very less i2c master has implemented this
> function correctly. I think we need take seriously about this issue,
> do you have any comments? Thanks,
>
>
> Jason Liu
> --
> To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: About one i2c failure issue after system reset
       [not found] ` <CAFQ4atSRapXvhBnm=nH__zz2U=XRjxN4GK-JsXT=AEcKybANZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2011-11-21 10:19   ` Rajeev kumar
@ 2011-11-21 11:49   ` Michael Lawnick
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Lawnick @ 2011-11-21 11:49 UTC (permalink / raw)
  To: Jason Hui; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Am 21.11.2011 08:35, schrieb Jason Hui:
> Hi, Ben, Jean,
> 
> I have one issue about the i2c failure: there will be on-going i2c
> transfer while system get reset.
> At the time when the reset happens, the slave may pull the SDA to
> LOW.After reset, the i2c master may reset, but
> the slave may still pull the SDA to LOW since there is no reset pin
> for the slave device to do i2c reset, thus
> result in the further i2c access failure forever unless we completely
> power off the system by pulling out
> the battery.
> 

This is a common failure scenario and should be solved by your adapter
driver automatically by issuing 9 clock cycles on detection.
-- 
KR
Michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-21 11:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-21  7:35 About one i2c failure issue after system reset Jason Hui
     [not found] ` <CAFQ4atSRapXvhBnm=nH__zz2U=XRjxN4GK-JsXT=AEcKybANZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-21 10:19   ` Rajeev kumar
2011-11-21 11:49   ` Michael Lawnick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).