From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9099910F2 for ; Mon, 14 Nov 2022 01:57:52 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 7A0BC320090D; Sun, 13 Nov 2022 20:57:51 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 13 Nov 2022 20:57:52 -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=fm2; t=1668391071; x=1668477471; bh=dA3bbglhiZjYdTP+ET4rVGuGW cZdCaQWUzZGG9uUdbY=; b=T38uFRM5X0/bzVaKD2QyMSYq2e7pdKZWcxgcs0K5k 4rrOO86ogLLlXxGUxxzLbGfkR1p+0q3JCj79hpL3zKyTnFotCkv3771rRrRyS8Aa QBQ9q7oap9whn6dVC33LIAR6H1DCTg8lM0isRK8ZqsOc3BOJi6bRXICBcNdig9Is +iVAAifENF7JT97kId7RZ6vfMX54THHBkz0F91W7Qjb0NdazeKVrc8TLQukssID/ UwUJgzI3bW6gQrsXKneO8CtonYOlCK4f51Smvqksptm3l8DaZ2FzTlOMvNFQfZRj FxROKCnJbxepjBkHfR8cj6HBf4X+XloywZkz8+x37TdHw== 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=fm1; t= 1668391071; x=1668477471; bh=dA3bbglhiZjYdTP+ET4rVGuGWcZdCaQWUzZ GG9uUdbY=; b=RxMUJJj4LBOGCSqYr1EmG80Ei5VyYZyP/wOTG/7OzrvsxuGaLw8 BcitLqqQgt3gu1Z29bcPkKSH0Tm2FURqTxhQVCKSe8eOCvkFy9UcDb0+m39KtpoE 2X+mZJm6/TAM0wCA0fUVJ3cgok1QPZEj6KjtdXFmmVEoCn+0kcA7IwWY1bu8BtMz LqxILM3+tv0oYgbD2URYKf3gq7WhIVZPGRDuKDamrghdDUaftCGgyUKgAz1tKKsG ZYGwgIywV7f2x87isZnap+lNYdfeJJSb9KgPJtNJRiEBkFI4B7s+tMB9IJZ1o8Qu WuKYirZHHL/tenie6aOKo+8AY0U9bMQqBDw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgedugdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeekveelhfejueelleetvdejvdeffeetgeelheeujeffhefgffefkeehhffh keekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Nov 2022 20:57:50 -0500 (EST) From: Samuel Holland To: Chen-Yu Tsai , Jernej Skrabec Cc: Ivaylo Dimitrov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Andre Przywara , Samuel Holland Subject: [PATCH v3 0/3] bus: sunxi-rsb: Fix poweroff issues Date: Sun, 13 Nov 2022 19:57:46 -0600 Message-Id: <20221114015749.28490-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.3 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series fixes a couple of issues that occur when powering off a board using a PMIC attached to the RSB bus. These issues only affected 32-bit platforms, because 64-bit platforms use PSCI for pm_power_off(), and the PSCI firmware reinitializes the RSB controller. Changes in v3: - Adjust patch 1 commit message - Clear the interrupt status register after polling - Add a patch refactoring how the status bits are cleared Changes in v2: - Add Fixes tag to patch 2 - Only check for specific status bits when polling Samuel Holland (3): bus: sunxi-rsb: Remove the shutdown callback bus: sunxi-rsb: Support atomic transfers bus: sunxi-rsb: Clear interrupt status before each transfer drivers/bus/sunxi-rsb.c | 56 ++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 31 deletions(-) -- 2.37.3