Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5463646pxb; Sun, 7 Nov 2021 12:54:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQFMXJ0W9j9zvgzxrVE6mOAIM7h6xO5d3hAD1m/UVJ4IqTmu1TLVdhole1mT68Xp8/pswO X-Received: by 2002:a05:6638:d16:: with SMTP id q22mr21095456jaj.35.1636318481615; Sun, 07 Nov 2021 12:54:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636318481; cv=none; d=google.com; s=arc-20160816; b=dDoGZpzZurDaUsQRh+4x31DB0Bzy5cEAfJwKJI4wTtSQ7jMlDcH17QXe0SbRAay31Z djVA803CIB8HSPoWrBq7fhWIEypT5FuiZk3uY51nknuEYfcIK4ujouqX+i2P2l6GNy1c ACwuI4Vg70dNVX4l+5fHAmX7atM0PG0w7J8Zk+m9pnleBmWd0yrXC4osCcyLbGLe2SiP 8YtDxtV2UXCC/SbhiGvyM+bzqD08erhMRuRRpgSwtlHq0gDoXvPhCBMslMC7PatQMiOO dz470Ehy+NK3oYgQREz6wy+U6JP35ke0mePFJLYTYqSSMXISLVXT0r6aEmFYvS2eQ/SH LvlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=FuxjUSeidJvAMVHKU9E/d55P+zyTiwTeSCeqf/uVMDo=; b=iUFubmfm6dhh1sRbpB7tT4iarcXbBK7WbAtInv4mnQDBaDiT/ueuKcQUWw2zo3T9dX h5IGc1HO7ohzZS5ji4tVA4hUYXSrX1Gjloi7ItpKD+olBjHsByfb35qAsiQ/u4xkXkYm WUpB3Q6c9uRHueWIx4RxvPcVpxz+XsAthoWV17auu01v0B+RiL9yjeASZSkwqH6LzY2m hzgfZTXmle/iI0c9N0ed9bx+Inw46sU4oT0YdUK4r1CaoQgdXsvoykbfYw98KDXUBUns BP8A+Z4G2EZ0NnxOA7w5Ts2U3KvjSWEZSQ7BFmZ0GiS+elwLHPanblbcUnLLJPUFIlvG 0DMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lwzfxq5u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si28177743jat.27.2021.11.07.12.54.29; Sun, 07 Nov 2021 12:54:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lwzfxq5u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235903AbhKGQzw (ORCPT + 99 others); Sun, 7 Nov 2021 11:55:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235895AbhKGQzr (ORCPT ); Sun, 7 Nov 2021 11:55:47 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93E4CC061714; Sun, 7 Nov 2021 08:53:04 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id b40so1362609lfv.10; Sun, 07 Nov 2021 08:53:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FuxjUSeidJvAMVHKU9E/d55P+zyTiwTeSCeqf/uVMDo=; b=Lwzfxq5uEYmwUHQaauy1zdfEe4xJydQ9b9Od8uYrwBczi5NJMIekKLJg7wlYTXl+4h aBwFrnzPjUuQZKv1Ia+S222jU8dJElyFhzTX7Y6Z3zgW5uo6fxyJ6Ub7QZuJOpIcD/5G Z5zvDqw9CupdRxfoeBn7XfS8iSTjIzecdpz5R8YfLYHN44fPq2Sj3DZqQfYaE9SGw4KM 9QVgWsVoZpReO+np7PVvhGoeoi2Muq2En7xd12JC02FvD5KUvlS8dKa1pfLtqGdyB8C3 Q31AQZyOLu3Y3rBXma7EsV9dMapOWW+H7dfnyyasqa2gU34jVZGgiKgGYKDrTdyFanCB 8Grw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FuxjUSeidJvAMVHKU9E/d55P+zyTiwTeSCeqf/uVMDo=; b=3h7BWS4vsfeNsf0u6cAzVWltrHbUiy5pkrxRqklJN0hnSS4vBDCXyZoPdBF3V+jmkP 10GGVGqmQEzL50PyvVbH5LIqrxSpwV1cC7tdI+BLQXkOXvu1q0bHtt+8JiQ9XxFdVKst O4+ZbUJttBQl561kl3AWgu6v3bML18ZBxUTIJkG+rBluCHgD0b15oI38w25pvNkJTYaj AFDAl+VF6qxbLisLHPeJgo5dLZ005XN8Fj3oJnSVXfm9SlLUeypKznA9odujmigv1OI3 UJqIUMXIVOqSaeBe5MtAqJ37C5HkvtamXB2r3VRO9u7bCyzQFDo7EP7hLOeE2i6ynoS6 p1kA== X-Gm-Message-State: AOAM532ULEzpzgxyCUvW6BRw4G2YZa2EdEM/UCtsVLRVG/FEx6+x+f8l NaOLZBgPXHSUMzK3sJwjtOTTRckjT6o= X-Received: by 2002:a05:6512:1082:: with SMTP id j2mr64106958lfg.568.1636303982698; Sun, 07 Nov 2021 08:53:02 -0800 (PST) Received: from [192.168.2.145] (79-139-182-132.dynamic.spd-mgts.ru. [79.139.182.132]) by smtp.googlemail.com with ESMTPSA id c3sm860233lfb.122.2021.11.07.08.53.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Nov 2021 08:53:02 -0800 (PST) Subject: Re: [PATCH v2 27/45] mfd: ntxec: Use devm_register_power_handler() To: =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= Cc: Thierry Reding , Jonathan Hunter , Lee Jones , "Rafael J . Wysocki" , Mark Brown , Andrew Morton , Guenter Roeck , Russell King , Daniel Lezcano , Andy Shevchenko , Ulf Hansson , Catalin Marinas , Will Deacon , Guo Ren , Geert Uytterhoeven , Greg Ungerer , Joshua Thompson , Thomas Bogendoerfer , Nick Hu , Greentime Hu , Vincent Chen , Helge Deller , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yoshinori Sato , Rich Felker , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Len Brown , Santosh Shilimkar , Krzysztof Kozlowski , Linus Walleij , Chen-Yu Tsai , Tony Lindgren , Liam Girdwood , Philipp Zabel , Vladimir Zapolskiy , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Pavel Machek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, xen-devel@lists.xenproject.org, linux-acpi@vger.kernel.org, linux-omap@vger.kernel.org, openbmc@lists.ozlabs.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org References: <20211027211715.12671-1-digetx@gmail.com> <20211027211715.12671-28-digetx@gmail.com> From: Dmitry Osipenko Message-ID: Date: Sun, 7 Nov 2021 19:53:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 06.11.2021 23:54, Jonathan Neuschäfer пишет: > Hi, > > On Thu, Oct 28, 2021 at 12:16:57AM +0300, Dmitry Osipenko wrote: >> Use devm_register_power_handler() that replaces global pm_power_off >> variable and allows to register multiple power-off handlers. It also >> provides restart-handler support, i.e. all in one API. >> >> Signed-off-by: Dmitry Osipenko >> --- > > When I boot with (most of) this patchset applied, I get the warning at > kernel/reboot.c:187: > > /* > * Handler must have unique priority. Otherwise call order is > * determined by registration order, which is unreliable. > */ > WARN_ON(!atomic_notifier_has_unique_priority(&restart_handler_list, nb)); > > As the NTXEC driver doesn't specify a priority, I think this is an issue > to be fixed elsewhere. > > Other than that, it works and looks good, as far as I can tell. > > > For this patch: > > Reviewed-by: Jonathan Neuschäfer > Tested-by: Jonathan Neuschäfer Thank you. You have conflicting restart handlers, apparently NTXEC driver should have higher priority than the watchdog driver. It should be a common problem for the watchdog drivers, I will lower watchdog's default priority to fix it.