Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp811705rwd; Thu, 18 May 2023 04:26:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6rewJhvaFCkh2S05xTZM5rHlZY72rjlQma/4mdfQr/Id29ZaqQwSNQNyH3Z32zqCpUJdBD X-Received: by 2002:a05:6a20:158f:b0:106:8b:99cc with SMTP id h15-20020a056a20158f00b00106008b99ccmr2099443pzj.45.1684409175593; Thu, 18 May 2023 04:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684409175; cv=none; d=google.com; s=arc-20160816; b=Xn6K98pyYXXIpj3OcM/IBFKzi+9WmIpVdLjF8hPnAuld13pDh37+Ni3kxnKf9a2N3s 6iF6Q1SRanqX9Y1QoTNsVtcYOJO7Tf+UZljyLYAlao2xNGjqpAjdj2Z89AzQwTowi1fR 3X/WPWO6Itx3bRLfhENkJljM/LecRm9gZUMWDQBWfSAIX0RWdrExtaV1xCNMeJ31XgL1 iZLObK9CK0FlBun4h7blYQBQtDGCf50tY59QKbUNUPTKJN/VIULzI+eHeLwlxQmKuRnr ksLQ1tnHwUO6iBuWFw4TEcA8OX6XOelEwNEZ+on0/bu8o4TGrhoJsJH1b0tc+6EhgQkd cQzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vurKMc/YYUUVzVXRRGSKlq0dOEViCUdOrU3bCkWvudc=; b=u6vDTIWJYjxkt/4ib223av8ile5frHN/N90cVuqSXCVwtL4a3xwya4aqP79/uhg+oO DY+gwmYC7isKHZHvz8zaUx4M06pNAFGGmNlKTNY5ne70ezIzymVY/HnDzDp5smDDxE2X ySNiXZ3bIoBzKtlhKSoXW6Q2gohgbFCTLoHrcg0LIhCTrKi9ZtpdyTsPr2HMSTeUgslg weqQjHJUS7ZfzVJjYnt1XFyPJ+lb1ewNgbEjjyA75h2bId9e6aPiaxMt4zvX+eR46+fi CO61kXGhH2IfR2T8ysL9ZIdRwLQYHwAeJFTiHMQ2P88b52WfDX8ykDKXQlGkUruTlsvS 3vvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="LN+h7cb/"; 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 j2-20020a636e02000000b00528593926e3si1151361pgc.627.2023.05.18.04.26.03; Thu, 18 May 2023 04:26:15 -0700 (PDT) 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=20221208 header.b="LN+h7cb/"; 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 S230218AbjERLPi (ORCPT + 99 others); Thu, 18 May 2023 07:15:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbjERLPh (ORCPT ); Thu, 18 May 2023 07:15:37 -0400 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 D65E0B8; Thu, 18 May 2023 04:15:35 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-510d6e1f1b2so3034508a12.3; Thu, 18 May 2023 04:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684408534; x=1687000534; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vurKMc/YYUUVzVXRRGSKlq0dOEViCUdOrU3bCkWvudc=; b=LN+h7cb/nb0qiowQAIxQ7xI9Ql/JJl7xtJkMwlLkMQ910mYH8m8Brox5PwyRnbSxfB 5+lnat8wwGw0RzEHwcTza0xxVhxxHw8q6kVVze9lUMrbAVFC8/aBAY9nIa5qYFEFUop3 fXERp8YrhlnfMY+1DjtzVpifKAyPQCvGbwqqOTLNZT+H3beOGi6mxIbF/8va+8xk/SFj 9jSsXsoUp4WldbChB2x4425bJhc6XkioOur+ciFdghtzUGAjobxmsRTBzJ4eza8Dk7S/ e3VCyFku6YZyNwbYoeuNv5Q/YfbB7pLJbYJrzpR1zoQD+esapujWGlbrbwUGe/K+ZNcG rRAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684408534; x=1687000534; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vurKMc/YYUUVzVXRRGSKlq0dOEViCUdOrU3bCkWvudc=; b=GPDt6/F3YePFotVxESoztven1tKBfZ79pvBEpdHTWhoraV0FuzrFZtqdoVayf8K3MM OF9u7Y79V0HBirW4et1rzRIHrMmgmkuGgcJc3UJlXRiUd2y0sftXoVXlD+n8A0e24kbA RSgA2U8YJ7KEd4oT/dBBJu10uf+jnW1ei88B0yBek9TdOHtfYREoavVAp0gjc6X7xVH6 tduLD7/NIN/HEWans2Qk9DJA0cRv6BP+WRxgWjmtQR2bS+xnbcP9sTPniVR8DiDRc7xK wDqvTS2xAqqdC30H4N7S6LhQiETkpv4d+YBxqrRrLQdK8xWzmMH9LT7AM+8MuHGCb+sG NHTQ== X-Gm-Message-State: AC+VfDxXY8lOdf+eYtIL3mxS+BoX+IcVx9ItsMkblBCPN4kciVhdaTy9 NBrT4LKoLz9lyEt17GGLwu871ZLY+P2fsztENH4= X-Received: by 2002:a50:fb9a:0:b0:50c:3dc:2262 with SMTP id e26-20020a50fb9a000000b0050c03dc2262mr4443211edq.39.1684408533952; Thu, 18 May 2023 04:15:33 -0700 (PDT) MIME-Version: 1.0 References: <20230327-tegra-pmic-reboot-v6-0-af44a4cd82e9@skidata.com> <20230327-tegra-pmic-reboot-v6-4-af44a4cd82e9@skidata.com> <20230518094340.GC404509@google.com> In-Reply-To: <20230518094340.GC404509@google.com> From: Benjamin Bara Date: Thu, 18 May 2023 13:15:22 +0200 Message-ID: Subject: Re: [PATCH v6 4/5] mfd: tps6586x: use devm-based power off handler To: Lee Jones Cc: Wolfram Sang , rafael.j.wysocki@intel.com, dmitry.osipenko@collabora.com, peterz@infradead.org, jonathanh@nvidia.com, richard.leitner@linux.dev, treding@nvidia.com, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, Benjamin Bara Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Thu, 18 May 2023 at 11:43, Lee Jones wrote: > Do the 2 MFD patches depend on the others? They depend on 3/5, which is an extension to [1] and makes the respective device available to its sys-off handler. 1/5 and 2/5 avoid a warning which is shown if the handler is called from an emergency restart (e.g. panic()). The reason behind it is that the i2c transfer currently doesn't recognize that it should be atomic in this phase and utilizes the DMA instead, which schedules out while waiting for completion ("Voluntary context switch within RCU read-side critical section!"). [1] https://lore.kernel.org/lkml/20220509233235.995021-4-dmitry.osipenko@collabora.com/