From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Sat, 11 Jun 2005 16:41:43 +0200 Subject: [U-Boot-Users] [PATCH] soft_i2c/i2c_probe(): Perform reads instead of writes In-Reply-To: <42964F22.60600@orkun.us> (Tolunay Orkun's message of "Thu, 26 May 2005 17:35:14 -0500") References: <87ekbt3g7h.fsf@p4.48ers.dk> <42964F22.60600@orkun.us> Message-ID: <87hdg5c5w8.fsf@p4.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >>>>> "Tolunay" == Tolunay Orkun writes: Hi, and sorry for the slow response! Tolunay> Peter, I believe the implementation was correct but the Tolunay> comment was wrong. It should be a write transaction with Tolunay> just address byte. After the address byte is transmitted the Tolunay> I2C slave will acknowledge (if present) and we finish the Tolunay> transaction by generating the stop condition. i.e. fake Tolunay> write. Why write? Wouldn't a zero byte read transaction be safer? -- Bye, Peter Korsgaard