From: Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org>
To: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Cc: Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
"grant.likely@linaro.org"
<grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
"linux-kernel@vger.kernel.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"devicetree@vger.kernel.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH v2] mfd: lubbock_io: add lubbock_io board
Date: Thu, 08 Jan 2015 20:02:04 +0100 [thread overview]
Message-ID: <87y4pd2j0z.fsf@free.fr> (raw)
In-Reply-To: <20150108133404.GE10537@leverpostej> (Mark Rutland's message of "Thu, 8 Jan 2015 13:34:05 +0000")
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> writes:
> Hi Robert,
>
> Given the addition of an of_device_id table and some (implicit) property
> parsing, this requires a device tree binding document.
Yes, you're right. I'll prepare that.
>> + ret = devm_request_irq(&pdev->dev, cot->irq, lubbock_irq_handler, 0,
>> + dev_name(&pdev->dev), cot);
>> + if (ret == -ENOSYS)
>> + return -EPROBE_DEFER;
>> + if (ret) {
>> + dev_err(&pdev->dev, "Couldn't request GPIO : ret = %d\n", ret);
>> + return ret;
>> + }
>> + irq_set_irq_type(cot->irq, IRQ_TYPE_EDGE_FALLING);
>
> Shouldn't that be in the interrupt-specifier when using DT?
Maybe. But what about the platform data case ? I think I wanted to express the
multiple-NOR gate binding all incoming level interrupt into the output cot->irq
interrupt line going to GPIO0.
Do you have an idea for the platform data case ?
>> +static const struct of_device_id lubbock_id_table[] = {
>> + { .compatible = "marvell,lubbock_io", },
> When PXA25x it was Intel, not Marvell. So I think the vendor prefix
> should be "intel".
>
> Also s/_/-/ in property names and compatible strings please.
Ok for v3.
Thanks for the review.
--
Robert
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Mark Rutland <mark.rutland@arm.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
Lee Jones <lee.jones@linaro.org>,
"grant.likely\@linaro.org" <grant.likely@linaro.org>,
Rob Herring <robh+dt@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree\@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH v2] mfd: lubbock_io: add lubbock_io board
Date: Thu, 08 Jan 2015 20:02:04 +0100 [thread overview]
Message-ID: <87y4pd2j0z.fsf@free.fr> (raw)
In-Reply-To: <20150108133404.GE10537@leverpostej> (Mark Rutland's message of "Thu, 8 Jan 2015 13:34:05 +0000")
Mark Rutland <mark.rutland@arm.com> writes:
> Hi Robert,
>
> Given the addition of an of_device_id table and some (implicit) property
> parsing, this requires a device tree binding document.
Yes, you're right. I'll prepare that.
>> + ret = devm_request_irq(&pdev->dev, cot->irq, lubbock_irq_handler, 0,
>> + dev_name(&pdev->dev), cot);
>> + if (ret == -ENOSYS)
>> + return -EPROBE_DEFER;
>> + if (ret) {
>> + dev_err(&pdev->dev, "Couldn't request GPIO : ret = %d\n", ret);
>> + return ret;
>> + }
>> + irq_set_irq_type(cot->irq, IRQ_TYPE_EDGE_FALLING);
>
> Shouldn't that be in the interrupt-specifier when using DT?
Maybe. But what about the platform data case ? I think I wanted to express the
multiple-NOR gate binding all incoming level interrupt into the output cot->irq
interrupt line going to GPIO0.
Do you have an idea for the platform data case ?
>> +static const struct of_device_id lubbock_id_table[] = {
>> + { .compatible = "marvell,lubbock_io", },
> When PXA25x it was Intel, not Marvell. So I think the vendor prefix
> should be "intel".
>
> Also s/_/-/ in property names and compatible strings please.
Ok for v3.
Thanks for the review.
--
Robert
next prev parent reply other threads:[~2015-01-08 19:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-03 22:35 [PATCH v2] mfd: lubbock_io: add lubbock_io board Robert Jarzmik
2015-01-08 13:34 ` Mark Rutland
2015-01-08 19:02 ` Robert Jarzmik [this message]
2015-01-08 19:02 ` Robert Jarzmik
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=87y4pd2j0z.fsf@free.fr \
--to=robert.jarzmik-ganu6spqydw@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sameo-VuQAYsv1563Yd54FQh9/CA@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.