From patchwork Mon Oct 24 11:28:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8539 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp416675wru; Mon, 24 Oct 2022 05:12:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Wi2Iw+dAki6cM01Qu6CV2rwcc7XMQvqcblBl21kCygRClu1c4o1kcV8ssuWPJ/O5gxQjU X-Received: by 2002:a05:6402:40c7:b0:461:ecdb:1c41 with SMTP id z7-20020a05640240c700b00461ecdb1c41mr1465072edb.288.1666613525795; Mon, 24 Oct 2022 05:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666613525; cv=none; d=google.com; s=arc-20160816; b=PtKtqrQ6Rn1C2R6HnN1psS1CJjHvXVARnGYv6dRr2nddFikCfUvQ09g+JAJN3U8CuT oHMtVKhNRZ8mFYl8WT/xq7TRQDqLb1uwnKJcWtXkYyp0hMkfAZewigr5fujhSgFbQk6V EpvGXq7ev/u2dcYcxl52WWlS5uAUi5dxUl9mvSLzlLYpOMs2qDg5pqlN+S2xiIANK17V 72PggHZnCNHUJSgzItQBU8oglhbNQN17urqbGnHbghu+UDE6UXx9Y6AFyxYBnSOfBAcq VKnzuHa+TZgE3OnNAUnrGXyWVKrjTw1xPdesWcAuzJ6d2PC541/FsSKmY235M48stxht 4xPA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l26-20020a17090615da00b00741a18d4a5asi22645022ejd.994.2022.10.24.05.11.41; Mon, 24 Oct 2022 05:12:05 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747570944474453044?= X-GMAIL-MSGID: =?utf-8?q?1747570944474453044?= 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[] = {