From: "Ivan T. Ivanov" <iivanov@mm-sol.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/7] pinctrl: pinconf-generic: Allow driver to specify DT params
Date: Tue, 18 Nov 2014 08:50:21 +0000 [thread overview]
Message-ID: <1416300621.30131.6.camel@mm-sol.com> (raw)
In-Reply-To: <CACRpkdYfj2ydLQ4q_FKwXo73jzNsvj9u2Aem9EiuEw-OCvurrg@mail.gmail.com>
On Tue, 2014-11-11 at 15:53 +0100, Linus Walleij wrote:
> On Mon, Nov 3, 2014 at 8:05 PM, Soren Brinkmann
> brinkmann@xilinx.com> wrote:
>
> > Additionally to the generic DT parameters, allow drivers to provide
> > driver-specific DT parameters to be used with the generic parser
> > infrastructure.
> >
> > Signed-off-by: Soren Brinkmann brinkmann@xilinx.com>
>
> I like the looks of this, but the patch description is a bit terse.
> I'd like it to describe some of the refactorings being done
> to the intrinsics, because I have a hard time following the patch.
>
> First please rebase onto the "devel" branch in the pin control
> tree, and notice that drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
> which is merged there is actually doing this already:
>
>
> for_each_child_of_node(np_config, np) {
> ret = pinconf_generic_dt_subnode_to_map(pctldev, np, map,
> &reserv, nmaps, type);
> if (ret)
> break;
>
> ret = pmic_gpio_dt_subnode_to_map(pctldev, np, map, &reserv,
> nmaps, type);
> if (ret)
> break;
> }
>
> So it should be patched to illustrate the point of this code.
>
I like the idea, but have issues with implementations :-).
It is supposed that additional parameters are not generic,
otherwise they will be part of enum pin_config_param, right?
Probably it will be better if clients could pass array with
driver specific dt bindings to pinconf_generic_dt_node_to_map()?
Regards,
Ivan
WARNING: multiple messages have this Message-ID (diff)
From: iivanov@mm-sol.com (Ivan T. Ivanov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/7] pinctrl: pinconf-generic: Allow driver to specify DT params
Date: Tue, 18 Nov 2014 10:50:21 +0200 [thread overview]
Message-ID: <1416300621.30131.6.camel@mm-sol.com> (raw)
In-Reply-To: <CACRpkdYfj2ydLQ4q_FKwXo73jzNsvj9u2Aem9EiuEw-OCvurrg@mail.gmail.com>
On Tue, 2014-11-11 at 15:53 +0100, Linus Walleij wrote:
> On Mon, Nov 3, 2014 at 8:05 PM, Soren Brinkmann
> brinkmann at xilinx.com> wrote:
>
> > Additionally to the generic DT parameters, allow drivers to provide
> > driver-specific DT parameters to be used with the generic parser
> > infrastructure.
> >
> > Signed-off-by: Soren Brinkmann brinkmann at xilinx.com>
>
> I like the looks of this, but the patch description is a bit terse.
> I'd like it to describe some of the refactorings being done
> to the intrinsics, because I have a hard time following the patch.
>
> First please rebase onto the "devel" branch in the pin control
> tree, and notice that drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
> which is merged there is actually doing this already:
>
>
> for_each_child_of_node(np_config, np) {
> ret = pinconf_generic_dt_subnode_to_map(pctldev, np, map,
> &reserv, nmaps, type);
> if (ret)
> break;
>
> ret = pmic_gpio_dt_subnode_to_map(pctldev, np, map, &reserv,
> nmaps, type);
> if (ret)
> break;
> }
>
> So it should be patched to illustrate the point of this code.
>
I like the idea, but have issues with implementations :-).
It is supposed that additional parameters are not generic,
otherwise they will be part of enum pin_config_param, right?
Probably it will be better if clients could pass array with
driver specific dt bindings to pinconf_generic_dt_node_to_map()?
Regards,
Ivan
WARNING: multiple messages have this Message-ID (diff)
From: "Ivan T. Ivanov" <iivanov@mm-sol.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Soren Brinkmann <soren.brinkmann@xilinx.com>,
Bjorn Andersson <Bjorn.Andersson@sonymobile.com>,
Michal Simek <michal.simek@xilinx.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Alessandro Rubini <rubini@unipv.it>,
Heiko Stuebner <heiko@sntech.de>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-rockchip@lists.infradead.org,
"linux-sh@vger.kernel.org" <linux-sh@vger.kernel.org>
Subject: Re: [PATCH 3/7] pinctrl: pinconf-generic: Allow driver to specify DT params
Date: Tue, 18 Nov 2014 10:50:21 +0200 [thread overview]
Message-ID: <1416300621.30131.6.camel@mm-sol.com> (raw)
In-Reply-To: <CACRpkdYfj2ydLQ4q_FKwXo73jzNsvj9u2Aem9EiuEw-OCvurrg@mail.gmail.com>
On Tue, 2014-11-11 at 15:53 +0100, Linus Walleij wrote:
> On Mon, Nov 3, 2014 at 8:05 PM, Soren Brinkmann
> brinkmann@xilinx.com> wrote:
>
> > Additionally to the generic DT parameters, allow drivers to provide
> > driver-specific DT parameters to be used with the generic parser
> > infrastructure.
> >
> > Signed-off-by: Soren Brinkmann brinkmann@xilinx.com>
>
> I like the looks of this, but the patch description is a bit terse.
> I'd like it to describe some of the refactorings being done
> to the intrinsics, because I have a hard time following the patch.
>
> First please rebase onto the "devel" branch in the pin control
> tree, and notice that drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
> which is merged there is actually doing this already:
>
>
> for_each_child_of_node(np_config, np) {
> ret = pinconf_generic_dt_subnode_to_map(pctldev, np, map,
> &reserv, nmaps, type);
> if (ret)
> break;
>
> ret = pmic_gpio_dt_subnode_to_map(pctldev, np, map, &reserv,
> nmaps, type);
> if (ret)
> break;
> }
>
> So it should be patched to illustrate the point of this code.
>
I like the idea, but have issues with implementations :-).
It is supposed that additional parameters are not generic,
otherwise they will be part of enum pin_config_param, right?
Probably it will be better if clients could pass array with
driver specific dt bindings to pinconf_generic_dt_node_to_map()?
Regards,
Ivan
next prev parent reply other threads:[~2014-11-18 8:50 UTC|newest]
Thread overview: 126+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-03 19:05 [PATCH 0/7] Pinctrl support for Zynq Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` [PATCH 1/7] pinctrl: pinconf-generic: Declare dt_params/conf_items const Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-11 12:00 ` Linus Walleij
2014-11-11 12:00 ` Linus Walleij
2014-11-11 12:00 ` Linus Walleij
2014-11-03 19:05 ` [PATCH 2/7] pinctrl: pinconf-generic: Infer map type from DT property Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-05 13:56 ` Laurent Pinchart
2014-11-05 13:56 ` Laurent Pinchart
2014-11-05 13:56 ` Laurent Pinchart
2014-11-05 18:09 ` Sören Brinkmann
2014-11-05 18:09 ` Sören Brinkmann
2014-11-05 18:09 ` Sören Brinkmann
2014-11-05 18:17 ` Laurent Pinchart
2014-11-05 18:17 ` Laurent Pinchart
2014-11-05 18:17 ` Laurent Pinchart
2014-11-11 12:29 ` Linus Walleij
2014-11-11 12:29 ` Linus Walleij
2014-11-11 12:29 ` Linus Walleij
2014-11-12 18:43 ` Sören Brinkmann
2014-11-12 18:43 ` Sören Brinkmann
2014-11-12 18:43 ` Sören Brinkmann
2014-11-11 12:47 ` Linus Walleij
2014-11-11 12:47 ` Linus Walleij
2014-11-11 12:47 ` Linus Walleij
2014-11-12 18:46 ` Sören Brinkmann
2014-11-12 18:46 ` Sören Brinkmann
2014-11-12 18:46 ` Sören Brinkmann
2014-11-12 19:38 ` Sören Brinkmann
2014-11-12 19:38 ` Sören Brinkmann
2014-11-12 19:38 ` Sören Brinkmann
2014-11-03 19:05 ` [PATCH 3/7] pinctrl: pinconf-generic: Allow driver to specify DT params Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:12 ` Geert Uytterhoeven
2014-11-03 19:12 ` Geert Uytterhoeven
2014-11-03 19:12 ` Geert Uytterhoeven
2014-11-11 14:53 ` Linus Walleij
2014-11-11 14:53 ` Linus Walleij
2014-11-11 14:53 ` Linus Walleij
2014-11-18 8:50 ` Ivan T. Ivanov [this message]
2014-11-18 8:50 ` Ivan T. Ivanov
2014-11-18 8:50 ` Ivan T. Ivanov
2014-11-18 17:25 ` Sören Brinkmann
2014-11-18 17:25 ` Sören Brinkmann
2014-11-18 17:25 ` Sören Brinkmann
2014-11-19 7:49 ` Ivan T. Ivanov
2014-11-19 7:49 ` Ivan T. Ivanov
2014-11-19 7:49 ` Ivan T. Ivanov
2014-11-19 15:35 ` Sören Brinkmann
2014-11-19 15:35 ` Sören Brinkmann
2014-11-19 15:35 ` Sören Brinkmann
2014-11-20 8:06 ` Ivan T. Ivanov
2014-11-20 8:06 ` Ivan T. Ivanov
2014-11-20 8:06 ` Ivan T. Ivanov
2014-11-20 16:22 ` Sören Brinkmann
2014-11-20 16:22 ` Sören Brinkmann
2014-11-20 16:22 ` Sören Brinkmann
2014-11-21 7:35 ` Ivan T. Ivanov
2014-11-21 7:35 ` Ivan T. Ivanov
2014-11-21 7:35 ` Ivan T. Ivanov
2014-11-22 16:06 ` Sören Brinkmann
2014-11-22 16:06 ` Sören Brinkmann
2014-11-22 16:06 ` Sören Brinkmann
2014-11-24 8:52 ` Ivan T. Ivanov
2014-11-24 8:52 ` Ivan T. Ivanov
2014-11-24 8:52 ` Ivan T. Ivanov
2014-11-27 17:53 ` Sören Brinkmann
2014-11-27 17:53 ` Sören Brinkmann
2014-11-27 17:53 ` Sören Brinkmann
2014-11-03 19:05 ` [PATCH 4/7] pinctrl: zynq: Document DT binding Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-05 3:35 ` Andreas Färber
2014-11-05 3:35 ` Andreas Färber
2014-11-05 3:35 ` Andreas Färber
2014-11-05 17:07 ` Sören Brinkmann
2014-11-05 17:07 ` Sören Brinkmann
2014-11-05 17:07 ` Sören Brinkmann
2014-11-11 15:00 ` Linus Walleij
2014-11-11 15:00 ` Linus Walleij
2014-11-11 15:00 ` Linus Walleij
2014-11-12 18:53 ` Sören Brinkmann
2014-11-12 18:53 ` Sören Brinkmann
2014-11-12 18:53 ` Sören Brinkmann
2014-11-27 13:10 ` Linus Walleij
2014-11-27 13:10 ` Linus Walleij
2014-11-27 13:10 ` Linus Walleij
2014-11-03 19:05 ` [PATCH 5/7] pinctrl: Add driver for Zynq Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-05 3:24 ` Andreas Färber
2014-11-05 3:24 ` Andreas Färber
2014-11-05 3:24 ` Andreas Färber
2014-11-05 17:10 ` Sören Brinkmann
2014-11-05 17:10 ` Sören Brinkmann
2014-11-05 17:10 ` Sören Brinkmann
2014-11-05 5:12 ` Andreas Färber
2014-11-05 5:12 ` Andreas Färber
2014-11-05 5:12 ` Andreas Färber
2014-11-05 17:14 ` Sören Brinkmann
2014-11-05 17:14 ` Sören Brinkmann
2014-11-05 17:14 ` Sören Brinkmann
2014-11-03 19:05 ` [PATCH 6/7] ARM: zynq: Enable pinctrl Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` [PATCH 7/7] ARM: zynq: DT: Add pinctrl information Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-03 19:05 ` Soren Brinkmann
2014-11-05 5:56 ` [PATCH 0/7] Pinctrl support for Zynq Andreas Färber
2014-11-05 5:56 ` Andreas Färber
2014-11-05 5:56 ` Andreas Färber
2014-11-05 17:03 ` Sören Brinkmann
2014-11-05 17:03 ` Sören Brinkmann
2014-11-05 17:03 ` Sören Brinkmann
2014-11-06 3:51 ` Andreas Färber
2014-11-06 3:51 ` Andreas Färber
2014-11-06 3:51 ` Andreas Färber
2014-11-06 4:13 ` Sören Brinkmann
2014-11-06 4:13 ` Sören Brinkmann
2014-11-06 4:13 ` Sören Brinkmann
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=1416300621.30131.6.camel@mm-sol.com \
--to=iivanov@mm-sol.com \
--cc=linux-arm-kernel@lists.infradead.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.