Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2502366rwb; Mon, 3 Oct 2022 01:27:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM45NmhDqfTf5i22+KTi/ckjVSBOOrvclHwl8QHG3Y6SB4bzOijEpIwi1YG5/9i09A0m0yOO X-Received: by 2002:a05:6402:26d6:b0:451:24da:f8cf with SMTP id x22-20020a05640226d600b0045124daf8cfmr17979209edd.385.1664785636233; Mon, 03 Oct 2022 01:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664785636; cv=none; d=google.com; s=arc-20160816; b=hhbTtaeM6DUPUNzM/GlYKTrkKqVw02N+oJ/UPKJ7eYTMQCdLcRy7SOOLWR6XS+qrK8 vG2UFakhPLKUKSLMHdNe5QwjqsYlgpFYYv73Zf4GvUo1xe7dWxrlpvy6oOCEYNjxlOdK j6GvKmcW6VqNupTFsLnuVOCb21SdCVTA59B5bqmkgnsFjeex3PmSR9n0+n+9FXg5HrzY YV2i3VycYEYLhGADcyQK5rbGxxoFrCc5L/P2iifd+X738IL13v/w2xzSalfJJ5J9MIEj H7T/2eDKSAvEx4kYydkzUPD8R8/YsrQrWKUZOAzO2R3NS4J0tsVeAr0KepcxqukG/XCi SGdg== 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=7ltrY1zhNbE4MatU5gs7gryjH9Hwk8XexkIljABKKOo=; b=KF+O0ABhJu1GABrlWnVjUGHK69ZpqD/LnA+IXGEnkU+GIKLYdLaQ4x8WP1LHJrzN8H Jr0PbbjIEpSQ9+lg2kyNbnBePSUOy8JLaY/5FA6W96lECYLdHC5FojM6SN3AhWGDEDJD ztXW3jxy3T/JygUlV7eW5mud7Qcz7OCwM04ooinxKUwPcFUDWfjU3KyKBIJPGQgOXqlt SQ1NyHfP9QJxUe2eUNXaCgoqZVJH1t91Eg2ZpX+hCWrKVY2FT06esSwaHr3KXjIyEIwS VWzmtWClhGgLOq5kPC1QWrgwDIvtc5SJ6jjcPnnfKhSBlfYvMkgRsaZy1OdrG6Kj0g6Y eOAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=s7KDtKZc; 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 e22-20020a17090658d600b007813594dc31si6966027ejs.523.2022.10.03.01.26.50; Mon, 03 Oct 2022 01:27:16 -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=s7KDtKZc; 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 S232212AbiJCHti (ORCPT + 99 others); Mon, 3 Oct 2022 03:49:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232504AbiJCHsu (ORCPT ); Mon, 3 Oct 2022 03:48:50 -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 50E474CA2D; Mon, 3 Oct 2022 00:27:43 -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 1A9A2B80E95; Mon, 3 Oct 2022 07:25:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68CBAC433C1; Mon, 3 Oct 2022 07:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781911; bh=HF3Bai1FuaDExbJPKkn3jxEmi1N1I4dUecZ7Yor5B1I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s7KDtKZcICe4qlJacQZMFOFURkIBEQhdbgczEV22zN+blNdkR/c4xFk2PSu23kvVB VlRM23XCsvqMx2yIfpR7jcBy2Au3B3Pn5ZJNI9L+jsUHcAvXxGN+mcMRFraZ0ee2fW 2uQhZaDCAqamTQx1f9UyT2ASJeF8a7trqrJ/3dcY= 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.19 18/25] soc: sunxi: sram: Fix debugfs info for A64 SRAM C Date: Mon, 3 Oct 2022 09:12:21 +0200 Message-Id: <20221003070715.951863669@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070715.406550966@linuxfoundation.org> References: <20221003070715.406550966@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 98a4d4548a23..2c1672f9aac9 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