Received: by 10.223.185.111 with SMTP id b44csp913629wrg; Fri, 9 Mar 2018 16:43:07 -0800 (PST) X-Google-Smtp-Source: AG47ELta+o7aAXr3hTHUysUM4QAbyivUF4LKaQYTw24uXMsL9jUWdR+F7Jwa3N4G19dm/fv+TpQ1 X-Received: by 2002:a17:902:59d3:: with SMTP id d19-v6mr365349plj.356.1520642587152; Fri, 09 Mar 2018 16:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520642587; cv=none; d=google.com; s=arc-20160816; b=hdpPsaY9qISjNkTlt/xREQ8NxiwwQvVCHCltyvvyKugx/wjFewTQ/MEVWAVVWTzuCa FSBVJCpVUEl2i5tVCgVoVE+hbdpSU2kLOeXjkS5CjOlUj4DtY9GjqQeacueJl/e4Kp1y ywUA5ak2O2/SkIzKIbeCxnpF7UUjyo+KCz2w6XewolKugbjVDpW9lhNnzInu8aV2QDTc z8cgrUJzy1r1sGBZJDaNsALa0RfGabUFwEo4vLmQb6++vmSMYoMYq2CLd+IMipqH4IyY db+B0fDkyT5vm9ELonz9k11BR39CfRe3hchoJ1zMqJozj7cZa7QoC0A+Rh1hosoQlC5T P5EA== 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=Qtxd+m3LGXcFYl/3PP21Z2vYGeA9rOixbjfvrMf70Ws=; b=SzQAfIQBQdkTxgNS16PkdPsvM8kq8nknGnO/QnvqtYfKGlCKL4nQQDKz9oc3KZgCtI vcqeuBd3f6f6I0yJOjUKevuPd3pMC4u0rX/hN+HkTuWbzDFKt1Klr4l2MSYT52RAKZN+ zm0I+Fu4PkR9hpcdhC//VSSHlTBTfpET8gCMa/u9ytCAlVNggLyQxzEIVZNWku5s+9jR w8fK7EQJUR0n8hn+GNacKX0o2vmsyUyAdXDZbf7gJPr9qhhjOHGcv834yOV7yVCATwVZ p8OVi9+QiHpVRFRzWSu7LC9qhaFu8W0d2/TtevoVFuSs6Erp51Fbc+hNy6a3x5WR+6qo t7mw== 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 u2si1512633pgc.321.2018.03.09.16.42.52; Fri, 09 Mar 2018 16:43:07 -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 S933648AbeCJAkw (ORCPT + 99 others); Fri, 9 Mar 2018 19:40:52 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39436 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933564AbeCJAVL (ORCPT ); Fri, 9 Mar 2018 19:21:11 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9AA5F10DE; Sat, 10 Mar 2018 00:21:10 +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.9 16/65] x86/platform/intel-mid: Handle Intel Edison reboot correctly Date: Fri, 9 Mar 2018 16:18:16 -0800 Message-Id: <20180310001826.303126005@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180310001824.927996722@linuxfoundation.org> References: <20180310001824.927996722@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.9-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)