Received: by 10.223.176.5 with SMTP id f5csp399023wra; Wed, 7 Feb 2018 00:58:28 -0800 (PST) X-Google-Smtp-Source: AH8x2256MWk2CGAxrn2zuCXaPuCxUUN6OAwj+qiXTaejzW3kSdK0Xngigj/ErtVumuASbRtlIdhg X-Received: by 2002:a17:902:5305:: with SMTP id b5-v6mr5176922pli.61.1517993908464; Wed, 07 Feb 2018 00:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517993908; cv=none; d=google.com; s=arc-20160816; b=OuSJ7lAaVsfwu7SA7q0dtSUy7zO85JnX/WBnppF6mtLYMD7Fzg5vJ67tb11tTT6PeS 7uYyXq387YyuvdhZOAmSgXL7bhG39wvt/l8q/yB+vD+muNkEZoULtk7h8yX0KoXtAxEo yIm2zpP0AqRqPgKgZHFYwwsuJ9g04ZCskFg1nWWGq5s2Kn7gvHBWgfVM6e03ybJq9ztJ vL91mHG6f7oYIUe4RQraCvG3jqrTh4Cm7M8pAz/ews4jt06ZaWJe+5C7gTv0W95+RmxI SzG8dMsXO0TK/6ebzR4JfkKZhk9DhJrGffr971rSbMZI33C0rRaeuw0iMDAwjoD4uMyh h2Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=qkWodPFeLEHpu9Wsx8UI1URhV8fhPEy4p/jDk2S1E4A=; b=J9x27CqfXnhHSvXsYzRKJUfLDhRwzGX9qQbO+zhlkKQ5BD6tlojmKpOLfyP6Mt6xlz uHlgHeQec2cMtG9FgsJAFGr5wxh1UucDt+06Zc2n1FNPOuDHkX4rwP6F+iEvjjRoGyGC p3ON+HxknyelI+Ka0pdfCCcrJ9vFGf4VoN8u2V0l0k1eUZ+HtakCeSAs70kOH4q5TTVV JKpavrxyZy76WdY5ynmmqfpI26YZmY8b9OBlbo9tOG0PiHTRgugGBAYP+yUSZjq2sM/Q SYA+zHyHzO1VhEZdgFE6vZOrKRmBedX7S6dHBoTs+PWwMdhPXdDpyKEqpU95pDDQQRSu 2ZaA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y65si542413pfb.286.2018.02.07.00.58.14; Wed, 07 Feb 2018 00:58:28 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753588AbeBGI5d (ORCPT + 99 others); Wed, 7 Feb 2018 03:57:33 -0500 Received: from foss.arm.com ([217.140.101.70]:46994 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbeBGI5b (ORCPT ); Wed, 7 Feb 2018 03:57:31 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 287731435; Wed, 7 Feb 2018 00:57:31 -0800 (PST) Received: from [10.1.207.62] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3BA223F24D; Wed, 7 Feb 2018 00:57:29 -0800 (PST) Subject: Re: [PATCH v5 1/4] cpu_pm: add syscore_suspend error handling To: Derek Basehore , linux-kernel@vger.kernel.org Cc: Soby.Mathew@arm.com, sudeep.holla@arm.com, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-pm@vger.kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, briannorris@chromium.org References: <20180207014117.62611-1-dbasehore@chromium.org> <20180207014117.62611-2-dbasehore@chromium.org> From: Marc Zyngier Organization: ARM Ltd Message-ID: <04ebd1d9-b45b-df87-d59e-1a3df97f3371@arm.com> Date: Wed, 7 Feb 2018 08:57:27 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180207014117.62611-2-dbasehore@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/18 01:41, Derek Basehore wrote: > If cpu_cluster_pm_enter() fails, cpu_pm_exit() should be called. This > will put the CPU in the correct state to resume from the failure. > > Signed-off-by: Derek Basehore > --- > kernel/cpu_pm.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/kernel/cpu_pm.c b/kernel/cpu_pm.c > index 67b02e138a47..03bcc0751a51 100644 > --- a/kernel/cpu_pm.c > +++ b/kernel/cpu_pm.c > @@ -186,6 +186,9 @@ static int cpu_pm_suspend(void) > return ret; > > ret = cpu_cluster_pm_enter(); > + if (ret) > + cpu_pm_exit(); > + > return ret; > } > > It is unclear to me why we need this patch as part of the ITS series. I probably fixes something for you, but I don't see the connection with the other patches. Thanks, M. -- Jazz is not dead. It just smells funny...