From patchwork Sun Jan 1 18:33:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 13086421 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 419A9C4167B for ; Sun, 1 Jan 2023 18:34:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Lgzp+3wztFiiOdJzhbUnMBzFVmQil5YnlGRJKjA4xx4=; b=Z2MdGOIsMsyUEm 53IDOeP+gU297RZu/QYULlKX/G4/xVzYFRgw49EtFZDAeX9IRklIoDRD7wZeFcQxQYNPfRJkVvsHB xsNuq4AskKiVxt5LwXL3rSNX7WNhatwg60zWjup16FZ8L9+34+5PHbMdmORxsshwS+qjWnKThLxa4 1xTqaDRSC6LrVuGUA9Hz550Fu+DQjsCExj1BOwUv4bY9jDxoVwMw6QxQkNBvUfBH8g/STMW5Lrf5I xdFua0p+mwPrCVYhww+QE3MrZ6lAchXFllGVgsNklwIog8HbToqFgCbTulHo1/YuUaoVyHUQUa8xx 7WX8xku9ybKKysbt/JaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pC39E-003hAP-RH; Sun, 01 Jan 2023 18:33:29 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pC397-003h5B-3g for linux-arm-kernel@lists.infradead.org; Sun, 01 Jan 2023 18:33:23 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 7D1163200063; Sun, 1 Jan 2023 13:33:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 01 Jan 2023 13:33:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1672597998; x=1672684398; bh=pPNQpVYlTQwtH0yI7fJJtR/ei bnG2GO2Hpnu03U2DyM=; b=hdkXIt0xOz1sN6hcmzvTTXltEtOX/MMA5wiTlDKXK Fb32J6qxOJnkbd77qlS2hRH1RS2u2viUtf0+vJcDPF6e2qIYsNKgTuB6Un8jYTLI +5f75QvMSzXulfcHx7mWZJPFolP7IHnQ/p/22ZrvSkhWPJeay5Np7no7M2Paj3+C CF17SZfh63F9U9XV/f4KOk56LxDpJgd8/+TwnJxZXr0trBcwfF9M57TRJuVOOoz9 Gq0YZuAtEVQuUH+/E1iCJljiE4lKYWkqpBea5AnfG4h/8T9ND2WAy3EW2o1bOer9 yDUsH5fglVH0yLlQap1i9RqPnF79JCcZOJR/cbx4EHM4g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1672597998; x=1672684398; bh=pPNQpVYlTQwtH0yI7fJJtR/eibnG2GO2Hpn u03U2DyM=; b=mjbqwFpik4dHPjLxAK/ac+hMDG4JjQWVd1CPfQDLOuaAvkBJcVC 9yySN6v2Xv6wuA7XeUK62tdYyXoUy4EEPRW2mw5Xjpj+sQa86ZRKa4fPZHrwvgB4 uH6ph1W1P9IoAPltRiHnC4CVwR+e+HN4H4jplpUwv4Nz6pjxZuR2Jd+BBtaHoCsg bTDW04O8unntozPEF05mfHqbhq/uTf9fPX7ASS13e+rth/7fpJnJPNeFYkHX74VA HdvPcD7zqVLcdcysdDUJlJpWZVXehzb+kFPycnhT1yVkemo3NUb0r80c07vemGt1 FSPqQnDtNOVlJGFKPcic5S365AvsfswGY4w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrjedtgdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeehffethedtteffgfefteetjedvfeelueevudffgfeutdejvdehledv vdffhfevnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgu rdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 1 Jan 2023 13:33:17 -0500 (EST) From: Samuel Holland To: Srinivas Kandagatla , Chen-Yu Tsai , Jernej Skrabec Cc: Samuel Holland , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v2 0/2] nvmem: sunxi_sid: Fix for D1 variant Date: Sun, 1 Jan 2023 12:33:14 -0600 Message-Id: <20230101183316.43642-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230101_103322_032250_67B34236 X-CRM114-Status: GOOD ( 10.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is the first two patches from [1], with the stable CC added. The first patch fixes a bug causing incorrect values to be read; the second is a cleanup. I split the series since this bug needs to be fixed regardless of the DT binding discussion. [1]: https://lore.kernel.org/lkml/20220814173656.11856-1-samuel@sholland.org/ Changes in v2: - Split out the driver fix from the other changes Samuel Holland (2): nvmem: sunxi_sid: Always use 32-bit MMIO reads nvmem: sunxi_sid: Drop the workaround on A64 drivers/nvmem/sunxi_sid.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-)