[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190325043850epcms1p7c55d5c6767779f4dc044118975cff560@epcms1p7>
Date: Mon, 25 Mar 2019 13:38:50 +0900
From: MyungJoo Ham <myungjoo.ham@...sung.com>
To: Marek Szyprowski <m.szyprowski@...sung.com>,
Chanwoo Choi <cw00.choi@...sung.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"linux-samsung-soc@...r.kernel.org"
<linux-samsung-soc@...r.kernel.org>
CC: Krzysztof Kozlowski <krzk@...nel.org>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Lukasz Luba <l.luba@...tner.samsung.com>,
Markus Reichl <m.reichl@...etechno.de>
Subject: RE: Re: [PATCH] PM / devfreq: exynos-bus: Suspend all devices on
system shutdown
>Hi Chanwoo,
>
>On 2019-03-21 10:19, Chanwoo Choi wrote:
>> On 19. 3. 21. 오후 6:01, Marek Szyprowski wrote:
>>> Force all Exynos buses to safe operation points before doing the system
>>> reboot operation. There are board on which some aggressive power saving
>>> operation points are behind the capabilities of the bootloader to properly
>>> reset the hardware and boot the board. This way one can avoid board crash
>>> early after reboot.
>>>
>>> This fixes reboot issue on OdroidU3 board both with eMMC and SD boot.
>>>
>>> Reported-by: Markus Reichl <m.reichl@...etechno.de>
>>> Signed-off-by: Marek Szyprowski <m.szyprowski@...sung.com>
>>> ---
>>> This is an alternative to https://patchwork.kernel.org/patch/10781433/
>>> limited only to Exynos-bus driver.
>>> ---
>>> drivers/devfreq/exynos-bus.c | 8 ++++++++
>>> 1 file changed, 8 insertions(+)
>>>
>>> diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
>>> index c25658b26598..486cc5b422f1 100644
>>> --- a/drivers/devfreq/exynos-bus.c
>>> +++ b/drivers/devfreq/exynos-bus.c
>>> @@ -514,6 +514,13 @@ static int exynos_bus_probe(struct platform_device *pdev)
>>> return ret;
>>> }
>>>
>>> +static void exynos_bus_shutdown(struct platform_device *pdev)
>>> +{
>>> + struct exynos_bus *bus = dev_get_drvdata(&pdev->dev);
>>> +
>>> + devfreq_suspend_device(bus->devfreq);
>>> +}
>>> +
>>> #ifdef CONFIG_PM_SLEEP
>>> static int exynos_bus_resume(struct device *dev)
>>> {
>>> @@ -556,6 +563,7 @@ MODULE_DEVICE_TABLE(of, exynos_bus_of_match);
>>>
>>> static struct platform_driver exynos_bus_platdrv = {
>>> .probe = exynos_bus_probe,
>>> + .shutdown = exynos_bus_shutdown,
>>> .driver = {
>>> .name = "exynos-bus",
>>> .pm = &exynos_bus_pm,
>>>
>> Actually, I already agreed the previous patch.
>> Also, it looks good to me.
>
>Yes, I know, but MyungJoo had some objections, that's why I prepared
>alternative version.
>
>> Acked-by: Chanwoo Choi <cw00.choi@...sung.com>
>>
This has become looking good now :)
Acked-by: MyungJoo Ham <myungjoo.ham@...sung.com>
Cheers,
MyungJoo
Powered by blists - more mailing lists