Subject: Re: i2c bitbanging
To: Michael Lorenz <macallan@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 04/29/2007 15:09:44
On Apr 27, 2007, at 8:56 PM, Michael Lorenz wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> looks like the routines in dev/i2c/i2c_bitbang.c don't support  
> synchronisation ( as in - when raising SCL wait until the SCL line  
> is actually up )

Well, some devices supported by that code can't really tell, IIRC,  
which is why it has delay loops instead.

> which gives endless troubles with slow i2c devices, like DDC2  
> monitors.
> Any objections against adding that ( with reasonable bail-out timer  
> of course ) to i2c_bitbang_read_byte() and i2c_bitbang_write_byte() ?
>
> have fun
> Michael
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
>
> iQEVAwUBRjLF4spnzkX8Yg2nAQJCtAf/YdeOqumdkTm62Fh2O9gUHf4lh9BfXmGs
> Svs7K4T9d3aIqk4XjYwzSb2mSP3YCaW109Bp+R0JTUeN65LVj7PO47CN6EK6Slu5
> +PFIf91HBHX7V5zQ9NyCSzT4pqKDOluhp8/ECyvHzgoT7Cp8QgkMRLq2giVtfzw+
> k+hOyabALYtrx05J62PIjzwDHyTlRf08NgnwbzL/jeI87WLlxfJk97yEt63iUpO6
> 2IXilSJTa0V4+X1sbfBVCG0uBoRATbMfCd+L3nnCCC6ZxziLNVwXo9Mu7cvrpmIe
> A6OzgEMnxd2XX2Ow0SBbBxXe/ifGL7hhsfA3qzhi8REZJtFxS0sZyQ==
> =G5NW
> -----END PGP SIGNATURE-----

-- thorpej