From: Archit Taneja <archit@ti.com>
To: Tomasz Figa <tomasz.figa@gmail.com>
Cc: devicetree@vger.kernel.org,
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
Linus Walleij <linus.walleij@linaro.org>,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,
Sylwester Nawrocki <sylvester.nawrocki@gmail.com>,
linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v5] gpio: pcf857x: Add OF support
Date: Tue, 27 Aug 2013 14:00:24 +0530 [thread overview]
Message-ID: <521C63A0.10902@ti.com> (raw)
In-Reply-To: <2063335.Uqxok8bYMn@flatron>
Hi,
On Tuesday 27 August 2013 01:44 PM, Tomasz Figa wrote:
> Hi Laurent,
>
> On Tuesday 27 of August 2013 10:02:39 Laurent Pinchart wrote:
>> Add DT bindings for the pcf857x-compatible chips and parse the device
>> tree node in the driver.
>>
>> Signed-off-by: Laurent Pinchart
>> <laurent.pinchart+renesas@ideasonboard.com> ---
>> .../devicetree/bindings/gpio/gpio-pcf857x.txt | 71
>> ++++++++++++++++++++++ drivers/gpio/gpio-pcf857x.c
>> | 44 +++++++++++--- 2 files changed, 107 insertions(+), 8
>> deletions(-)
>> create mode 100644
>> Documentation/devicetree/bindings/gpio/gpio-pcf857x.txt
>>
>> Changes since v4:
>>
>> - Don't try to get ngpio from of_device_id data, we already get it from
>> i2c_device_id
>
> Hmm, I'm not sure how this is supposed to work.
>
> How does the I2C core resolve OF compatible name to particular entry in
> id_table? I believe it simply passes NULL as the second argument of
> .probe() if the device is instantiated based on OF compatible string and
> not one in the legacy ID table.
It doesn't pass the second argument as NULL. If you look at
i2c_device_probe() in drivers/i2c/i2c-core.c, the second argument to
probe is passed as: i2c_match_id(driver->id_table, client)
This will extract the i2c_device_id pointer from the id_table.
Archit
WARNING: multiple messages have this Message-ID (diff)
From: archit@ti.com (Archit Taneja)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5] gpio: pcf857x: Add OF support
Date: Tue, 27 Aug 2013 14:00:24 +0530 [thread overview]
Message-ID: <521C63A0.10902@ti.com> (raw)
In-Reply-To: <2063335.Uqxok8bYMn@flatron>
Hi,
On Tuesday 27 August 2013 01:44 PM, Tomasz Figa wrote:
> Hi Laurent,
>
> On Tuesday 27 of August 2013 10:02:39 Laurent Pinchart wrote:
>> Add DT bindings for the pcf857x-compatible chips and parse the device
>> tree node in the driver.
>>
>> Signed-off-by: Laurent Pinchart
>> <laurent.pinchart+renesas@ideasonboard.com> ---
>> .../devicetree/bindings/gpio/gpio-pcf857x.txt | 71
>> ++++++++++++++++++++++ drivers/gpio/gpio-pcf857x.c
>> | 44 +++++++++++--- 2 files changed, 107 insertions(+), 8
>> deletions(-)
>> create mode 100644
>> Documentation/devicetree/bindings/gpio/gpio-pcf857x.txt
>>
>> Changes since v4:
>>
>> - Don't try to get ngpio from of_device_id data, we already get it from
>> i2c_device_id
>
> Hmm, I'm not sure how this is supposed to work.
>
> How does the I2C core resolve OF compatible name to particular entry in
> id_table? I believe it simply passes NULL as the second argument of
> .probe() if the device is instantiated based on OF compatible string and
> not one in the legacy ID table.
It doesn't pass the second argument as NULL. If you look at
i2c_device_probe() in drivers/i2c/i2c-core.c, the second argument to
probe is passed as: i2c_match_id(driver->id_table, client)
This will extract the i2c_device_id pointer from the id_table.
Archit
WARNING: multiple messages have this Message-ID (diff)
From: Archit Taneja <archit@ti.com>
To: Tomasz Figa <tomasz.figa@gmail.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
<linux-gpio@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-omap@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<devicetree@vger.kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Subject: Re: [PATCH v5] gpio: pcf857x: Add OF support
Date: Tue, 27 Aug 2013 14:00:24 +0530 [thread overview]
Message-ID: <521C63A0.10902@ti.com> (raw)
In-Reply-To: <2063335.Uqxok8bYMn@flatron>
Hi,
On Tuesday 27 August 2013 01:44 PM, Tomasz Figa wrote:
> Hi Laurent,
>
> On Tuesday 27 of August 2013 10:02:39 Laurent Pinchart wrote:
>> Add DT bindings for the pcf857x-compatible chips and parse the device
>> tree node in the driver.
>>
>> Signed-off-by: Laurent Pinchart
>> <laurent.pinchart+renesas@ideasonboard.com> ---
>> .../devicetree/bindings/gpio/gpio-pcf857x.txt | 71
>> ++++++++++++++++++++++ drivers/gpio/gpio-pcf857x.c
>> | 44 +++++++++++--- 2 files changed, 107 insertions(+), 8
>> deletions(-)
>> create mode 100644
>> Documentation/devicetree/bindings/gpio/gpio-pcf857x.txt
>>
>> Changes since v4:
>>
>> - Don't try to get ngpio from of_device_id data, we already get it from
>> i2c_device_id
>
> Hmm, I'm not sure how this is supposed to work.
>
> How does the I2C core resolve OF compatible name to particular entry in
> id_table? I believe it simply passes NULL as the second argument of
> .probe() if the device is instantiated based on OF compatible string and
> not one in the legacy ID table.
It doesn't pass the second argument as NULL. If you look at
i2c_device_probe() in drivers/i2c/i2c-core.c, the second argument to
probe is passed as: i2c_match_id(driver->id_table, client)
This will extract the i2c_device_id pointer from the id_table.
Archit
next prev parent reply other threads:[~2013-08-27 8:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-27 8:02 [PATCH v5] gpio: pcf857x: Add OF support Laurent Pinchart
2013-08-27 8:02 ` Laurent Pinchart
2013-08-27 8:14 ` Tomasz Figa
2013-08-27 8:14 ` Tomasz Figa
2013-08-27 8:30 ` Archit Taneja [this message]
2013-08-27 8:30 ` Archit Taneja
2013-08-27 8:30 ` Archit Taneja
2013-08-27 11:55 ` Tomasz Figa
2013-08-27 11:55 ` Tomasz Figa
2013-08-27 12:56 ` Laurent Pinchart
2013-08-27 12:56 ` Laurent Pinchart
2013-08-27 17:18 ` Wolfram Sang
2013-08-27 17:18 ` Wolfram Sang
2013-08-28 11:58 ` Laurent Pinchart
2013-08-28 11:58 ` Laurent Pinchart
2013-08-29 18:24 ` Linus Walleij
2013-08-29 18:24 ` Linus Walleij
2013-08-29 23:44 ` Laurent Pinchart
2013-08-29 23:44 ` Laurent Pinchart
2013-08-29 23:52 ` Laurent Pinchart
2013-08-29 23:52 ` Laurent Pinchart
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=521C63A0.10902@ti.com \
--to=archit@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=sylvester.nawrocki@gmail.com \
--cc=tomasz.figa@gmail.com \
/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.