From patchwork Tue Feb 9 07:52:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1438151 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=m1hRaXnG; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DZZqT2Dckz9sS8 for ; Tue, 9 Feb 2021 18:52:21 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CD4CF829C6; Tue, 9 Feb 2021 08:52:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="m1hRaXnG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 874FF829D7; Tue, 9 Feb 2021 08:52:11 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8B9B0829C0 for ; Tue, 9 Feb 2021 08:52:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x629.google.com with SMTP id w1so29719816ejf.11 for ; Mon, 08 Feb 2021 23:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=x4c5JhOx/oexOOSqc/epoIwTPEjgL1/18Qgkfx3nABI=; b=m1hRaXnGaH1icnNDce9toPrgbvNDj5Uiji/bhV1m2hIO/cEDFtLENai/KzPnprpj7+ TTlilByk5obO75SbEKUkLbs57PlJWwgwSModqnFEsGoUtE+BG6w8d7E3t+0v6Pb2RqH3 vA6jGTHtnQPqiFfKM4eMd0k7WwMmSR+9dVOi5pFMfrROGxsLsruIsUpw+PSpHS5JZ43A 2qf/Ao2HYPl0/Y2jx2TFUieBbWwIZkGoUn0C6euhE3vYWSGp/scLgYHeveGznIx30act 8dfwJdXINoAXNJE74XuFT53fQJrxJMUcYRYeUhKP5D4XmjA+Vv0D8y/4zDMCSN1ZcrPP P4RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=x4c5JhOx/oexOOSqc/epoIwTPEjgL1/18Qgkfx3nABI=; b=JYEwZfqyNYdWjuWaGLg2eh03iL+saD5RBMZ9Hv7/HyCrqwPyKxpVWF5Tf9YwpkfFGT QuHDUlS6nJrCSaCYpQOk6N061Z5Q5vzA4p78BM/BdBh0QguF83w6r6UGl/2M8C/eq6ur dcxOXPS52Mm8N4lU4xQaiWzGhU12Dy+PQtO9tbxZIYDqUeykj5XpGJ2YjPnB698C++uW 5gjrqp5XWxyuquKH3c0+pwckzx+0a3JmhHWKCViJRLtoHZMyl3EU3TuVZ2sWLVUlQeVW Fdqu+FuPz0LEKF3HtlCqHPiCPOeXh3OL4hCCHGHBrPSAMJa1HoKzMz+gzrE/BSCEyoQ2 9Ktw== X-Gm-Message-State: AOAM532DMQftCVhash6iZ+FOQHuTFomNs1rxl7WP8jeEY5xnzIkV7CWr L7C1iw+fcuo7Ft87T9CLvZphd+sOE6fiDw== X-Google-Smtp-Source: ABdhPJznKfs3DNgx2lXpBEoDjqaeiP+jX5/NmFi3I7tPNoJS50EtCIccXDevFhlVVFF+wHsBLiMyxg== X-Received: by 2002:a17:906:9507:: with SMTP id u7mr19644337ejx.25.1612857127844; Mon, 08 Feb 2021 23:52:07 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id g4sm11188807edv.59.2021.02.08.23.52.07 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Feb 2021 23:52:07 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Subject: [PATCH] arm64: zynqmp: Do not clear reset reason Date: Tue, 9 Feb 2021 08:52:03 +0100 Message-Id: <22ea89c98e0e790526a98bd8fcd47f13c9f4ea38.1612857121.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean There is no need to clear reset reason register because it is protected by PMUFW already which is reported when verbose log is enabled as: pm_core.c@733 APU> No write permission to 0xFF5E0220 Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index a216eeb35f15..6babc0ebce3e 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -496,11 +496,7 @@ static int reset_reason(void) env_set("reset_reason", reason); - ret = zynqmp_mmio_write((ulong)&crlapb_base->reset_reason, ~0, ~0); - if (ret) - return -EINVAL; - - return ret; + return 0; } static int set_fdtfile(void)