Received: by 2002:ac8:45c5:0:b0:405:464a:c27a with SMTP id e5csp1263278qto; Thu, 27 Jul 2023 09:14:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlE6hYWrUbG6aaOpy+ebo92Vemjj2amu4wBa9+avYLw8XFMsRLl+3CWm/uPmtGS8G7c+Wtdg X-Received: by 2002:a05:6870:d7a8:b0:1b0:2f70:15a5 with SMTP id bd40-20020a056870d7a800b001b02f7015a5mr3353842oab.52.1690474444254; Thu, 27 Jul 2023 09:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690474444; cv=none; d=google.com; s=arc-20160816; b=N3k3xONmifVeESxUqDYMIwFUJxkp4X0clP9bTHqr6xaKwR1AKUrV4wLrlYOEjRcuMS 1z7oeQ0AW9/cAoRwPsB5SYuj+veWYkztSsHjjwuKlpXX5z31mahArI6CQ/TAbwEMmlXx U6doZ5msEJfdfE3uplnQaaDmycM45PsqmSBd151qsIIqfpGjpa+austuz7YoQ69YgQGG avOpTh/F5+yuHEMKBW07wY10lGFAzeIkAE8y3xTwAPEN1HfVp8GbuXnGITGZ2yWtIUIM xNG1Uy644eY4Ve8DjLudCgcGVU8NL6gaDqouZkwuykrjQqKdkpsqbY1q3+pIXmDOTS3l X4JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=z5lUd6tLllXoqVN95rU12GI/kHjXVOUk+BNB7Y22cto=; fh=OmAoaJuvB3XXLiomCJL8N6gASfCe++NVvvDQhXSoxOs=; b=je2nKPFyHORCT+H07mCIv4qqZVOFs/9GjH37PW9TD/Lhtp+2VKAOiaWUHz+tgJMd4H ezTZ17FjuI73eiJZ2JlQJttye8n23m5MlHTmIs4AncdpGGt/TXV+A/VLOavQCLeTwd2q OCoOOQtkCtilxYmp01DgXVh31tJrCzCFwAYStRHQW+zXo4eAGUJVabPq/TJIfF4JAwue 5BiH/yL83ckFAuTgEp1veuUy0sXbiHnHjEQfIJJ2zt6igszcCRxWwjCNjT0oAXaEzA3b sl6wciy+7E0GwQKFCgA0u91g0jbmw5rmSW61sJA6IFs3yXROeDGTVB2VHUxA4YVGX1Va 3ADg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=FjsdD+F6; 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 r195-20020a632bcc000000b0054fd947f66dsi1405254pgr.210.2023.07.27.09.13.51; Thu, 27 Jul 2023 09:14:04 -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=FjsdD+F6; 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 S234629AbjG0P05 (ORCPT + 99 others); Thu, 27 Jul 2023 11:26:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234588AbjG0P0u (ORCPT ); Thu, 27 Jul 2023 11:26:50 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A97231FF2; Thu, 27 Jul 2023 08:26:49 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fbc656873eso12229525e9.1; Thu, 27 Jul 2023 08:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690471608; x=1691076408; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=z5lUd6tLllXoqVN95rU12GI/kHjXVOUk+BNB7Y22cto=; b=FjsdD+F62OVFGK0evuFmUjv+fYHflFxnl7eTSOLR+NXfZROQ34Eou4GPvtFmLGiJwb Ks70ALf537BmtGdLK4EB7Ufr6+Zu+b7jPbyo7IxuK8/NfIgkhA0/5j32Px3PuRN2Wh6q Hmb8OtMzEH6euQFvszszXZ4erEJb5h/YmVrCJz1Z6DFjIxsFOHZOIWEmHAuybBNDPEPX hX4cF2DoQ8xxqWjap1trw7ZrA5q0tocGUEiXVaT1VPUh1dZa2FQscPW0BTp3oPSbD9Dz cvcBp+Qy0PZuq61ANQpoT6/cMDmAzmzNLo/SZp73vZqmOgM00VaYyqjdUIdN6c7IqeML R10w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690471608; x=1691076408; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z5lUd6tLllXoqVN95rU12GI/kHjXVOUk+BNB7Y22cto=; b=KjqA72P0/eF2AFM0NWZ+0x4rxBsLi14R3qrEqlh56mZhvVhx/qf5RYfHl+cs+wFclu 4d9ILcW6UAZJNWUssCn5vltQjuifni5LP2gegeQskW1sQry54WabNMFprfit315i99Cz nmilhEKICo+I+oFHu2oG9bRTeO9ImBHULrsGpkQOQ6SQ/60Xwo+gYAc+nK2GEBJOIYbM zTLpbWbomb3W407Cpy54awtjfmJSUBx5NbdB5sTEYupjuD6j2tHyMO9bAEBS5HZChOzQ yi0DCzUxndCupjCRPrqI/DyfPHqylB1PWVLr+0QXbbgFxPO5qHahf/NNyzLS+MoeITon 7Byw== X-Gm-Message-State: ABy/qLbyOgrJNo8Rc0UYK/keKcb0J85IBe+MvmJ04pLO8iMA+TIL8CRA wTb6bld8hUOnViABjH+7D2I= X-Received: by 2002:a05:600c:ac1:b0:3fb:a100:2581 with SMTP id c1-20020a05600c0ac100b003fba1002581mr2186582wmr.14.1690471607767; Thu, 27 Jul 2023 08:26:47 -0700 (PDT) Received: from [127.0.1.1] ([91.230.2.244]) by smtp.gmail.com with ESMTPSA id b17-20020adfde11000000b003143765e207sm2350622wrm.49.2023.07.27.08.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 08:26:47 -0700 (PDT) From: Benjamin Bara Date: Thu, 27 Jul 2023 17:26:37 +0200 Subject: [PATCH 2/6] mfd: rk8xx: Specify restart mode MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230727-pca9450-reboot-v1-2-c8edb27bf404@skidata.com> References: <20230727-pca9450-reboot-v1-0-c8edb27bf404@skidata.com> In-Reply-To: <20230727-pca9450-reboot-v1-0-c8edb27bf404@skidata.com> To: Lee Jones , Thierry Reding , Jonathan Hunter , Tony Lindgren , Liam Girdwood , Mark Brown , Dmitry Osipenko , Robin Gong , Jerome Neanne Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Benjamin Bara X-Mailer: b4 0.12.3 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 From: Benjamin Bara Specify the implemented restart handler as a cold one. Signed-off-by: Benjamin Bara --- drivers/mfd/rk8xx-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c index e8fc9e2ab1d0..15e8e6a9943a 100644 --- a/drivers/mfd/rk8xx-core.c +++ b/drivers/mfd/rk8xx-core.c @@ -697,7 +697,8 @@ int rk8xx_probe(struct device *dev, int variant, unsigned int irq, struct regmap case RK809_ID: case RK817_ID: ret = devm_register_sys_off_handler(dev, - SYS_OFF_MODE_RESTART, SYS_OFF_PRIO_HIGH, + SYS_OFF_MODE_RESTART_COLD, + SYS_OFF_PRIO_HIGH, &rk808_restart, rk808); if (ret) dev_warn(dev, "failed to register rst handler, %d\n", ret); -- 2.34.1