Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2494095rwb; Mon, 3 Oct 2022 01:16:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5mcpUDo3xxwlgYSvqZQCu2mfooGqyXS584zPq0MvJRa0R2/cS9PITeQJ3WoDKDMN9bQ41N X-Received: by 2002:a17:90a:8b09:b0:20a:afec:c57e with SMTP id y9-20020a17090a8b0900b0020aafecc57emr2314759pjn.74.1664784987381; Mon, 03 Oct 2022 01:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664784987; cv=none; d=google.com; s=arc-20160816; b=awSPEAA2R9MqICU2SZHK4qJxZ535AJLs841vzim/8pmoeuFYpyJIHKduZxmBJ8+nXq KMcMpSmE72jugf8Q3wjp24YdCd3ZD/Qas7Pi2AuweKCK5pDn5xCpWINaVOJRA3shPkrx g0XqF0RpevBlwmanVadePqejyZ8GvkJ03TROPipw95tOFnkKPoj9sLNm9nXfez6QWNxC VbBMlHn9q26b7o/gKMqEyJln1NxP4oi6vUK/7FpsddCi61es/KwvSswnY3Snyv/am04y d0C11NzHTaxoO7Ql89eSO9SJJUKAq5Zm/PlITGoFg/oQu883uHWbN6ccOzsSW1xUA181 uQMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RLeAKaGpftlIIbiGlaBuXwYrTj1GTwjL5b4RImQIu3M=; b=TafYwukfOJ0S3GbzLy1c0TEgXcXc9rHde56gD7Uh0enzShkp1GTkYEiV2Lvd+xMcra lzaRKw82TzxndlDfmdmWge0setOjOCZR0UU+DmGEtJZv3TX4vQnMjmv9T5x/W5EGW0PV barnJyFI4icEztinuK/KJptOfgj69tNszHkYC8mQeLJlpjtzAePaOt+jzMJ1ytxfOTz2 ZuwrtIMAfJAhkFF4peZcnx5V51xNkVjITl+EHm3WbDKGKXpLtaU3E1ZHeOOMaePCppg2 bEWgkKPOqgHzKy7NoA16WojlWOLqsI0TxHwzDuy4ly20i+f3mtM0L+UHjXwbpCeLRNi2 hApw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ii6xqogb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x15-20020a170902ec8f00b00176955c81eesi11387202plg.247.2022.10.03.01.16.16; Mon, 03 Oct 2022 01:16:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ii6xqogb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231401AbiJCHa3 (ORCPT + 99 others); Mon, 3 Oct 2022 03:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231417AbiJCH3F (ORCPT ); Mon, 3 Oct 2022 03:29:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85AB917592; Mon, 3 Oct 2022 00:19:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DFE20B80E8A; Mon, 3 Oct 2022 07:18:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42E4FC433D7; Mon, 3 Oct 2022 07:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781507; bh=rbGALLdGpMoXn3faPKL8k519MdGxpF/HHBObKz4rX/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ii6xqogbUcOnkAgRMuie84Jyk47LKE8p91IJzn0vERb6DL2OH2wzT8xMhucal5O/d OlKlMIaboCI6eNAy+8njaqbm4AC6mLq4pTLZEGJDg3Y1B+Etg9ZyNq4vVuHpAoHUEP 1Hpv8YaJHNXirZqorKhnSZ8YkpHbYkJB0OXezPa8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jernej Skrabec , Samuel Holland , Sasha Levin Subject: [PATCH 5.15 46/83] soc: sunxi: sram: Fix debugfs info for A64 SRAM C Date: Mon, 3 Oct 2022 09:11:11 +0200 Message-Id: <20221003070723.148776309@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070721.971297651@linuxfoundation.org> References: <20221003070721.971297651@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Samuel Holland [ Upstream commit e3c95edb1bd8b9c2cb0caa6ae382fc8080f6a0ed ] The labels were backward with respect to the register values. The SRAM is mapped to the CPU when the register value is 1. Fixes: 5e4fb6429761 ("drivers: soc: sunxi: add support for A64 and its SRAM C") Acked-by: Jernej Skrabec Signed-off-by: Samuel Holland Signed-off-by: Jernej Skrabec Link: https://lore.kernel.org/r/20220815041248.53268-7-samuel@sholland.org Signed-off-by: Sasha Levin --- drivers/soc/sunxi/sunxi_sram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c index 52d07bed7664..09754cd1d57d 100644 --- a/drivers/soc/sunxi/sunxi_sram.c +++ b/drivers/soc/sunxi/sunxi_sram.c @@ -78,8 +78,8 @@ static struct sunxi_sram_desc sun4i_a10_sram_d = { static struct sunxi_sram_desc sun50i_a64_sram_c = { .data = SUNXI_SRAM_DATA("C", 0x4, 24, 1, - SUNXI_SRAM_MAP(0, 1, "cpu"), - SUNXI_SRAM_MAP(1, 0, "de2")), + SUNXI_SRAM_MAP(1, 0, "cpu"), + SUNXI_SRAM_MAP(0, 1, "de2")), }; static const struct of_device_id sunxi_sram_dt_ids[] = { -- 2.35.1