From: "Ondřej Jirman" <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
To: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
Cc: dev <dev-3kdeTeqwOZ9EV1b7eY7vFQ@public.gmane.org>,
linux-arm-kernel
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
open list <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"open list:THERMAL"
<linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 03/14] thermal: Add support for sun8i THS on Allwinner H3
Date: Sat, 25 Jun 2016 02:56:59 +0200 [thread overview]
Message-ID: <7dd9107e-c9ec-595f-4c7d-6226c049a6aa@megous.com> (raw)
In-Reply-To: <CAGb2v65DEgD-mpFMHaWU1XRwBgmQ+=hu2A9EW5u=v0oynGCE1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 2090 bytes --]
On 25.6.2016 02:54, Chen-Yu Tsai wrote:
> On Sat, Jun 25, 2016 at 8:35 AM, Ondřej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org> wrote:
>> On 24.6.2016 05:09, Chen-Yu Tsai wrote:
>>>> +static int sun8i_ths_h3_init(struct platform_device *pdev,
>>>> + struct sun8i_ths_data *data)
>>>> +{
>>>> + int ret;
>>>> + size_t callen;
>>>> + s32 *caldata;
>>>> +
>>>> + data->busclk = devm_clk_get(&pdev->dev, "ahb");
>>>> + if (IS_ERR(data->busclk)) {
>>>> + ret = PTR_ERR(data->busclk);
>>>> + dev_err(&pdev->dev, "failed to get ahb clk: %d\n", ret);
>>>> + return ret;
>>>> + }
>>>> +
>>>> + data->clk = devm_clk_get(&pdev->dev, "ths");
>>>> + if (IS_ERR(data->clk)) {
>>>> + ret = PTR_ERR(data->clk);
>>>> + dev_err(&pdev->dev, "failed to get ths clk: %d\n", ret);
>>>> + return ret;
>>>> + }
>>>> +
>>>> + data->reset = devm_reset_control_get(&pdev->dev, "ahb");
>>>
>>> IIRC with the new shared reset control stuff merged, you are supposed
>>> to specify whether you want a shared or exclusive one when you ask for
>>> it.
>>
>> Here devm_reset_control_get will get the exclusive reference. So this
>> should be ok.
>
> See https://patchwork.kernel.org/patch/9158691/
>
> The generic ones might be removed later on. I remember in another thread
> it was asked that new users should use the explicit API, and avoid having
> to be converted.
I see, thank you, I'll change that.
regards,
Ondrej
> ChenYu
>
>>
>> regards,
>> Ondrej
>>
>>>
>>> Regards
>>> ChenYu
>>>
>>>> +MODULE_LICENSE("GPL v2");
>>>> --
>>>> 2.9.0
>>>>
>>
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-06-25 0:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160623192104.18720-1-megous@megous.com>
2016-06-23 19:20 ` [PATCH 03/14] thermal: Add support for sun8i THS on Allwinner H3 megous
2016-06-24 3:09 ` Chen-Yu Tsai
2016-06-24 21:50 ` Ondřej Jirman
[not found] ` <CAGb2v66sFfbD0rTaeeR9CBZFaXLiCKV4DrqKi4Yhc3+u2q+UMw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-06-25 0:35 ` Ondřej Jirman
2016-06-25 0:54 ` Chen-Yu Tsai
[not found] ` <CAGb2v65DEgD-mpFMHaWU1XRwBgmQ+=hu2A9EW5u=v0oynGCE1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-06-25 0:56 ` Ondřej Jirman [this message]
2016-06-23 19:20 ` [PATCH 04/14] dt-bindings: document sun8i_ths megous
[not found] ` <20160623192104.18720-5-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2016-06-24 2:46 ` Chen-Yu Tsai
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=7dd9107e-c9ec-595f-4c7d-6226c049a6aa@megous.com \
--to=megous-5qf/qajkc83qt0dzr+alfa@public.gmane.org \
--cc=dev-3kdeTeqwOZ9EV1b7eY7vFQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=wens-jdAy2FN1RRM@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