Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2493241rwb; Mon, 3 Oct 2022 01:15:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SdC3dDrqUcO2mS8LtahWvLyf4Qgp1JAj1CggALS5+3JReh88xHzQAiNbhimFX+dpt+7RW X-Received: by 2002:a17:90b:1d0b:b0:203:c099:107c with SMTP id on11-20020a17090b1d0b00b00203c099107cmr10877068pjb.35.1664784927096; Mon, 03 Oct 2022 01:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664784927; cv=none; d=google.com; s=arc-20160816; b=qnsClqLNYm97V70wtUyhYujyOawRZw9yDjDxpb/5Efc1dnPT3CdUB8P//EcYMiz2Fx ExUHnmul6Fts0BQX9t0sypNgzfRbwwLYS22LyQsQtrr1TlnIzMinun8SZUXHDHn/3kHa 1vq4dBW16y2VUn7sErKpvIvdbrS/8Igp2rpTZ9PtYQH/vJf4ihJ8tBj3jQZXquwSq2Ye BJEbaPJ3ZjQ8PtL62J/bqN1m7eLeWsVqb/M2sPD2+RemjPbAGekVPWQacthzxVLq0Fue Zdf16uRiKvqiVo4j5/VMMxx7Q1UWGhFCY4eVwuyMWFVmdGngI36qffhVTKzs5TR71O+w 546w== 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=WAy4jwrsAZiwUFhuyywPhHJE8N4Ofhg5GG4YE8kME9k=; b=hiuCa83UhPXp528X/sZww+DeR4mCbAF2hNj7l2mofbeyeWAn/O/Hnn5le7uEogJPkl Jy7ORA20QCSN3fGr52PLqIBaSU8Uvk+jqaTo/z+e9NgQHhbBcLKperJLEztLvRQfFXIH 83fNbwOxbttHY5OTnS8RAOImbkf5zHqCOMqr+2DX2ad/6HiEkigyO4lvpY1VPGslYT6q zf/8EF+/fpGng/P81deovPxRZmVMDBdSBHyTfbeibSDynVPkQfr1OUMk9CgfgntVEh5b s25KtSjlaoH9Kbkzqov2Dwj4k1gX/5LL341O60ihjqIJ8QpGmDM7Gr7T8u6x6o/Enr7S tQXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jVqg2+nI; 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 m17-20020a635811000000b0043969d624dcsi9168289pgb.675.2022.10.03.01.15.15; Mon, 03 Oct 2022 01:15: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=jVqg2+nI; 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 S231732AbiJCHg4 (ORCPT + 99 others); Mon, 3 Oct 2022 03:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231425AbiJCHez (ORCPT ); Mon, 3 Oct 2022 03:34:55 -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 DD7FA5282E; Mon, 3 Oct 2022 00:22:27 -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 445B5B80E8F; Mon, 3 Oct 2022 07:21:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A1B5C433C1; Mon, 3 Oct 2022 07:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781713; bh=OjqaxKdyXQdIj26ecar37eYOMKcebmogVY5rVa3cN/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jVqg2+nI8jtVovb/pZ4Cc3xi5RO4ZZGCjAXk2vqGz+KqPq/p95SwunidylHQzTelY +Y8O/tRGgNeS/g+IRVX0bs6WHnmeX6LWCepqP3ySbUJz+PoXc4h3qD30RA8YeSdHB+ Kc6RTgFW7HPspSPIFWDcaKOooKZKcfZZOJoHW3DM= 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.10 37/52] soc: sunxi: sram: Fix debugfs info for A64 SRAM C Date: Mon, 3 Oct 2022 09:11:44 +0200 Message-Id: <20221003070719.843192919@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070718.687440096@linuxfoundation.org> References: <20221003070718.687440096@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 ef1620ea4bdb..443e38e9f30a 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