Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6031979rwb; Mon, 14 Nov 2022 13:11:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf79gtJJhC2/q0iAyoNKONlIRfkOBWzuZO7b6eyXsOSzgSvPPIijnYeQsN2F+WrZNx7go2at X-Received: by 2002:a17:906:c1c6:b0:7ad:7e81:1409 with SMTP id bw6-20020a170906c1c600b007ad7e811409mr11721204ejb.326.1668460296917; Mon, 14 Nov 2022 13:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668460296; cv=none; d=google.com; s=arc-20160816; b=zNtqcRkjA9M2Rxejmas0EPBO9EYq8/j+d796L+Qf8EHE99Py0BZPQFlMsCZzY9/JJa AVK6H5yDF1jbRmJiAdknxOr5IYPvdfUxYz95czAhu6tUSX8pEyzvkVPhQSxbfXlUbkIG nv6UkAilsE99k4NKU4COZCEZhYwPpo6lPp0wM92JBsjqY21Tiwz+uudTRLK4sL7Zsohg WF813DFGuIv1pLIwYkGr5cbDKeQel4onVcH3uqOSZlJFplDkwLLI8LyiUAP2OBFsv+ys yR1ugsZi4Yv6tcQfq1JWyrF1+U9UplUlZoCELU+KiQxeNf+otfYStdWNlp6QEqiviRCH 5P5g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vbXFOKeTUlYXn2Mg9KmKqBvEsVbH8a0lnnF+t/CHaYg=; b=aSeVhALuloK3T5cGkxKSjTp+EtVFIZSGE9MQcT8TbfadIsGsmyTXonEYVFQ1bjvEdG IiwF1XzViEdSA+cVuM+aZ1U3mo7J98SH5sS1ghDVt0/ielV8Oo8uaZdDoLGoEYZ4y4mH ZO8QkT0JgG0ldBMYJ4UC6vqlsO45U3aeOwglDI1Xf2yRjgvPKVd9axOwPJg8qwkH4jzu a35PvZoSr49z9rdC/BoyiO5H29iXQ6spm+Kp9tzaIP+mwdoQ5uwpRhoUkAMfloN1g4pc AXMBQoaPnb3gFMYZ0LmYcS4394Xyi3EURHQZeE9w4MkDFSS8JD1fQ6FoQrmgbaR+FXOF 9uAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=My3IJzng; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a056402164e00b0045d189ac612si8826222edx.402.2022.11.14.13.11.15; Mon, 14 Nov 2022 13:11:36 -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=@gmail.com header.s=20210112 header.b=My3IJzng; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237213AbiKNUuF (ORCPT + 88 others); Mon, 14 Nov 2022 15:50:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235800AbiKNUuD (ORCPT ); Mon, 14 Nov 2022 15:50:03 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C23A62C7 for ; Mon, 14 Nov 2022 12:50:02 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id v17so19063821edc.8 for ; Mon, 14 Nov 2022 12:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vbXFOKeTUlYXn2Mg9KmKqBvEsVbH8a0lnnF+t/CHaYg=; b=My3IJzngB/YmGua1bnDr4KRu/psqtSBrjcP49Gz4NDfNxNbefC/yBb47pIj8h7ry+d VcFJX5+pYd3EpAtPYndWLxoXJDJaexmUGaosAK5p/GlJ4yQx1UeiTy/YMnFKS1UJuyC+ 0/M4iZ1nNABU8xtIkYFKEmtSMHwEov1KmDNEMd9xQnRmPod+cI9oBGtONSfsdN7WNU/7 8EWNotEOdHHEMk48RzK2XJUJ1CKWhLs+Mh9x+ChVOo8xnON1Rh0/5RCHEqCIyOvDS2rD S93dH2Fi0lNvMHUne65iYpnZkIsXaePGmIgAraHs2vi1qzrqZUnCemkTrNb9rRQdfri0 WjMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vbXFOKeTUlYXn2Mg9KmKqBvEsVbH8a0lnnF+t/CHaYg=; b=diFXXKhfUCB7ytFvw34WUZOkoc4bn18w+FuL6bdtKbcrf2w5km9hAwjyhXL/IhtGue U3CEhJz7H024yfac9gUCBi7+4e+zjBieJZ7n+PeBE/iOxkQ5BZlELentRbkx1x4wymUJ E5Kor2z0MpnGveuphWnlZIaPN5ZxVuxDezOIoOVvRHPzQ57uO2MR+KRRvp13BIv4fXz5 mYaNnNbUkg/PLegt4echA5FYOT47+xTAo8TpBjzz/OCz/Qe3nDrDOaCqcraIIOZ8U60N JVeyEVUbXM/8rn2i3/6xc43BybSbxsGDB00fqWM9LspgaheLQNiqzJ0n6+Pb1bUS8VVE uQuA== X-Gm-Message-State: ANoB5pkBIcxqLV2j2kvi2yvZ/R8tux2rlYYtJYwDsWGwaCCWX3eg052Z ePmyH3Bknrr5tPXvTKStQcg= X-Received: by 2002:aa7:c446:0:b0:468:74:9820 with SMTP id n6-20020aa7c446000000b0046800749820mr3304216edr.288.1668459000719; Mon, 14 Nov 2022 12:50:00 -0800 (PST) Received: from jernej-laptop.localnet (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id v2-20020a170906292200b007aacfce2a91sm4605452ejd.27.2022.11.14.12.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 12:50:00 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Samuel Holland Cc: Ivaylo Dimitrov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Andre Przywara , Samuel Holland Subject: Re: [PATCH v3 2/3] bus: sunxi-rsb: Support atomic transfers Date: Mon, 14 Nov 2022 21:49:58 +0100 Message-ID: <3506150.LM0AJKV5NW@jernej-laptop> In-Reply-To: <20221114015749.28490-3-samuel@sholland.org> References: <20221114015749.28490-1-samuel@sholland.org> <20221114015749.28490-3-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Dne ponedeljek, 14. november 2022 ob 02:57:48 CET je Samuel Holland napisal(a): > When communicating with a PMIC during system poweroff (pm_power_off()), > IRQs are disabled and we are in a RCU read-side critical section, so we > cannot use wait_for_completion_io_timeout(). Instead, poll the status > register for transfer completion. > > Fixes: d787dcdb9c8f ("bus: sunxi-rsb: Add driver for Allwinner Reduced > Serial Bus") Signed-off-by: Samuel Holland Reviewed-by: Jernej Skrabec Best regards, Jernej