Received: by 10.223.185.116 with SMTP id b49csp5484085wrg; Wed, 7 Mar 2018 12:33:52 -0800 (PST) X-Google-Smtp-Source: AG47ELtKBNzGBrJpuKrsjbqEEPXWU6GVIwm5o/3CTuwsxfVL1IMpcJgYRluDKxgSCBQ1+trNgjsp X-Received: by 10.101.100.9 with SMTP id a9mr19050872pgv.102.1520454832825; Wed, 07 Mar 2018 12:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520454832; cv=none; d=google.com; s=arc-20160816; b=yjoBGA3RENg39EqVlFs/y1HHpdH2CUKZ9TaeZIiIfX/ZZMyquuQZz4NLjfIjiT8r2Y t/Q0DDtNVJcAdarQABhIYLl5QO1I2hJ5BtA9s3PtLPNAc836VchdNQ8fMnhliuhkS6Yu VdoPzaFCuNzh+RP299vDoxGzYyd2oDNBMBIsOdgB3y+1akqGaoD6pdQkmTeUVPEc2a1T nGprQJMVO2xoEN1qXJ/lk1HnxsS+J0JESeKIYkxiM4vhQSfpPUJfXdZhbUUdTozJHuqJ kwXUgQQpUq8CxvOfAhhJ7O2hogpSbgNc9fCqPB6VerQeFD5EMVB3ivj76PSm9cjFuLLy 9yuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=OkFB7fPPW26ETVNW3/QkEFstsJDzz04Ikeb1wBMhIAU=; b=U6YyM9AS08Pk/WYg5HJozU+X1ZEi0QCVmyYGWqB/4Zw8YbuCkWQ6zipGPd3VrV5jIS wOCgVqDTCrpsJeBooryD26lkP2Rg5aOs6tlgtgRkJ3SQI+0FoXvCxw7wangG+JNS4N7Y Nwn4F7ArCJKILNCruETKlLVgwThF8CmBW2KWFzgBZlmYDK4NiXHq9fL5JWC4laRycALk TkYaTYNIJS0vLCJNcGzowoIXzMsR9s292Qdq5Z55YMuzzXg9ehQDgcvltfjAGcKCZxBx vkQWd19hvaHehEIxjLfz/rqSvY/KnJi94KJh8/vK/AENAdu7FE30JgkoutkAxxeDnWzm +G5w== 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 x75si14449711pff.339.2018.03.07.12.33.38; Wed, 07 Mar 2018 12:33:52 -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 S1754905AbeCGTmM (ORCPT + 99 others); Wed, 7 Mar 2018 14:42:12 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:41922 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754806AbeCGTmK (ORCPT ); Wed, 7 Mar 2018 14:42:10 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 84056FB3; Wed, 7 Mar 2018 19:42:08 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Panceac , Thomas Gleixner , Andy Shevchenko Subject: [PATCH 4.15 037/122] x86/platform/intel-mid: Handle Intel Edison reboot correctly Date: Wed, 7 Mar 2018 11:37:29 -0800 Message-Id: <20180307191734.481579047@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191729.190879024@linuxfoundation.org> References: <20180307191729.190879024@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sebastian Panceac commit 028091f82eefd5e84f81cef81a7673016ecbe78b upstream. When the Intel Edison module is powered with 3.3V, the reboot command makes the module stuck. If the module is powered at a greater voltage, like 4.4V (as the Edison Mini Breakout board does), reboot works OK. The official Intel Edison BSP sends the IPCMSG_COLD_RESET message to the SCU by default. The IPCMSG_COLD_BOOT which is used by the upstream kernel is only sent when explicitely selected on the kernel command line. Use IPCMSG_COLD_RESET unconditionally which makes reboot work independent of the power supply voltage. [ tglx: Massaged changelog ] Fixes: bda7b072de99 ("x86/platform/intel-mid: Implement power off sequence") Signed-off-by: Sebastian Panceac Signed-off-by: Thomas Gleixner Acked-by: Andy Shevchenko Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/1519810849-15131-1-git-send-email-sebastian@resin.io Signed-off-by: Greg Kroah-Hartman --- arch/x86/platform/intel-mid/intel-mid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/platform/intel-mid/intel-mid.c +++ b/arch/x86/platform/intel-mid/intel-mid.c @@ -79,7 +79,7 @@ static void intel_mid_power_off(void) static void intel_mid_reboot(void) { - intel_scu_ipc_simple_command(IPCMSG_COLD_BOOT, 0); + intel_scu_ipc_simple_command(IPCMSG_COLD_RESET, 0); } static unsigned long __init intel_mid_calibrate_tsc(void)