Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3197351rwb; Mon, 15 Aug 2022 20:48:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR4OuJNREYDqUaAk6rscacGJ8MvyrrUDR9FWazG553ql4IdULNBjdUggOl4UmHUpRMLYzjSH X-Received: by 2002:a17:907:8a14:b0:731:2198:627b with SMTP id sc20-20020a1709078a1400b007312198627bmr12235689ejc.635.1660621694037; Mon, 15 Aug 2022 20:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660621694; cv=none; d=google.com; s=arc-20160816; b=Z8d7pc59E2+QzMOAdyVObS4aZIU8LxGfKaJJPpv7TNP3MPWzHP+SVXfI4Gv+eohev3 FvxsRj+L450QqcmqlsrdsofRMVs810YK7FMy34JwDWe/Y5+hI8B7D+2w+mcM1uoNB26I WWsohqHVtuMfi6/GUqZuOT5rUlAjzDmqxomj0pOzijrHNQk/RLiCn01oNW3y2Xl/R1jn iZKRV0sJMtai1gziosO7LM5F5aqhODLp565xj5dAStnqVcjOU/wAob0eEHYhDWxEkTo4 e0YbmgMoOcOa/OlevYb+uTDRoV9C28DXGUj0V6M2CmUdYLpuM5go1LYzStELB4Ux6y3M Lerw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:feedback-id:dkim-signature:dkim-signature; bh=aoST6YOZ6PDdCieixstTPtUnoofjKIkv3U3vVtPuCBU=; b=dEJ7Pbkh7tuVbLYyRdZkkZdOt1BOdCoojetOouBSJdb2Gr9z01uIHLUt5NCeblASCn lTYyi+IfAJAo3DDp87/atPYIIRVLDJ5EtTDBeb9RP6XuO/cdyX93g38jUGHH4HFRXDt+ xGGeqCWKsJJ3vH7EuEfONFnrfCjYeofdvDjooZ1niw3rRRavwSuxuIf9DJFV4WNDAt4n KBxNANHY2pSzhEpKUkXLrR0bx8bVHAs2OrVSH8J5QHtrWVQb/OBVc879AlJBSv309Dla IT6sUEARmX6r+08C0Xmk0HXUxE1rHQ/XpJFik6P494aIkxTm4xnStnmHS4fr2W6G8PsY 5+og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=Wn6i3Gsb; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Iuui4JHE; 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=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa10-20020a170906fd8a00b00738a50268d3si854167ejb.417.2022.08.15.20.47.47; Mon, 15 Aug 2022 20:48:14 -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=@sholland.org header.s=fm2 header.b=Wn6i3Gsb; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Iuui4JHE; 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=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229644AbiHPDpi (ORCPT + 99 others); Mon, 15 Aug 2022 23:45:38 -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 S229550AbiHPDpH (ORCPT ); Mon, 15 Aug 2022 23:45:07 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8990832CA8B; Mon, 15 Aug 2022 17:16:40 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B801632006F5; Mon, 15 Aug 2022 20:16:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 15 Aug 2022 20:16:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1660608998; x= 1660695398; bh=aoST6YOZ6PDdCieixstTPtUnoofjKIkv3U3vVtPuCBU=; b=W n6i3GsbCD3i2+eWaAbryXhrR+MXC4Kf+mLqwwIy50ccUyfxp3FUkbFH/d16Wpt7r rbnfMiYmQH0F03Sq9xjs+RuicAsTLwZCHG/iU10KgaP3wXpJVKj5RJQ23QhRyz3X PblUb7KdhsWpJMguc7J+R/b9Zd7Gry51+FrVpXNbVcPlFbN+uAlCZO5juNqOZtGP gM5l605TlYbDEmODJzz1W0BDbsSc4/ztoIp/Qf4kObSFfZ4i3+6CLSVxOkhLoPtO aJ0WGJBSGrQQH6OAO9U5pPaWybzFjlFYbjBd4mIoWw5kbZhUbmDMnpQlsAjRUsWh AOEDsWWkgd7Vz/TsYt5UQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1660608998; x= 1660695398; bh=aoST6YOZ6PDdCieixstTPtUnoofjKIkv3U3vVtPuCBU=; b=I uui4JHE2w3Q5aOtlS0mJKHkX7E3CT7lnKnzYPp6XSx2+CRCwvyc9iLrRvTqnxH3g q0V/PfNb/50q4r3ouPsGXbuK9asqWXl4/SpDSz5s7oQEFFpyn4vA6aIV46fjC+9w 6xh0JtlgiZLFzZNlHpTDmhagX1Mnxaq7EMYWCL7J4gouPsHrg9rhp0qNdJfpswts VYQ6Uj5g35qNBp1qT85DGMxIM4txN7xv0cbLZA79tMHZwGX8B+jr10uI/8axHwkq W22zELSdxB1okRINLhWsBA0V44ti/cn5HWFZWB1nk8ispa7wnt6jwkHb/L0YAoWi HYJ2NSebG5G2nwG/5Wz6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehfedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvvehfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpedtvefhheehgfdvkeetffeludeuudehudeuvddtveelleekvedv uedviefhkeeuheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Aug 2022 20:16:37 -0400 (EDT) Subject: Re: [PATCH 2/4] nvmem: sunxi_sid: Drop the workaround on A64 To: Icenowy Zheng , Srinivas Kandagatla , Chen-Yu Tsai , Jernej Skrabec Cc: Greg Kroah-Hartman , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev References: <20220814173656.11856-1-samuel@sholland.org> <20220814173656.11856-3-samuel@sholland.org> <197d58ed8b674d622e5c6a049905cd88e40659bc.camel@icenowy.me> From: Samuel Holland Message-ID: Date: Mon, 15 Aug 2022 19:16:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <197d58ed8b674d622e5c6a049905cd88e40659bc.camel@icenowy.me> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Icenowy, On 8/15/22 3:37 AM, Icenowy Zheng wrote: > 在 2022-08-14星期日的 12:36 -0500,Samuel Holland写道: >> Now that the SRAM readout code is fixed by using 32-bit accesses, it >> always returns the same values as register readout, so the A64 >> variant >> no longer needs the workaround. This makes the D1 variant structure >> redundant, so remove it. > > Is this really tested on A64? Yes, I tested this on a Pine A64-LTS. You can see the difference easily with md.{b,w,l,q} in the U-Boot shell. I verified that all three of the following are identical: - NVMEM exported to sysfs with the register readout method - NVMEM exported to sysfs with this patch series applied - SRAM dump made with md.l in the U-Boot shell Regards, Samuel