Received: by 10.223.185.116 with SMTP id b49csp5021324wrg; Tue, 27 Feb 2018 06:37:40 -0800 (PST) X-Google-Smtp-Source: AH8x2265AEKWSwiL3LVcenidzrFISSg5YO/DVqSRDOTK+oGaJvkELPuTqaWzXL4Fbt+STmcA9LnU X-Received: by 2002:a17:902:8487:: with SMTP id c7-v6mr14362959plo.7.1519742259936; Tue, 27 Feb 2018 06:37:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519742259; cv=none; d=google.com; s=arc-20160816; b=zVsU9C1Tj54x08j2oeKcVLH0NrI8fzm7VekMr3eFF/Dx9VnW+oBIylkMogQZMMSrDM njGg//lMd7JaB8RNYozGOQILw61ORp4tDRSHnZ+WI42AUMiBP7voqr6ZWOHELNwXdIVk VhtAcTNURCY9att4ukHZZ2BcFL1kKZDy2rQo16lixeOOf35gtPQz5apfqa+uRbE2yttw 6flrx1EIedvHBqDSUZ1WYwSPbxi3xok715oNfv5nHzRpCvIDmv+/+6afRPnGZfY1UzTY VqnxrJkh0S4mnzuH4R9/RSE1d+pc3HetYj77roMH91eWMQl6fiCsv0EwKL57FXkhrWs0 /sbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=spBSemEIoSIZOsPVq82UOBqECDaYEcM+mP4Qt+sOfas=; b=me6PSobtWi9gIbXOsRtXCaeG0n0r9auwKS8O5OTCjb9dGUgTiMtiEbvtm7XZqXxTO8 BbQnx+YwIcTr2l9pPn1D2kT2aj5J7hHOwAVypqHHvbGZI9dbmKW8oZKqqoK5jHV5bvse qUrGnI3WdfYyQUZN1/cIGWytSJh8BWcNSP1vQo7vK7CZbkh/uCRedeVAqVoy0d+YTkIt QmKZ48WMYs6932EwFBlxnTH2GdEMg3agCyKmYOYTHWcn4pQZZEWXETRiD9ppnbkbN9kU u55Rh8jQKaUUL++5jercTVsMx71x4Mo+c5ADvNKzLyPzgCDsarmYErrOy4N6cjSpUgRb dl6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gUoTnGaY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si8552486plr.241.2018.02.27.06.37.24; Tue, 27 Feb 2018 06:37:39 -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; dkim=pass header.i=@linaro.org header.s=google header.b=gUoTnGaY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753519AbeB0OgX (ORCPT + 99 others); Tue, 27 Feb 2018 09:36:23 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38023 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753154AbeB0OgW (ORCPT ); Tue, 27 Feb 2018 09:36:22 -0500 Received: by mail-wm0-f67.google.com with SMTP id z9so24084809wmb.3 for ; Tue, 27 Feb 2018 06:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=spBSemEIoSIZOsPVq82UOBqECDaYEcM+mP4Qt+sOfas=; b=gUoTnGaYDW3LC8lTLpsxvY4+3XQCXY09l3B6ERFJNOBRfMHWPNhDq7Nr7tF+G+Aivx h26FEA1upVnyB7tdAbBnlMb+fHMxTpRlg6U0sVFtkUoEMEqQcoBh13IF5i9xWkHga+q+ Ta7qz3TCF1WR6rej9WLveNpQ+GBga6JDLoUVc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=spBSemEIoSIZOsPVq82UOBqECDaYEcM+mP4Qt+sOfas=; b=UkS4l5UB1AyvyoTUHiUTU9iWiaLbcum1Q65bsudzdMjMlI9JCcWpJSRhIJSg4Qxe1E IBDJWfpnfdxQ5z1DgixfZmWbVGjPaApO/xR9HfaTTQrIHyxfq29C2QtM+pwL18H5JJ4P 448ejtGgVLNhOjXfLYL/yRRn0IwptNBsa+54+wnBzJtb0N0zfYYoo8ac9oQNKN3z4J+i oOZdhZf+jN9DKuyOq2RlbrHdsp44o/Agnjh4NbyAQoVermORbJqnUm+ySDHKbqRY/QDd 2RNLM7DII+8Tch2aRFoGRSLqXpPFTwgUkE+aKblg5aHh0QJI1ahBT05l6KHh3dNZujtn LLcw== X-Gm-Message-State: APf1xPBst+Gp99g2RJWQhDxi8YNn5KDaEhUfGiF8G24pqiQX77oEAjci NhHbDZed4Xzz3GX/rHzQORbstQ== X-Received: by 10.28.159.68 with SMTP id i65mr2434947wme.27.1519742181280; Tue, 27 Feb 2018 06:36:21 -0800 (PST) Received: from lmecxl0911.lme.st.com ([80.215.129.155]) by smtp.gmail.com with ESMTPSA id q14sm9216117wre.83.2018.02.27.06.36.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 06:36:20 -0800 (PST) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] ARM: mach-stm32: restore reboot capabilities Date: Tue, 27 Feb 2018 15:36:07 +0100 Message-Id: <20180227143607.5583-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.15.0