Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4951589rwb; Sun, 13 Nov 2022 18:00:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5sKEUd3hnrgnqZ+QmjgNgiBcfWAl+s7cL3IlnNvc2TegBj/F+ZqmeAZ0bBW+7+/1fXvg2q X-Received: by 2002:a17:906:6c81:b0:7a6:ea24:7b01 with SMTP id s1-20020a1709066c8100b007a6ea247b01mr8327641ejr.410.1668391254506; Sun, 13 Nov 2022 18:00:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668391254; cv=none; d=google.com; s=arc-20160816; b=vOmA4jIcO2oVcnHV17N/ujQiGuoMghzAPxnoXPv2/osGS1IWOE4lxxban2cy8SHOJp 6WmeQL/t1H73oEHT5cFdFNgnKKgLkH0zAonITic2KYNem6CLakt1CVOFD79DgVzNl+SS lMNQjeK0mHyC9ECYSh+v85ufOFcEtlrqicIqM6+jiyt0xLgfwH9EuM2E5Hmwvih+hDAF 8Gqt3wR1jN6mpbIDt0P2+b1e/hOqfC/WP61kn38BaCCEdRROC/mQCAP5wTV4uTCh90u9 XCA1pWYkA3GCHKFBMFthxKSEkJWmDRZ94ktwUQiQ333E6UkK5KFCtXoRZkj38O9lkFEX iF/A== 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 :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=dA3bbglhiZjYdTP+ET4rVGuGWcZdCaQWUzZGG9uUdbY=; b=GQuG8gD6fcwM5qFAvXc8QwhfCWbMsbF6PCEj9Qm+CqyXSEHPFhK8qM0Npa2yfMtr3E HQwEb2N7BhvGVZJFLajHVXJzOEhSpRSuusMllcyl/WhgOIiOdwDQq2FEhq1OY9+2rNsh 7Q1IGNkrsVvGY5iEzeOom6Lef9CGGpnhXgBtHV8AbUmVVHflGcqBk78s2pJcJNiEEe10 orA66WJPYCD2MZPEGNrO/u25LHCUdtHzvxKNgMsMiNGsCl5BefkmTe2fwb04KefHS40n T3Kn2uQH+F4z8LLXBiuEwFlkxYQBg5XM29eVw+uD3I1Df0qy8RYil7GYHPQB2NQ+QNKV k0tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=T38uFRM5; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RxMUJJj4; 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 k4-20020a1709063e0400b0078277d265bcsi6332205eji.204.2022.11.13.18.00.30; Sun, 13 Nov 2022 18:00:54 -0800 (PST) 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=T38uFRM5; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RxMUJJj4; 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 S235014AbiKNB6I (ORCPT + 90 others); Sun, 13 Nov 2022 20:58:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235747AbiKNB57 (ORCPT ); Sun, 13 Nov 2022 20:57:59 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13478DFA7 for ; Sun, 13 Nov 2022 17:57:55 -0800 (PST) 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 MIME-Version: 1.0 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,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 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