All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org"
	<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>
Cc: "jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
	<jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Bharat Reddy <bharat_404-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
Subject: Re: [PATCH] of_i2c: I2C child node 10-bit client addressing
Date: Wed, 14 Nov 2012 16:30:40 +0000	[thread overview]
Message-ID: <20121114163040.DA7FD3E0B7C@localhost> (raw)
In-Reply-To: <BLU002-W134A2F0BA0EF1C3BF8E491EAC8C0-MsuGFMq8XAE@public.gmane.org>

On Fri, 12 Oct 2012 09:12:48 +0530, Bharat Reddy <bharat_404-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> 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 <bharat_404-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>

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.

  parent reply	other threads:[~2012-11-14 16:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12  3:42 [PATCH] of_i2c: I2C child node 10-bit client addressing Bharat Reddy
     [not found] ` <BLU002-W134A2F0BA0EF1C3BF8E491EAC8C0-MsuGFMq8XAE@public.gmane.org>
2012-11-14 16:27   ` Grant Likely
2012-11-14 16:30   ` Grant Likely [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-11-15  9:35 bharat_404-PkbjNfxxIARBDgjK7y7TUQ
     [not found] ` <1352972157-21299-1-git-send-email-bharat_404-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
2012-11-15 16:53   ` Grant Likely
     [not found]     ` <CACxGe6uSWy0-qZ3qYk5kfZzkxuyeZn0HMuzz+UU=6bGtGds1Hw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-16 13:12       ` Bharat Reddy
     [not found]         ` <BLU002-W228A2064248B1A622AA97D6AC510-MsuGFMq8XAE@public.gmane.org>
2012-11-16 14:09           ` Grant Likely
2013-01-13  3:03 Stephen Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121114163040.DA7FD3E0B7C@localhost \
    --to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
    --cc=bharat_404-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.