From patchwork Mon Nov 7 05:21:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 1252 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1849218wru; Sun, 6 Nov 2022 21:33:07 -0800 (PST) X-Google-Smtp-Source: AMsMyM6CvImJ3vzrofhN90xV54CssNFoTO4PMgYV5eEdvhgAf0t+ELnKRiEIBLV8FAaSFBGnq8Ty X-Received: by 2002:a05:6a00:1a10:b0:56d:5266:56aa with SMTP id g16-20020a056a001a1000b0056d526656aamr42134678pfv.61.1667799187700; Sun, 06 Nov 2022 21:33:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667799187; cv=none; d=google.com; s=arc-20160816; b=KHCVDpjL9uQJQxAI91c6LqPLvWwJFJI0vPDIxurgIK95NVsaUz+UMc3JxHpSCj5Xkq Dv5rjpTqkGLFGzIBScpzMDwUrlIXJ4G54/1X4OR68elMGr5GX+msVlxwoCkSuSoOlTdP XUOk+Vy0VmyO8jntxNxMvfpPrKAp15W4JEE+ILWB3L0fMhDOMliFeG5lH+Vm8gS1WL/U TvyD8du1pJh1MGUPVo9DOzZnznNVjOifNnF/uxk8+Z8r0Sc7NL34ofxV7ZUWeXooB6Pl lVRmfKvRPq6YFbz+eps9G2L+xIE0ni+tO/IrCz0X2Bee5/u7nsMIE/xk6g2ELTOiJ4Io Elaw== 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=CuTgFWqChvmu8b2BPKTbdryO+xAYh1S57El28nrvuA8=; b=q7B/uY0g13/0kluAoqt40cFVZwaheMBgIUiN/r5wtrsuoBR6ib1Ma5ScmwkAku96ol tmju+7zxvOaOhcPv2TdJt5QC2TDpoR6yADd0JhBWMQKaSVRobZFEwDoUGl03F2ndjRk/ wsq0WmAW28nuqdKR55Y5B371i5XbTJiAQ2DHdR4y1bDxqJ62UVOhQSvTuCLPgtEw8P04 Ko+5xUSnd9Qec5wtpbDVCD36FVWTzavYT/+sRPFId/APJ4iEqBXQUlVWH8DV5gAJwZpA M5sVuZYVYlG880KUGZEzmKCYpFIJ6RhMu738h4VefX2V1SnzSoUqA7oBIaImZhzx7Zn/ MiUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=FdqwZQYf; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=UhKQCSz+; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iw21-20020a170903045500b00185402cfee2si8721223plb.390.2022.11.06.21.32.54; Sun, 06 Nov 2022 21:33:07 -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=fm1 header.b=FdqwZQYf; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=UhKQCSz+; 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 S229768AbiKGFWK (ORCPT + 99 others); Mon, 7 Nov 2022 00:22:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbiKGFWI (ORCPT ); Mon, 7 Nov 2022 00:22:08 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5A9465F6 for ; Sun, 6 Nov 2022 21:22:05 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4F5E55C00D1; Mon, 7 Nov 2022 00:22:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 07 Nov 2022 00:22:03 -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=fm1; t=1667798523; x=1667884923; bh=CuTgFWqChvmu8b2BPKTbdryO+ xAYh1S57El28nrvuA8=; b=FdqwZQYfIExNw9rtIBSyPgQA9Cr25E4OLsJS1iMIs 8FZihjVZyQwqez/msYtTcdxG7Dvf+dqFHezTdsvF2nEBjAWaAndOUMErNlPN1cPL dDhQysMAlRvKEfOpU3JZM4DfFiXeSCOmn2f0k0htxo8dARNs8jY1E3GWpOsWFSef eCRX0g1aV35EvJGajkYqD+rGx/wvhTrixA/1n4bPX6dA6XJ+/XqymXaaabqvc0Ah PEfAuMugRO2OC1DpgZgGJ1z8zVb97+5orXBgZ//tQ/EgwJuiMJt/3gXxx+x/Yn2B 7X/pttHcwTqhE22x5qxH6qDnOozkbthszT7xLxMlXxi3Q== 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=fm3; t= 1667798523; x=1667884923; bh=CuTgFWqChvmu8b2BPKTbdryO+xAYh1S57El 28nrvuA8=; b=UhKQCSz+b+ZzrXWLWbQO2Q8Kc73CxsTxPNYVp/dduirY+n4xqLl RLAk/KXFDenEhXuumIibyQcLGagzDlqsw/SfHFF/mrCQwomIS2CjrW/Yprjli8S2 +a6gUoTE5WLVVy2Np6HW9jJG3EWSZLhpTdQoESgw3zk/7xz40lGJbR9Z5hbdSUtJ L8hVqLiNdiLPPXbej00YXiRsmWoogWfvXcQ7bTk4wYEZqXv6fCLG0KHwwu7kX/Qh KPId9Ca39IlFaSuilcIkxMH8sqex+dVQvAhk5wnpXOBsG8aoxG49+VFgRKsTGGpu CqcdRz5mVeWVaawRO22yBuP3ck2EwOOSdKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdejgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeekveelhfejueelleetvdejvdeffeetgeelheeujeffhefgffefkeehhffh keekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Nov 2022 00:22:02 -0500 (EST) From: Samuel Holland To: Chen-Yu Tsai , Jernej Skrabec Cc: linux-arm-kernel@lists.infradead.org, Ivaylo Dimitrov , linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Samuel Holland Subject: [PATCH v2 0/2] bus: sunxi-rsb: Fix poweroff issues Date: Sun, 6 Nov 2022 23:21:58 -0600 Message-Id: <20221107052201.65477-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748814200843698956?= X-GMAIL-MSGID: =?utf-8?q?1748814200843698956?= 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 v2: - Add Fixes tag to patch 2 - Only check for specific status bits when polling Samuel Holland (2): bus: sunxi-rsb: Remove shutdown callback bus: sunxi-rsb: Support atomic transfers drivers/bus/sunxi-rsb.c | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-)