Received: by 10.223.185.116 with SMTP id b49csp5463725wrg; Wed, 7 Mar 2018 12:11:51 -0800 (PST) X-Google-Smtp-Source: AG47ELsqxv1L/qG81ifGhYxMhjGNcR5o9wCo9kKOW4PnVGat7o4BBaQGDniDeKg0C14V01tIpBD4 X-Received: by 10.98.57.215 with SMTP id u84mr23376290pfj.152.1520453511265; Wed, 07 Mar 2018 12:11:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520453511; cv=none; d=google.com; s=arc-20160816; b=m+F+z3Nz4+eug2AX/o9d/WIc+XUEZWZDCoRs2gwPziR5q2GBwfENjszitT9sHBcdxr OQV1iFTzMk4c5l6keFgsGoUzTmCmVCwsIUI+JyKw0hK3NaAEHnxANXMK6zw98rbqIJeh ZbWSdB3Z4yNpPPWl3Xb6up15guPiDwwGyTLTdq58gXZFsQt5mdzR1JfnQzQuM4zrxxRA i7Wn9lzELG6Xp63PpcDGIxMVfwG138k274PVz7A6B8hcUKOW/arwI4LP3sN5K55bydUY CLTUzIJUXb+i0GdqUTnOzNIYEoEzIX2Owo4oKMKbUzJY8INgV8qZk+SuzTxDnB8NruVz zQTQ== 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=hBsf6bRo5SR8Gbp6s/Rg9wDC/8arM/lQ4MeGSjejrLU=; b=lMur8R22dSlWWfF7y+irq2kOGPsYVBKfVrZZlLtZ7IeOSs1bDwByerdU4COIVVg8o6 S9gOh4XxruA8AKEBh9PJ+DrODR3l2V/zqSuchpjLZDfOTYULM1VKZxf6rOJh8gQDvHFi ynz/NZYdZPF3re9D61AFkciAmgFnfDSqF29RvqNE5KXMjKPdNz+724uuV7iq8X2woxIj +ydrb1CDYyZJM+0NUlVV0dk1U5WnWCK9hITFutpIWMym1rKPHmg0kwg6Xg2s5xBizmQS jgc5XgTTtHKYKw5gSx6oPvf4sfsqwjZsl7lEXl/WzPgMobypzegOgJkew1ru3t41lKiu 0w9w== 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 v196si11814149pgb.217.2018.03.07.12.11.37; Wed, 07 Mar 2018 12:11:51 -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 S965322AbeCGTp2 (ORCPT + 99 others); Wed, 7 Mar 2018 14:45:28 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44170 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965311AbeCGTpY (ORCPT ); Wed, 7 Mar 2018 14:45:24 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 75D7EF1E; Wed, 7 Mar 2018 19:45:23 +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.14 032/110] x86/platform/intel-mid: Handle Intel Edison reboot correctly Date: Wed, 7 Mar 2018 11:38:15 -0800 Message-Id: <20180307191043.871641268@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191039.748351103@linuxfoundation.org> References: <20180307191039.748351103@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.14-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)