From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [PATCH] of_i2c: I2C child node 10-bit client addressing Date: Wed, 14 Nov 2012 16:30:40 +0000 Message-ID: <20121114163040.DA7FD3E0B7C@localhost> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" Cc: "jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , Bharat Reddy List-Id: devicetree@vger.kernel.org On Fri, 12 Oct 2012 09:12:48 +0530, Bharat Reddy wrote: > I2C clients which has 10 bit address, struct i2c_board_info, > member "flags = I2C_CLIENT_TEN" is needed. > > Signed-off-by: Bharat Kumar Reddy Gooty Also, the patch appears to have been corrupted because it wasn't posted as plain text. I can't easly apply things that are sent that way. What are you using to email patches? (Cut-and-paste into an email client generally doesn't work for submitting patches) g. > --- > drivers/of/of_i2c.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/of/of_i2c.c b/drivers/of/of_i2c.c > index 1e173f3..9cda7e2 100644 > --- a/drivers/of/of_i2c.c > +++ b/drivers/of/of_i2c.c > @@ -57,6 +57,10 @@ void of_i2c_register_devices(struct i2c_adapter *adap) > continue; > } > > + /* Support for i2c 10 bit client address */ > + if ((info.addr > (1 << 7) - 1) && (info.addr <= (1 << 10) - 1)) > + info.flags = I2C_CLIENT_TEN; > + > info.irq = irq_of_parse_and_map(node, 0); > info.of_node = of_node_get(node); > info.archdata = &dev_ad; > -- > 1.7.9.5 > > > Non-text part: text/html > _______________________________________________ > devicetree-discuss mailing list > devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org > https://lists.ozlabs.org/listinfo/devicetree-discuss -- Grant Likely, B.Sc, P.Eng. Secret Lab Technologies, Ltd.