Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp480963img; Thu, 21 Mar 2019 02:20:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3HhmP2EsyBG/QX1IclRn4mZ1cU1ueWHUpERUgL+bdE6xI8bFiSCFw6gimFazZ8YFbtpZ6 X-Received: by 2002:a62:69c3:: with SMTP id e186mr2235247pfc.169.1553160012233; Thu, 21 Mar 2019 02:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553160012; cv=none; d=google.com; s=arc-20160816; b=Qfz56AwuHO+cMc9v4Fjge2G32IOd3NfEPAWENyygQTdN7wYeLKvgEJTgw8ysO8gvTq kEvY+ITxXl6qWeGNXc8W7DcgpUUuer0NQgGLLj0yajwv16lrZGjfeppX5QCEcsZhS8uk Tx/s0u0lBWGMlJiSIxklK/VCiAQ1UBR7lzQ8vuHVBg1WJgENDXHew9nZ/SRxtoUKTEK2 JeDMq2YBxL+00oooP0ss2ZwcwBrdYZe6QJtWeuTj7he/3Trud6dfB5M6WU8rRyl6GrBE UYYLSR5RYc8yozs3gM7X13VO6hlPW+U/4YeJ+vSBoI8CZNeh0GkRZ6PyiEI8eRApVYwJ PyqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=OSeVXsGl8uqUwnJlurlaqqUfPTZb5Xw3+nP9bodBnvA=; b=HICTKvsQBn9kTosqziKkONcQEk8uAeIRkoX1Q/IIGwbkRj6NJr3tiPZQpoORCVbDGh kXrc3rihR3WNgj80UNn+9o/Q8SiLvi57ZRTwpJllCcrLCFDROjE1fDpP8KRXf4L1GnTd TsnNKUe4DXf3PRmC1lfqkgoJwt0d7viFFcqXw6yUyUwbBYles680sNwgHKgsHz8K+IgF ur0eJelYXGEFJLQF/m1WJPDx4SDd9ewsdMniv1f5Wy+5XsllttI85kjIXhTUydkBvFdA L1lCBuieZTWCbbhYkUwpU8QQfisuQ/tCptRamG/WYzi62raGkxERWE4n9Af5XG+vz+PI gmHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=HjAID45K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c136si3616717pfb.89.2019.03.21.02.19.57; Thu, 21 Mar 2019 02:20:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=HjAID45K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727919AbfCUJTM (ORCPT + 99 others); Thu, 21 Mar 2019 05:19:12 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:23062 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728137AbfCUJTM (ORCPT ); Thu, 21 Mar 2019 05:19:12 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20190321091909epoutp01ef5620069f48395a7999e5dc38853990~N7r68RlXJ1428314283epoutp01T for ; Thu, 21 Mar 2019 09:19:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20190321091909epoutp01ef5620069f48395a7999e5dc38853990~N7r68RlXJ1428314283epoutp01T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1553159949; bh=OSeVXsGl8uqUwnJlurlaqqUfPTZb5Xw3+nP9bodBnvA=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=HjAID45K65aP3qC4SCfzNIlOlTrvrWih4e2dzOl+A1Po5spCZVT/CJ0+5ME9K+mK/ fIOsc9s0/4pUhmtwp6jq00Kv8RMHxcH955FGq1Kzkm2KWwWaDSAlblu4X/5D0Wk0Lf tgPJUN6F5vuqncDlLBnYsU9/A/avQyl/ixy0JwBs= Received: from epsmges1p4.samsung.com (unknown [182.195.40.157]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20190321091906epcas1p117dc596be7f1d950d7d689a3def51176~N7r3tj8XR1867718677epcas1p17; Thu, 21 Mar 2019 09:19:06 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id E4.A5.04257.907539C5; Thu, 21 Mar 2019 18:19:05 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190321091905epcas1p1d7544346c6428b1c04d43ec377843338~N7r3Q0Ctj0618006180epcas1p1O; Thu, 21 Mar 2019 09:19:05 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190321091905epsmtrp26eb04ac0593a92a1a36249ee0558c459~N7r3P9lqG0626206262epsmtrp2W; Thu, 21 Mar 2019 09:19:05 +0000 (GMT) X-AuditID: b6c32a38-5e3ff700000010a1-28-5c9357097c8d Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 49.46.03662.907539C5; Thu, 21 Mar 2019 18:19:05 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190321091905epsmtip1c7f764dcd315e7fc3a158c76ef4d4995~N7r3FjtbB3219532195epsmtip1I; Thu, 21 Mar 2019 09:19:05 +0000 (GMT) Subject: Re: [PATCH] PM / devfreq: exynos-bus: Suspend all devices on system shutdown To: Marek Szyprowski , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: MyungJoo Ham , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Lukasz Luba , Markus Reichl From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Thu, 21 Mar 2019 18:19:20 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190321090110.26506-1-m.szyprowski@samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Se0hTYRTn292ud6vZ1yw9SeW6UqBg7aqra6RFSg0qEyR6sFgXvam4V7tT ekBZ0ZNeJpWux4ySygxNdJlpli2i/miG2cMHSVlZhpJaSe9d7yL/+53f9zvnd875DkVoKshw Ksfq5B1WzkyTKrnnXpQuRrm6yKh7/S2BvV5cqWB9vqogtr1gKttaf4Zkhw57EVvsuy1jP3hH EHvN2xXEduy8TC5SGto7dxiqyw+Qhrv9DTLDkZpyZBiqnp6mWJe7IJvnMnmHlrdm2DJzrFmJ 9LJ0U7JJP1fHxDAJ7Dxaa+UsfCKdsjwtZkmO2d8Orc3nzHl+Ko0TBHpO0gKHLc/Ja7NtgjOR 5u2ZZnuCfbbAWYQ8a9bsDJtlPqPTxer9wg252Y+a98jtdcGbn9WWEgXo7biDSEkBjof3HR3y g0hFaXAdgl+7fAopGETwsbBRJgVfEZw/ekL2L+X33YsBVSOCnzurgsQHDR5A4HFPF3EIXg1t nr5R0SR8BMHVMu9oQOBuBO7OltFSJI6Gpt4XpIgn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TcYsMCo7zUcr3ixNzi 0rx0veT83E2M4PjS0trBeOJE/CFGAQ5GJR7ebtNJMUKsiWXFlbmHGCU4mJVEeE1sJ8cI8aYk VlalFuXHF5XmpBYfYpTmYFES55XPPxYpJJCeWJKanZpakFoEk2Xi4JRqYGw7NUuaSUUyKqBf dIHqzf0nQ3h1HLLi5zX59+V+KpWY4O+weXWK1Ns3zR6rzZIq5uV/8A1ITiyXEr/JF/Rqna32 y2vTHQN4Xj3Rf2Up8P1nurLXhnl7JlbsXps19/MkRv/1gRIxmQH7Zqn8/fBo7QGfucm7fRfW 2p5K6Fgz73USW3nOvyZzcyWW4oxEQy3mouJEAPJWbyurAgAA X-CMS-MailID: 20190321091905epcas1p1d7544346c6428b1c04d43ec377843338 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190321090120eucas1p1d5122777e84f4e3c965946a8c5aead8b References: <20190321090110.26506-1-m.szyprowski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marek, 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 > Signed-off-by: Marek Szyprowski > --- > 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. Acked-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics