Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6796786rwi; Mon, 24 Oct 2022 06:17:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5VoRatndgRvx5imd1FWMT2mPOa+affHsHM9Matn7cye1YSFplzspnpy5zLi+Yl4HiAowzx X-Received: by 2002:a05:6402:1394:b0:456:97cd:e9d4 with SMTP id b20-20020a056402139400b0045697cde9d4mr31888724edv.174.1666617464235; Mon, 24 Oct 2022 06:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666617464; cv=none; d=google.com; s=arc-20160816; b=PTE+mnn4as1uWcrfzMLkXyD7T9fbO/5F1GR+5iAvvOvV24g/umAwLJ9A1l4xoOqSCB MwLpcc1h2XkkWvc6DcgtK5lzGVJLmOGf3BmyLNbADjzkGKcFvyOaQscN98Ce2LfixfMh QKjUG1+00UW1n4jrTePC1HO5yQiT4quem800KxhLJxYTpHkvnRodG8YO0SGNfhFI/ku7 trl/Kao9Yd+IlDo4YY9Cl0B2EDFjXzfu/4T11qKeC4F0KDiZ8hDvwlpHsBWzwOTSL6gk WyqxbNVj1/GiFbcQH5iOQs0XNxSmfYaDNgTQr7cpLOI0rbxgz6h+RS0uVtkNv4Cgy2vK W8Bw== 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=SQPrH7pdTTRcmshdHd52+RTo/glKDq3LPlynRpSyF2Q=; b=pwHR2dS1TNiIiTQm+EDU8NgXtD6Fsl+wvwcfvjI6F1xPurCYaRn3LC+Nw4d30yfohG 4Zg948KjyswkCuNDGhTywpWUdywpgAZYVnQ6YeeHscgG/Sp+fyhnBM3pM6ZqF/9mCeon fOGfnnqeadwflkuLbHF8wZG0T7KX8xrVZSl80pgHsQehE4q0fdWw4uc1Qpr5tv3w2esR mnqfBUAzpYqPUkDzjz27iSmDBYN7l4/oKjreH9zH/DK6Pv9cUEd1DY9vAq+DqXAmSfiP C0nVmic3bBnag0x/ImF35b9XE+bVrCDumPpJJTam3gIqxun8EZNnuaFYVyt0+l9ApDMr oTiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dakrno5R; 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 hq6-20020a1709073f0600b00787c0e9818csi32871961ejc.568.2022.10.24.06.17.18; Mon, 24 Oct 2022 06:17:44 -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=dakrno5R; 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 S230243AbiJXMAG (ORCPT + 99 others); Mon, 24 Oct 2022 08:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232382AbiJXL6F (ORCPT ); Mon, 24 Oct 2022 07:58:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FE626705D; Mon, 24 Oct 2022 04:47:06 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 583A761259; Mon, 24 Oct 2022 11:45:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C5EDC433D6; Mon, 24 Oct 2022 11:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611943; bh=Ps87XqJ8mTOOkz04phuBnhuydhHkO87uQG18sIDCFtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dakrno5RGnm8ZYoxS/HCH1FHZbz3BD4l0ALY8rJVgiEfZ4/dHVKeuOSLfH8mCE6Dd Bv4FFG/aU6evEu6syPvjqpFNih3dWfmVS+O8wxbqJt6ukz0U8fWo7xBEGaE8txO/fF LFXKUvAn5Nt/T3NzannB7BXmq0F+MjcU6pLL7VDM= 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 4.14 011/210] soc: sunxi: sram: Fix debugfs info for A64 SRAM C Date: Mon, 24 Oct 2022 13:28:48 +0200 Message-Id: <20221024112957.263749971@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112956.797777597@linuxfoundation.org> References: <20221024112956.797777597@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.6 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 97bb4d8007ff..3a0396395e70 100644 --- a/drivers/soc/sunxi/sunxi_sram.c +++ b/drivers/soc/sunxi/sunxi_sram.c @@ -71,8 +71,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