[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <70cc3a91-8f5d-da48-a815-eaf2670f9a93@linaro.org>
Date: Tue, 30 Apr 2019 11:44:49 +0200
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: "elaine.zhang" <zhangqing@...k-chips.com>, heiko@...ech.de
Cc: rui.zhang@...el.com, edubezval@...il.com, robh+dt@...nel.org,
mark.rutland@....com, linux-pm@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org,
xxx@...k-chips.com, xf@...k-chips.com, huangtao@...k-chips.com
Subject: Re: [PATCH v2 1/3] thermal: rockchip: fix up the tsadc pinctrl
setting error
On 29/04/2019 11:51, elaine.zhang wrote:
[ ... ]
> pinctrl select to gpio mode when tsadc suspend and shutdown.
>
> When suspend, tsadc is disabled, the otp_pin should revert to the
> default gpio state.
>
>>
>>> return 0;
>>> }
>>> @@ -1383,7 +1413,8 @@ static int __maybe_unused
>>> rockchip_thermal_resume(struct device *dev)
>>> for (i = 0; i < thermal->chip->chn_num; i++)
>>> rockchip_thermal_toggle_sensor(&thermal->sensors[i], true);
>>> - pinctrl_pm_select_default_state(dev);
>>> + if (thermal->tshut_mode == TSHUT_MODE_GPIO)
>>> + pinctrl_select_state(thermal->pinctrl, thermal->otp_state);
>> And then
>> pinctrl_select_state(thermal->pinctrl, thermal->pinctrl_state);
>
> pinctrl select to otp mode when tsadc resume.
Ok, thanks for clarifying.
-- Daniel
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
Powered by blists - more mailing lists