Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp729582rwd; Thu, 18 May 2023 03:11:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64yJvBKhltE5NBmBLnAjxq6yu4qiSMISiCdhGzU1zyO09ISvoxpXpgV8CEtakv2PAGOEgl X-Received: by 2002:a05:6a21:6d8e:b0:100:fe72:0 with SMTP id wl14-20020a056a216d8e00b00100fe720000mr1841435pzb.43.1684404671348; Thu, 18 May 2023 03:11:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684404671; cv=none; d=google.com; s=arc-20160816; b=Yfy5Jf99MXe8rPtnC7qzgKQuTMrbMMJB4vOOns5vj6R8G9ttWndk6Tf0DEHzdTL89c /vsAdG0lJzUdwo69TR/fjgIkpBLSQC+DWG0wqSn3PyvhF1TyjkEu0brD6E7KUtqrtiT4 FQ6J9rTfK1fF/pgO1tdD2flQoYCcFyqot8Hh3AKAn4KXcOIdSB/1YbSGkJ8t4UXHUkT2 TTnJdBAqtddyUYCIC2zkBRwDF4WRXwmEzomo45LsLupU8S9AXk4WL0nGAlYNUgAZeGg8 o0GJG9Nhb6+dMmq/P4Klj4pVt93ojMwksR3x1pvtg6Lv0Jh57zcgPou8xUfEGWk/AzUx TUpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=j+BkL76g0JLLxbg+Sj2RBCfxBxVkbIWC8OMmzZSLTm0=; b=HpFk9jWbAcec2GdbytkFnWYfAHW5ayvyBIgftnxIB8EYxLzddz0V1m5+FTbRykGyNa N++OAAgN/U3lO7qBB7IH7Yta2V92b+4hJRUZzgodf0voGDvCTWOxz04tKFUaUrVTBipS JYGBf1wKMx+J8S8ePqgR+VFSXJcb9LvTXWl8DqsEtuz7GeFkRINC6QOkImyHXER8m0pj Chj1B0TMJDk9fQB4u3/a2FDcWdobBF/JOPF0YcZqLOjt9VKhUX7HvlGCCdL46XcqtAHP OQq8LkVOVvh+fSRbhSJw/+AGOik2VF9MSAiTb04GY3PfXHmzNDBziU7XendZKlXtxDoa FecA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tvSraOSm; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a26-20020aa795ba000000b00643b1616d7csi1319314pfk.77.2023.05.18.03.10.55; Thu, 18 May 2023 03:11:11 -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=@kernel.org header.s=k20201202 header.b=tvSraOSm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbjERJoo (ORCPT + 99 others); Thu, 18 May 2023 05:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbjERJom (ORCPT ); Thu, 18 May 2023 05:44:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89404198A; Thu, 18 May 2023 02:44:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 15749609AE; Thu, 18 May 2023 09:44:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35B89C433D2; Thu, 18 May 2023 09:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684403080; bh=/lPdoMwbDkyCVE1IkFVr7tXpIhHSbQvwRgh7HQACvq8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tvSraOSmfZtc12HnYo4ihQ+iP9cVssbhyZhi8O7C33vWtym52vNlWe00pMFqzE9FF Py7JkQPzXAOLnL4bjzxDRRw91+VTHkukV8uWb0zz8YsL8XbJphn9whZJmxSurGOSyO Regydb0PS0jFKr7p79Td3CWUrtTqfhxVs0TatPkJZqBHdgsmX7wHAEYFoRkV2fVqd3 0Lysl15Ru6np2E6GmGtRkDD+STlJmpFrqjfyhwrpV2kT2Hfa/ITd20/MdmxICfRZeH MLGHzxxXm/fSPC7XVD/JBYj5srtUDDnLz0lNEaUoGcCIhNEIm6MyrxlweVWiSZpP+1 BYbtEEWwQxOQA== Date: Thu, 18 May 2023 10:44:34 +0100 From: Lee Jones To: Benjamin Bara 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 Subject: Re: [PATCH v6 5/5] mfd: tps6586x: register restart handler Message-ID: <20230518094434.GD404509@google.com> References: <20230327-tegra-pmic-reboot-v6-0-af44a4cd82e9@skidata.com> <20230327-tegra-pmic-reboot-v6-5-af44a4cd82e9@skidata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230327-tegra-pmic-reboot-v6-5-af44a4cd82e9@skidata.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, 09 May 2023, Benjamin Bara wrote: > From: Benjamin Bara > > There are a couple of boards which use a tps6586x as > "ti,system-power-controller", e.g. the tegra20-tamonten.dtsi. > For these, the only registered restart handler is the warm reboot via > tegra's PMC. As the bootloader of the tegra20 requires the VDE, it must > be ensured that VDE is enabled (which is the case after a cold reboot). > For the "normal reboot", this is basically the case since 8f0c714ad9be. > However, this workaround is not executed in case of an emergency restart. > In case of an emergency restart, the system now simply hangs in the > bootloader, as VDE is not enabled (because it is not used). > > The TPS658629-Q1 provides a SOFT RST bit in the SUPPLYENE reg to request > a (cold) reboot, which takes at least 20ms (as the data sheet states). > This avoids the hang-up. > > Tested on a TPS658640. > > Signed-off-by: Benjamin Bara > --- > drivers/mfd/tps6586x.c | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) I plan to apply the whole set once you have all required Acks. For my own reference (apply this as-is to your sign-off block): Acked-for-MFD-by: Lee Jones -- Lee Jones [李琼斯]