<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I guess the I2C spec does not restricts.(A device to have an address that fits in the first 7 bits, but still requires 10 bit address transactions)<br><br>But I don't think their will be any I2C slave doing this. <br><br>Why a 7 bit slave want to have extra byte for every transaction?<br><br>Note: I am on vacation with limited e-mail access. I will be back on Nov 26.<br><br>Thanks,<br>-Bharat<br><br><br><div>> From: grant.likely@secretlab.ca<br>> Date: Thu, 15 Nov 2012 16:53:59 +0000<br>> Subject: Re: [PATCH] of_i2c: I2C child node 10-bit client addressing<br>> To: bharat_404@hotmail.com<br>> CC: devicetree-discuss@lists.ozlabs.org; jochen@scram.de; jonsmirl@gmail.com<br>> <br>> On Thu, Nov 15, 2012 at 9:35 AM,  <bharat_404@hotmail.com> wrote:<br>> > From: Bharat Kumar Reddy <bharat_404@hotmail.com><br>> ><br>> > I2C clients which has 10 bit address, struct i2c_board_info,<br>> > member "flags = I2C_CLIENT_TEN" is needed.<br>> ><br>> > Signed-off-by: Bharat Kumar Reddy <bharat_404@hotmail.com><br>> <br>> Did you see my questions from yesterday?<br>> <br>> g.<br>> <br>> ><br>> > diff --git a/drivers/of/of_i2c.c b/drivers/of/of_i2c.c<br>> > index 3550f3b..28c5566 100644<br>> > --- a/drivers/of/of_i2c.c<br>> > +++ b/drivers/of/of_i2c.c<br>> > @@ -57,6 +57,10 @@ void of_i2c_register_devices(struct i2c_adapter *adap)<br>> >                         continue;<br>> >                 }<br>> ><br>> > +               /* Support for i2c 10 bit client address */<br>> > +               if ((info.addr > (1 << 7) - 1) && (info.addr <= (1 << 10) - 1))<br>> > +                       info.flags = I2C_CLIENT_TEN;<br>> > +<br>> >                 info.irq = irq_of_parse_and_map(node, 0);<br>> >                 info.of_node = of_node_get(node);<br>> >                 info.archdata = &dev_ad;<br>> > --<br>> > 1.7.6<br>> ><br>> ><br>> <br>> <br>> <br>> -- <br>> Grant Likely, B.Sc., P.Eng.<br>> Secret Lab Technologies Ltd.<br></div>                                           </div></body>
</html>