From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH][resend] iMX/MXC support for I2C Date: Thu, 4 Dec 2008 13:30:00 +0000 Message-ID: <20081204132959.GC8019@sirena.org.uk> References: <49378B1A.7030909@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <49378B1A.7030909-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Darius Cc: Guennadi Liakhovetski , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Thu, Dec 04, 2008 at 09:47:38AM +0200, Darius wrote: > This means I should use shifted address in platform data? > For example: OV7670 image sensor has slave address 0x42 for write, and > 0x43 for read operations. > This is hardware slave address, to which device responds. > But I should use 0x21 in platform data, because it must be doubled in > adapter driver? Yes, exactly. Linux does not treat the read/write bit as part of the address.