From patchwork Tue Oct 9 11:20:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10632375 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 129C913AA for ; Tue, 9 Oct 2018 11:38:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7F1F1FF87 for ; Tue, 9 Oct 2018 11:38:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC1B528446; Tue, 9 Oct 2018 11:38:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 588BE1FF87 for ; Tue, 9 Oct 2018 11:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tpH5nDLcHyKwID6vkpeHJD+ItgeYHaZ213phCEm6ut8=; b=IpVKV2h3ndtmxW JPELJVquNhbPpgINzHh1eeSMU2mhJgrDuV/fAjTFKudI41ghG3WrUbDrZueHFNnSy/57qjm37IWe+ 9LkBi3EzoV0Na9l1ANbHiUGljv4wk+lYcy9/WtJjj4L7mYVY/qO5FKEheWU/Ui9zJM4TAayCTRExk PPks/O05l2aCgkbcIOJErSOpbG8xNafGbAw04BV3/qxcIFK4CN5v+bHVOKqBWffOM3S0ns58PXfX6 iF1BRu7lth9TrFNXdcu1y2cSH1bWUdwJkPwF+2ob519d/tdihWSiuI1dQHVBo7nxfRizjxI+r1/Hv DsjpqvYrOD5tAL04OP5A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9qKy-0001Su-U0; Tue, 09 Oct 2018 11:38:04 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9qKQ-00012O-NO for linux-arm-kernel@bombadil.infradead.org; Tue, 09 Oct 2018 11:37:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oal2Sxh3eKSVbX8dI6XStpPyPYZTzwiOSIntq3DfXv0=; b=fEWZpp7PLP8b+WbfCo9JLra9wd WmE5LKwfWsFgsI8tTGGdC7rKwZeMxewxtCvJartoa9DnExwzMAB8Z4Bw1AkznXe7fyEHbIKT4c8xd b6Yn/7gXnaB/JsBqmTOPHal09hGtlB8OSG7tTcnhHX6xgmY2hAYfkvd4feu1+ewWIZkWPCaX0gBXQ bwuib65WCnwx1CKjVW8eT11LhVi2WKD5SvWQLhHSo5jUEegTLoMxQqOdSSO4/AcTln1003cW4KIbH gwI3816DR6WYNlbOC0/JtCdxxCBtwQiRzZ9nbhix/CQoTP0UljMXkx9y9qy3pcvNjOyNpMFrCHs7w pk6X3dwg==; Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9q4K-0008OG-K9 for linux-arm-kernel@lists.infradead.org; Tue, 09 Oct 2018 11:20:54 +0000 Received: by mail-wr1-x444.google.com with SMTP id e4-v6so1409328wrs.0 for ; Tue, 09 Oct 2018 04:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oal2Sxh3eKSVbX8dI6XStpPyPYZTzwiOSIntq3DfXv0=; b=OV25Liv/lFyD4j10PxxjRuG6XarLWdZxD67jZ3dqAlxBFX1YlaFyTNEZVBOVSNQq1i lVaZU7STZZpRXA2EXDipRQqvxV2LZpJk7V67a4EOgnVB5y7pklamkS2zySPrUxj07DbK Yg2zK52/UmdqOi6yNolScWxVYpf7OsXEyVX9TAhfxctwSR/ecTf7gc78Ulwjogms51Xq +7iaNVo/9E7VTXQYJ+rSo0UyVytQ1XfNTPmNmoG7Xjsztty7uI0Mt4pe/NgAjst4WnNZ TG+rWWBY8DEBmjP2nNhnnV1kWqjaAOVMGZVmEJLjjyWw948V48dxgQMb9mx/nnPfGK4R LkOg== 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:mime-version :content-transfer-encoding; bh=oal2Sxh3eKSVbX8dI6XStpPyPYZTzwiOSIntq3DfXv0=; b=lMKniYQAS4EeYlElQ3M4w7gMCwWFU64g/G/69Uhm3Y0t7djhkqffqaLTskxp7s4bjJ ODH6EXG5yqc2bgLrOJqsM1/jC57sFtW0bCvi/J2gY0n/YrVU6EEZxflIjfJ4ckHKx9gb IG81+Hy+onfUNKz9L67aiDtvrCzcJTDq6ueAXX70PBnom6Ge9nonuyU+a/A5abdC5rOg G0Lnpgxv7tc3mejPwtJtEAZ8m2eczY+LHTz1sncgPtI0s2hfSv/quDW74tbunwe36yd4 z8YyrT0B01KxmWkz/cCqISoj95FXWQsM8dYbRP0cLQ5uhtDmBAAlaotNOijH/zmxylWa qD6g== X-Gm-Message-State: ABuFfoh5mKYlzUzqVNXVvHaAh1iHLF0B3w/M7D1bNAn6qqHaqGinK8L5 jvJXlcV7bPvfLMwrsYsZNCQ= X-Google-Smtp-Source: ACcGV607mkdQzbJBucRpiE9PV5ggxWQZsdT/km9U4sklqiGZj2wcIo3BktO2YAbo5Tk8g8uevSG4mA== X-Received: by 2002:a5d:5342:: with SMTP id t2-v6mr19214195wrv.257.1539084040733; Tue, 09 Oct 2018 04:20:40 -0700 (PDT) Received: from cperon-Latitude-7490.lan (static-css-csd-151233.business.bouyguestelecom.com. [176.162.151.233]) by smtp.gmail.com with ESMTPSA id v129-v6sm9361330wme.45.2018.10.09.04.20.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 04:20:40 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Dinh Nguyen , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v2 1/3] ARM: socfpga: Clean unused functions Date: Tue, 9 Oct 2018 13:20:19 +0200 Message-Id: <20181009112021.756-1-peron.clem@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_122052_653610_4796135B X-CRM114-Status: GOOD ( 13.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP These functions are unused externally, removed them and declare the one used locally as static. Signed-off-by: Clément Péron --- arch/arm/mach-socfpga/core.h | 2 -- arch/arm/mach-socfpga/socfpga.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index 65e1817d8afe..92cae0a9213f 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -34,8 +34,6 @@ #define RSTMGR_MPUMODRST_CPU1 0x2 /* CPU1 Reset */ -extern void socfpga_init_clocks(void); -extern void socfpga_sysmgr_init(void); void socfpga_init_l2_ecc(void); void socfpga_init_ocram_ecc(void); void socfpga_init_arria10_l2_ecc(void); diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index dde14f7bf2c3..5fb6f79059a8 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -32,7 +32,7 @@ void __iomem *rst_manager_base_addr; void __iomem *sdr_ctl_base_addr; unsigned long socfpga_cpu1start_addr; -void __init socfpga_sysmgr_init(void) +static void __init socfpga_sysmgr_init(void) { struct device_node *np; From patchwork Tue Oct 9 11:20:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10632351 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 71748112B for ; Tue, 9 Oct 2018 11:21:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F9A4289FB for ; Tue, 9 Oct 2018 11:21:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 406D728A6F; Tue, 9 Oct 2018 11:21:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C725F289FB for ; Tue, 9 Oct 2018 11:21:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sSuULU4seVl8g3LeJ+zCCEIzheie3F97yWKto+WwQpc=; b=Pg+i9f0mZ4B/5M oP4e/ZlKq4G5/vxSCTRRXjrgsneC9/MUb6OdqKC/oBS9BiXO+Ye5hggccejyShTihqYlKfFwCCYk7 oeUM0zCGoqgNI7rtTBAJd1P/D6Rm+/yjMtRUPThXv7cEjYiscFp45YElbcrf+k1vT7QBBSX1hCWQ0 JEZ/xYu159pQ7rK6d6BCY2pTIhx7TbvUqc/9Dcqr3Inu6cgw3STTnF/3NPahg8V5b4SIOEVAL40a6 HqmmCghK+nCny8is/PGQmS/HMscVvNSn1/R3AHrb8J84uOBaMosWeVXUWQCH9F2sGlHCvidEz02tX N0dz6ZVaUhW3YmIzjjxQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9q4W-0001z0-W1; Tue, 09 Oct 2018 11:21:05 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9q4T-0001yn-OO for linux-arm-kernel@bombadil.infradead.org; Tue, 09 Oct 2018 11:21:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WQN/j+wqjpzSRE7VzyTzeBWTsLQApqGBHWd7dWouz2E=; b=uNqAW1rKvpymEj/qOuhdNEuNNw 7OsaTsFs7FyUseexwIBuLfkwMlP5Va1YI4HT4KActIkTx9ouujDCeAuoX8B8pGuDaMkF2T0Gj3rdV jqhsJ9IQAIbE/SHTCfIAuWTQRrn7Cgf1qAo0lXxPRIQc6gKOGEgt0V8Th0wR/q3jZmeluoj8PtGLz dA8anSftKwUkI0UfXQUnorn3O2cizXqD/uEb7YRz+YRBBlKTQXAChfkmhm59bD40R0xJIpE0OCaUF kytnDifP6g5H0aodIutuhGuXugcFFAIHVHN4oQyvTzOTW/cNVv2Vi1I9AerMaLhonrfpuDlcOeZG8 AD2vUFzw==; Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9q4Q-00048R-Fo for linux-arm-kernel@lists.infradead.org; Tue, 09 Oct 2018 11:20:59 +0000 Received: by mail-wm1-x342.google.com with SMTP id i8-v6so1456230wmg.0 for ; Tue, 09 Oct 2018 04:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WQN/j+wqjpzSRE7VzyTzeBWTsLQApqGBHWd7dWouz2E=; b=PngYlG5JjZRP+IDoecrVlGxZAv6lQroBbnzmu/coCuqlRyyMIjayMQNI7Ixud82hXJ v5gGed9dQfeyHM8hg1P4yseG1Qy8TRgtZ4ota3J8iZxY+bC6tZ0mYT5EXhbC9dVmoC1S uPB2m5A37ue66UbA4+QsgBkezaEO206+3Fa+d+vNiMv9miTkIEuXiXQ4tXGi6W0mKce8 0i2qPYp3Z60WF3dZ6qdWhFSC01DJsnd+srSXS+OWDRjt+i4p5QtUgqKIYoZJHYS4WznM 5lEy02PTot7rLiH9BDA0zPfJm6mWOWkuWPiwxYN/2VUDXt0uN2u+CTEBvbyRE5jZw6m1 HzyA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=WQN/j+wqjpzSRE7VzyTzeBWTsLQApqGBHWd7dWouz2E=; b=FAKokyGctPPAX0Agmzn7o8UigQilBu2xllk6xiuuYt5MMyF7aBVf0cyLFqTyyCo+XX IP32zHd/upNW3C3eZeAaYzV+yeXLq43VdtPBJT17hEuRbxQpm5pNNPrOtlfxvY+G231P dIQRw8vpdKBzKN1adMlQuAkzWuyi7rRyxOTF62KGRbsHDCfWRP46Ow/tGYP4wp2ejZzo VmCpjDOBDPlzR1TmkFx/PzBk0bXOCe1xmxhc5K425Iriq6Ieltxs67Q+3LnTtj6m7LJ7 vtZcB3ZqzhSe+0nK2aPjsMSO/+zW9h5OJzvPQdD04djcxcFYC+OzeRQhXUb39TiqCiop 6RIA== X-Gm-Message-State: ABuFfohLdPW4XTAC7+x9iRNwR8Li8PXu8w5QqmzOIgRDoq+q53qSwrZk fpa28d1FUfn++yWN6neYY2M= X-Google-Smtp-Source: ACcGV63dMoZemJYoJqnJdDlk1rIOdtIDORsYXmJca9pcs9QwsgFfwBfjRCDUOxNetoSOTYCri0rgvQ== X-Received: by 2002:a1c:1984:: with SMTP id 126-v6mr1562036wmz.7.1539084043343; Tue, 09 Oct 2018 04:20:43 -0700 (PDT) Received: from cperon-Latitude-7490.lan (static-css-csd-151233.business.bouyguestelecom.com. [176.162.151.233]) by smtp.gmail.com with ESMTPSA id v129-v6sm9361330wme.45.2018.10.09.04.20.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 04:20:42 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Dinh Nguyen , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v2 2/3] ARM: socfpga: Turn on all peripheral clocks for a system reboot Date: Tue, 9 Oct 2018 13:20:20 +0200 Message-Id: <20181009112021.756-2-peron.clem@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181009112021.756-1-peron.clem@gmail.com> References: <20181009112021.756-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_072058_544144_5F0B4110 X-CRM114-Status: GOOD ( 17.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , Dinh Nguyen Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dinh Nguyen When doing a software reboot, all peripheral clocks must get turned on for the L3 interconnect to work. This code is needed when doing a "reboot" from user-space and a peripheral clock as been gated off. Why would a peripheral clock get gated? An example use case would be a .ko that gets insmod and rmmod during runtime. The insmod would turn on the IP's clock, and the rmmod would turn off the IP's clock. Doing a "reboot" would cause the system to hang. Signed-off-by: Dinh Nguyen Signed-off-by: Clément Péron --- v2: - Remove fixes tag in commit log arch/arm/mach-socfpga/core.h | 3 +++ arch/arm/mach-socfpga/socfpga.c | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index 92cae0a9213f..17c8a97c04d9 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -52,4 +52,7 @@ extern unsigned long socfpga_cpu1start_addr; #define SOCFPGA_SCU_VIRT_BASE 0xfee00000 +/* Clock manager defines */ +#define SOCFPGA_ENABLE_PLL_REG 0xA0 + #endif diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index 5fb6f79059a8..c9c881f7c67c 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -31,6 +31,7 @@ void __iomem *sys_manager_base_addr; void __iomem *rst_manager_base_addr; void __iomem *sdr_ctl_base_addr; unsigned long socfpga_cpu1start_addr; +void __iomem *clkmgr_base_addr; static void __init socfpga_sysmgr_init(void) { @@ -51,6 +52,10 @@ static void __init socfpga_sysmgr_init(void) np = of_find_compatible_node(NULL, NULL, "altr,rst-mgr"); rst_manager_base_addr = of_iomap(np, 0); + np = of_find_compatible_node(NULL, NULL, "altr,clk-mgr"); + clkmgr_base_addr = of_iomap(np, 0); + WARN_ON(!clkmgr_base_addr); + np = of_find_compatible_node(NULL, NULL, "altr,sdr-ctl"); sdr_ctl_base_addr = of_iomap(np, 0); } @@ -80,6 +85,9 @@ static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd) { u32 temp; + /* Turn on all periph PLL clocks */ + writel(0xffff, clkmgr_base_addr + SOCFPGA_ENABLE_PLL_REG); + temp = readl(rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL); if (mode == REBOOT_HARD) From patchwork Tue Oct 9 11:20:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10632373 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A90FE13AA for ; Tue, 9 Oct 2018 11:37:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9532D2884A for ; Tue, 9 Oct 2018 11:37:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 890E528C31; Tue, 9 Oct 2018 11:37:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3C6672884A for ; Tue, 9 Oct 2018 11:37:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=so7CG7Ws2v2HfFN3thXhlFbLV6636NEANHIC72l1NR8=; b=EiQ2pfQItA2+l+ e4KQE3dtYt1nvt7p0HFW6bZTo3gV6yadcXVZIbYtxRTwV1hxhCbfLVS+Zq0/xYoc4PA86KHzHq0oj 9kX9W7D9p8RL5iM3B6C1z8HlpcrMwibT0TAk6wL5bBAlRu5sS2CixHwpCP4jAcvRBuEnSWR8K0Cgd R7PXzIVQGy1iM3P1PB60uzebx4rJf+Lfn9n0MwfJa26P9UTP8J/1QFAqD+jf2tZKMtDLo8I67fEJn 3WF+Qdz9jslUbr1wEyfMfSG4DNTTbRCaQpj6L9SSdN6DRRxOmFEy5FMs2ADu3qNrHjMZDBbUyFQcs E9x6kppvEu/CnnY52xgw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9qKW-0001Fk-54; Tue, 09 Oct 2018 11:37:36 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9qKQ-0000xK-Eb for linux-arm-kernel@bombadil.infradead.org; Tue, 09 Oct 2018 11:37:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fZmLX6G2JlSljh1ihVkEH7VDWamjKDrF6JF0QalUJos=; b=vn8PNOzMSKqEIjMVxgQghPuYLZ IIQFTdtNkF6lpJm+H4BahIq9+/79XHie7BI1AkkSxIPBrqJ93FC/qCW7eg9NSTh1YJGMeQtalX19Z n7kBg0wiTIaAiLEwkHZLHPGiv0XAGFMk+LxOiHugb/0cNYrMK7ZfrioolHmOJOKeyiMt38lXPptD+ 0obGB7XBWbdwQr4eV6SU2c8e8Nlr9f/7FiYJKGE4g3wHWl+Dq+jlPDAd6MPlcNd7mpUcJo7PgJHq7 cx895hthlZjHaA3Hh/dScmVcpTaPMtQfKu5GAQ3uJTONQZUqgzX/A6KxO+XKsLdze9AOzRj2h/gwi H2qsV00g==; Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9q4O-0008On-Hh for linux-arm-kernel@lists.infradead.org; Tue, 09 Oct 2018 11:20:57 +0000 Received: by mail-wm1-x342.google.com with SMTP id 185-v6so1541684wmt.2 for ; Tue, 09 Oct 2018 04:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fZmLX6G2JlSljh1ihVkEH7VDWamjKDrF6JF0QalUJos=; b=aB1EPDq6RINF7SeqYBxAJRQsd+WfitVoH4k2hLpedq13K1iCwQCMKugxrlXhwEcyEB VABpPf1buesGa9aHdE/5ylQQ2AkdBnOWpIpkRnqK1pbxbKTgucmSQgeueCIywamIjL6Z CbO5D/z00RUU9qTI0qgA6BUDW0B64EPI2UctIiu9rJ2y50zAr1sJmHZ+jbjb0etTSLwn h1vHodmZbUXazlhKumURZZCqb5CRCJ8X0I3kGjmzIyGhhvmOTyH9CnUEjiDfFOdKgNy+ BR15fMk1kK+GyotGH8UBAL5MtqCY9nkOgv5W4wkIgpGZIKNtvvC2vDzP6XRcw1ygaRqU elfw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=fZmLX6G2JlSljh1ihVkEH7VDWamjKDrF6JF0QalUJos=; b=j1+GVeyGeGDu4rXwU7OvJuegSqP65/NpgOPMo/+izJAtOokeSBHsIMrNYW9X+OqNA0 j10mJ4Nf6D8IM1WevDCGZPU6LuluwcOI1j0wOL453LMGI1hzPzkntJQzQT0zLDNjrKWE 9h8c0G7n5vfKcbbvRqUmMQmYCdQAFbhDJ4x2C1Pz7lFkDkA7Xqxa5zKaSDQpMWhDX1qY gfv60AzHCrCxvNZLRBbJesavGVu3R3cy7C4fUVuJAvcNsy0G3kbJX/oLLfk2byjEtoyE PL/ByKPewVnX+XiFMpGT11K+wMRLebhHpun5Hx5dxXuKb83jcqfpLcmaqneijMI9qXQN GFcg== X-Gm-Message-State: ABuFfoh9/iP4Wli+t7cHqTjZBNc95BqvJS5EBA1tfkWTMGZSGSkYdB9a GeAteeog6yoRAQxr07vjIV0= X-Google-Smtp-Source: ACcGV633AXlCDGnq58VCWH3kACG6Q2lknXpCIrSil0XMpUSHWEW7N8oHMmBo4ZdeN14lwxlRfNAxwQ== X-Received: by 2002:a1c:1fcd:: with SMTP id f196-v6mr1594870wmf.19.1539084044929; Tue, 09 Oct 2018 04:20:44 -0700 (PDT) Received: from cperon-Latitude-7490.lan (static-css-csd-151233.business.bouyguestelecom.com. [176.162.151.233]) by smtp.gmail.com with ESMTPSA id v129-v6sm9361330wme.45.2018.10.09.04.20.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 04:20:44 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Dinh Nguyen , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v2 3/3] ARM: socfpga: Turn on ARM errata for L2 cache Date: Tue, 9 Oct 2018 13:20:21 +0200 Message-Id: <20181009112021.756-3-peron.clem@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181009112021.756-1-peron.clem@gmail.com> References: <20181009112021.756-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_122056_586219_DD5B69F6 X-CRM114-Status: GOOD ( 11.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dinh Nguyen Turn on these ARM and PL310 errata for SoCFPGA: ARM_ERRATA_754322 ARM_ERRATA_764369 ARM_ERRATA_775420 PL310_ERRATA_588369 PL310_ERRATA_727915 PL310_ERRATA_753970 PL310_ERRATA_769419 Signed-off-by: Dinh Nguyen Signed-off-by: Clément Péron --- v2: - Remove fixes tag in commit log arch/arm/mach-socfpga/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig index 4adb901dd5eb..a04660918d71 100644 --- a/arch/arm/mach-socfpga/Kconfig +++ b/arch/arm/mach-socfpga/Kconfig @@ -11,6 +11,13 @@ menuconfig ARCH_SOCFPGA select HAVE_ARM_TWD if SMP select MFD_SYSCON select PCI_DOMAINS if PCI + select ARM_ERRATA_754322 + select ARM_ERRATA_764369 if SMP + select ARM_ERRATA_775420 + select PL310_ERRATA_588369 + select PL310_ERRATA_727915 + select PL310_ERRATA_753970 if PL310 + select PL310_ERRATA_769419 if ARCH_SOCFPGA config SOCFPGA_SUSPEND