From: Nishanth Menon <nm@ti.com>
To: Felipe Balbi <balbi@ti.com>, lgirdwood@gmail.com, broonie@kernel.org
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
Linux ARM Kernel Mailing List
<linux-arm-kernel@lists.infradead.org>,
Keerthy <j-keerthy@ti.com>,
stable@vger.kernel.org
Subject: Re: [PATCH 1/2] regulators: TPS65218: Add the missing of_node assignment in probe
Date: Wed, 18 Jun 2014 10:51:40 -0500 [thread overview]
Message-ID: <53A1B58C.6070508@ti.com> (raw)
In-Reply-To: <1403104668-32316-1-git-send-email-balbi@ti.com>
nit pick:
s/regulators: TPS65218:/regulators: tps65218:/
On 06/18/2014 10:17 AM, Felipe Balbi wrote:
> From: Keerthy <j-keerthy@ti.com>
>
> Add the missing of_node assignment in probe.
Hmm... I think an explanation of the type below might be nice:
config.of_node is used to populate the regulator_dev->dev.of_node as
part of registration. this is used for consumer supply match to the
right regulator device such as in regulator_dev_lookup.
not populating config.of_node results in inability to use the
regulator node as a supply in device tree.
>
> Cc: <stable@vger.kernel.org> # v3.15
Fixes: 90e7d5262796 (regulator: tps65218: Add Regulator driver for
TPS65218 PMIC)
?
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> Signed-off-by: Felipe Balbi <balbi@ti.com>
> ---
> drivers/regulator/tps65218-regulator.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c
> index 69b4b77..edbc46e 100644
> --- a/drivers/regulator/tps65218-regulator.c
> +++ b/drivers/regulator/tps65218-regulator.c
> @@ -240,6 +240,7 @@ static int tps65218_regulator_probe(struct platform_device *pdev)
> config.init_data = init_data;
> config.driver_data = tps;
> config.regmap = tps->regmap;
> + config.of_node = pdev->dev.of_node;
>
> rdev = devm_regulator_register(&pdev->dev, ®ulators[id], &config);
> if (IS_ERR(rdev)) {
>
otherwise,
Acked-by: Nishanth Menon <nm@ti.com>
--
Regards,
Nishanth Menon
WARNING: multiple messages have this Message-ID (diff)
From: nm@ti.com (Nishanth Menon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] regulators: TPS65218: Add the missing of_node assignment in probe
Date: Wed, 18 Jun 2014 10:51:40 -0500 [thread overview]
Message-ID: <53A1B58C.6070508@ti.com> (raw)
In-Reply-To: <1403104668-32316-1-git-send-email-balbi@ti.com>
nit pick:
s/regulators: TPS65218:/regulators: tps65218:/
On 06/18/2014 10:17 AM, Felipe Balbi wrote:
> From: Keerthy <j-keerthy@ti.com>
>
> Add the missing of_node assignment in probe.
Hmm... I think an explanation of the type below might be nice:
config.of_node is used to populate the regulator_dev->dev.of_node as
part of registration. this is used for consumer supply match to the
right regulator device such as in regulator_dev_lookup.
not populating config.of_node results in inability to use the
regulator node as a supply in device tree.
>
> Cc: <stable@vger.kernel.org> # v3.15
Fixes: 90e7d5262796 (regulator: tps65218: Add Regulator driver for
TPS65218 PMIC)
?
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> Signed-off-by: Felipe Balbi <balbi@ti.com>
> ---
> drivers/regulator/tps65218-regulator.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c
> index 69b4b77..edbc46e 100644
> --- a/drivers/regulator/tps65218-regulator.c
> +++ b/drivers/regulator/tps65218-regulator.c
> @@ -240,6 +240,7 @@ static int tps65218_regulator_probe(struct platform_device *pdev)
> config.init_data = init_data;
> config.driver_data = tps;
> config.regmap = tps->regmap;
> + config.of_node = pdev->dev.of_node;
>
> rdev = devm_regulator_register(&pdev->dev, ®ulators[id], &config);
> if (IS_ERR(rdev)) {
>
otherwise,
Acked-by: Nishanth Menon <nm@ti.com>
--
Regards,
Nishanth Menon
WARNING: multiple messages have this Message-ID (diff)
From: Nishanth Menon <nm@ti.com>
To: Felipe Balbi <balbi@ti.com>, <lgirdwood@gmail.com>, <broonie@kernel.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
Linux ARM Kernel Mailing List
<linux-arm-kernel@lists.infradead.org>,
Keerthy <j-keerthy@ti.com>, <stable@vger.kernel.org>
Subject: Re: [PATCH 1/2] regulators: TPS65218: Add the missing of_node assignment in probe
Date: Wed, 18 Jun 2014 10:51:40 -0500 [thread overview]
Message-ID: <53A1B58C.6070508@ti.com> (raw)
In-Reply-To: <1403104668-32316-1-git-send-email-balbi@ti.com>
nit pick:
s/regulators: TPS65218:/regulators: tps65218:/
On 06/18/2014 10:17 AM, Felipe Balbi wrote:
> From: Keerthy <j-keerthy@ti.com>
>
> Add the missing of_node assignment in probe.
Hmm... I think an explanation of the type below might be nice:
config.of_node is used to populate the regulator_dev->dev.of_node as
part of registration. this is used for consumer supply match to the
right regulator device such as in regulator_dev_lookup.
not populating config.of_node results in inability to use the
regulator node as a supply in device tree.
>
> Cc: <stable@vger.kernel.org> # v3.15
Fixes: 90e7d5262796 (regulator: tps65218: Add Regulator driver for
TPS65218 PMIC)
?
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> Signed-off-by: Felipe Balbi <balbi@ti.com>
> ---
> drivers/regulator/tps65218-regulator.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c
> index 69b4b77..edbc46e 100644
> --- a/drivers/regulator/tps65218-regulator.c
> +++ b/drivers/regulator/tps65218-regulator.c
> @@ -240,6 +240,7 @@ static int tps65218_regulator_probe(struct platform_device *pdev)
> config.init_data = init_data;
> config.driver_data = tps;
> config.regmap = tps->regmap;
> + config.of_node = pdev->dev.of_node;
>
> rdev = devm_regulator_register(&pdev->dev, ®ulators[id], &config);
> if (IS_ERR(rdev)) {
>
otherwise,
Acked-by: Nishanth Menon <nm@ti.com>
--
Regards,
Nishanth Menon
next prev parent reply other threads:[~2014-06-18 15:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-18 15:17 [PATCH 1/2] regulators: TPS65218: Add the missing of_node assignment in probe Felipe Balbi
2014-06-18 15:17 ` Felipe Balbi
2014-06-18 15:17 ` Felipe Balbi
2014-06-18 15:17 ` [PATCH 2/2] regulators: TPS65218: Correct the the config register for LDO1 Felipe Balbi
2014-06-18 15:17 ` Felipe Balbi
2014-06-18 15:17 ` Felipe Balbi
2014-06-18 15:29 ` Nishanth Menon
2014-06-18 15:29 ` Nishanth Menon
2014-06-18 15:29 ` Nishanth Menon
2014-06-18 15:51 ` Nishanth Menon [this message]
2014-06-18 15:51 ` [PATCH 1/2] regulators: TPS65218: Add the missing of_node assignment in probe Nishanth Menon
2014-06-18 15:51 ` Nishanth Menon
2014-06-24 15:29 ` Mark Brown
2014-06-24 15:29 ` Mark Brown
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=53A1B58C.6070508@ti.com \
--to=nm@ti.com \
--cc=balbi@ti.com \
--cc=broonie@kernel.org \
--cc=j-keerthy@ti.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=stable@vger.kernel.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.