linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ezequiel Garcia <ezequiel.garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
To: Vladimir Zapolskiy
	<vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>,
	James Hogan <james.hogan-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>,
	Andrew Bresticker
	<abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>,
	James Hartley
	<james.hartley-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2 1/2] i2c: Add Imagination Technologies I2C SCB driver
Date: Wed, 5 Nov 2014 09:04:07 -0300	[thread overview]
Message-ID: <545A1237.4010207@imgtec.com> (raw)
In-Reply-To: <5459D3CB.9060204-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>



On 11/05/2014 04:37 AM, Vladimir Zapolskiy wrote:
> Hi Ezequiel,
> 
> On 04.11.2014 22:37, Ezequiel Garcia wrote:
>> From: James Hogan <james.hogan-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
>>
>> Add support for the IMG I2C Serial Control Bus (SCB) found on the
>> Pistachio and TZ1090 SoCs.
>>
>> Signed-off-by: James Hogan <james.hogan-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
>> [Ezequiel: code cleaning and rebasing]
>> Signed-off-by: Ezequiel Garcia <ezequiel.garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
>> ---
>>  drivers/i2c/busses/Kconfig       |   10 +
>>  drivers/i2c/busses/Makefile      |    1 +
>>  drivers/i2c/busses/i2c-img-scb.c | 1410 ++++++++++++++++++++++++++++++++++++++
>>  3 files changed, 1421 insertions(+)
>>  create mode 100644 drivers/i2c/busses/i2c-img-scb.c
>>
>> diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-scb.c
>> new file mode 100644
>> index 0000000..79ad85e
>> --- /dev/null
>> +++ b/drivers/i2c/busses/i2c-img-scb.c
>> @@ -0,0 +1,1410 @@
>> +/*
>> + * I2C adapter for the IMG Serial Control Bus (SCB) IP block.
>> + *
> 
> [snip]
> 
>> +	/*
>> +	 * Get the bus number from the devicetree. Other I2C adapters may be
>> +	 * reserved for non-Linux core. Instead of letting Linux pick any
>> +	 * number, it's useful to fix the bus number so users get a consistent
>> +	 * view.
>> +	 */
>> +	ret = of_property_read_u32(node, "linux,i2c-index", &val);
>> +	if (!ret)
>> +		i2c->adap.nr = val;
>> +	else
>> +		i2c->adap.nr = pdev->id;
>> +
> 
> if I'm not mistaken "linux,i2c-index" property is redundant, talking
> about Linux you can set up an arbitrary bus number by specifying a DTS
> alias.
> 
> Most probably just
> 
>     i2c->adap.nr = pdev->id;
> 
> may serve your purposes.
> 

Argh, forgot to remove this one.

Thanks,
-- 
Ezequiel

  parent reply	other threads:[~2014-11-05 12:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 20:37 [PATCH v2 0/2] i2c: Imagination Technologies I2C adapter driver Ezequiel Garcia
     [not found] ` <1415133430-25355-1-git-send-email-ezequiel.garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2014-11-04 20:37   ` [PATCH v2 1/2] i2c: Add Imagination Technologies I2C SCB driver Ezequiel Garcia
     [not found]     ` <1415133430-25355-2-git-send-email-ezequiel.garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2014-11-05  7:37       ` Vladimir Zapolskiy
     [not found]         ` <5459D3CB.9060204-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2014-11-05 12:04           ` Ezequiel Garcia [this message]
2014-11-04 20:37   ` [PATCH v2 2/2] DT: i2c: Add binding document for IMG I2C SCB Ezequiel Garcia

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=545A1237.4010207@imgtec.com \
    --to=ezequiel.garcia-1axoqhu6uovqt0dzr+alfa@public.gmane.org \
    --cc=abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=james.hartley-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org \
    --cc=james.hogan-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org \
    --cc=wsa-z923LK4zBo2bacvFa/9K2g@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).