From patchwork Wed Dec 5 15:50:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 10714475 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 125B917DB for ; Wed, 5 Dec 2018 15:50:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 047C92D7F0 for ; Wed, 5 Dec 2018 15:50:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3A3E2D7F7; Wed, 5 Dec 2018 15:50:33 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 753862D7B9 for ; Wed, 5 Dec 2018 15:50:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728000AbeLEPuc (ORCPT ); Wed, 5 Dec 2018 10:50:32 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:34126 "EHLO baptiste.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728100AbeLEPuc (ORCPT ); Wed, 5 Dec 2018 10:50:32 -0500 Received: from ramsan ([84.194.111.163]) by baptiste.telenet-ops.be with bizsmtp id 8FqW1z00Q3XaVaC01FqWDZ; Wed, 05 Dec 2018 16:50:30 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1gUZRW-000246-6U; Wed, 05 Dec 2018 16:50:30 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1gUZRW-0003k4-4B; Wed, 05 Dec 2018 16:50:30 +0100 From: Geert Uytterhoeven To: Simon Horman , Magnus Damm , Yoshihiro Shimoda Cc: linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [RFC PATCH 0/7] soc: renesas: rcar-gen3-sysc: Fix power request conflicts Date: Wed, 5 Dec 2018 16:50:21 +0100 Message-Id: <20181205155028.14335-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Simon, Magnus, Recent R-Car Gen3 SoCs added an External Request Mask Register to the System Controller (SYSC). This register allows to mask external power requests for CPU or 3DG domains, to prevent conflicts when Linux changes the state of a power domain through SYSC, which could lead to system lock-ups. This RFC patch series starts making use of this register. Note that the register is optional, and that its location and contents are SoC-specific. This was inspired by a patch in the BSP by Dien Pham . This has been boot-tested on R-Car H3 ES1.0, H3 ES2.0, M3-W ES1.0, M3-N, V3M, and E3 (only the last 3 have this register!), and regression-tested on R-Car Gen2. This has not been tested on R-Car H3 ES3.0, M3-W ES2.0, and V3H. Thanks for your comments! Geert Uytterhoeven (7): soc: renesas: rcar-sysc: Prepare for fixing power request conflicts soc: renesas: r8a7795-sysc: Fix power request conflicts soc: renesas: r8a7796-sysc: Fix power request conflicts soc: renesas: r8a77965-sysc: Fix power request conflicts soc: renesas: r8a77970-sysc: Fix power request conflicts soc: renesas: r8a77980-sysc: Fix power request conflicts soc: renesas: r8a77990-sysc: Fix power request conflicts drivers/soc/renesas/r8a7795-sysc.c | 32 ++++++++++++++++++++++++----- drivers/soc/renesas/r8a7796-sysc.c | 22 +++++++++++++++++++- drivers/soc/renesas/r8a77965-sysc.c | 3 +++ drivers/soc/renesas/r8a77970-sysc.c | 3 +++ drivers/soc/renesas/r8a77980-sysc.c | 3 +++ drivers/soc/renesas/r8a77990-sysc.c | 3 +++ drivers/soc/renesas/rcar-sysc.c | 16 +++++++++++++++ drivers/soc/renesas/rcar-sysc.h | 7 +++++-- 8 files changed, 81 insertions(+), 8 deletions(-)