Received: by 10.223.185.116 with SMTP id b49csp2383790wrg; Mon, 5 Mar 2018 01:46:35 -0800 (PST) X-Google-Smtp-Source: AG47ELu0ka5S/cmAC8u9TbQEe4Tb2donte1UT/e4m+eyu3GNFZZ2Rqhp8SfNPOz1fFWGNIA+deyC X-Received: by 2002:a17:902:8215:: with SMTP id x21-v6mr12776080pln.164.1520243195404; Mon, 05 Mar 2018 01:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520243195; cv=none; d=google.com; s=arc-20160816; b=vH1WkJrKCZNnGctN16nB1Zk+nA6KFuX/cLbP7ru4X+Bru+jbSI5BBpMWxlOupUveay paitRFkA+GsryF9uq5g53dJAnaAz7tndEtz6nRNCFh6yz3Ytv532M2agy9Mblf6tirM1 Q++J0jl6Whgff8vvwQHWAqG4m5WddXJUcnxrGYruJtu6dyNjjyLcbndD4ZYtmAvmmOPh juyBKhY3WaiDNGE9GQi8Zn09n1E7Ftol1MIRXwza9qwaO1eZDdk56QneLoF0kA1n2Zfs PLx8zickmV+l/qAjTOg2hQ0DGyYJ2mLsOg43bEN3ls09PFvw/J7gpDFruItJQLSWnN7t wIzg== 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:from:references:cc:to:subject:arc-authentication-results; bh=9/5MvxWts6vnCqxexWmLwV0cBszic3Quq0hGrNWvUR8=; b=F7mCfN6+jPIKfg8xASkNgG38D8GhVakZC9XG7rG05EmUwUtKKYp+B4S7s8cUqz6iX4 nm6lJKqVA9T1r59KefdVIC1o6A23WpDlgq1abSDYqLTgovzKy3emjUgAq9Z7TRp1VXkw /I0pfajoFZ3H2zda4uj3v9FZY8hTo/MfKH/ieZ+/LbQEiOFYI2NYv5VCQPH7EG1acmqf R1fEiD1k70sQrUz9QxJCfsh7aMBVP7NeVI00iWrI9xS3tAxSpg/2fq06B9cazFiLbSL/ cp+zl4rSbb4zA1YjYlxAmTed2uIkt2wcIFDVToCuZgrJcl6ruVR8wM9XOkon5K1xlgi3 pilg== 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 e5si10019583pfl.5.2018.03.05.01.46.20; Mon, 05 Mar 2018 01:46:35 -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 S932969AbeCEImC (ORCPT + 99 others); Mon, 5 Mar 2018 03:42:02 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:17243 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932864AbeCEImB (ORCPT ); Mon, 5 Mar 2018 03:42:01 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w258dFcl028031; Mon, 5 Mar 2018 09:41:32 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2gfhq99kpn-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 05 Mar 2018 09:41:32 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9098448; Mon, 5 Mar 2018 08:41:30 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4BE332547; Mon, 5 Mar 2018 08:41:30 +0000 (GMT) Received: from [10.201.21.58] (10.75.127.44) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 5 Mar 2018 09:41:29 +0100 Subject: Re: [PATCH] ARM: mach-stm32: restore reboot capabilities To: Benjamin Gaignard , , CC: , , Benjamin Gaignard References: <20180227143607.5583-1-benjamin.gaignard@st.com> From: Alexandre Torgue Message-ID: Date: Mon, 5 Mar 2018 09:41:28 +0100 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: <20180227143607.5583-1-benjamin.gaignard@st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG6NODE2.st.com (10.75.127.17) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-05_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Benjamin On 02/27/2018 03:36 PM, Benjamin Gaignard wrote: > To be able to reboot the platform we need to use armv7m_restart for STM32 > SoCs using ARMv7 cores. > > Fixes: e0644101bd2f ("ARM: mach-stm32: prepare stm32 family to welcome armv7 architecture) > > Signed-off-by: Benjamin Gaignard > --- > NOTE: This patch should be applied only on > git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git stm32-next > until this patch: https://lkml.org/lkml/2018/2/26/386 > find it way to mainline KBuild will complain about it. > > arch/arm/mach-stm32/board-dt.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/mach-stm32/board-dt.c > index 06911ad60cea..011d57b488c2 100644 > --- a/arch/arm/mach-stm32/board-dt.c > +++ b/arch/arm/mach-stm32/board-dt.c > @@ -7,6 +7,9 @@ > > #include > #include > +#ifdef CONFIG_ARM_SINGLE_ARMV7M > +#include > +#endif > > static const char *const stm32_compat[] __initconst = { > "st,stm32f429", > @@ -20,4 +23,7 @@ static const char *const stm32_compat[] __initconst = { > > DT_MACHINE_START(STM32DT, "STM32 (Device Tree Support)") > .dt_compat = stm32_compat, > +#ifdef CONFIG_ARM_SINGLE_ARMV7M > + .restart = armv7m_restart, > +#endif > MACHINE_END Applied on stm32-next. Thanks. Alex