From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 676F4C433EF for ; Mon, 8 Nov 2021 07:48:10 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8FB30611C0 for ; Mon, 8 Nov 2021 07:48:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8FB30611C0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Hnjs36wGHz3c6D for ; Mon, 8 Nov 2021 18:48:07 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=209.85.160.176; helo=mail-qt1-f176.google.com; envelope-from=geert.uytterhoeven@gmail.com; receiver=) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HnjrV4vNtz2xLJ for ; Mon, 8 Nov 2021 18:47:36 +1100 (AEDT) Received: by mail-qt1-f176.google.com with SMTP id s20so6254115qtk.0 for ; Sun, 07 Nov 2021 23:47:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=niQCVpji9nu8a8Mfie3ofua8MkF1HzpLuS22ys5pvwg=; b=2V5oX6J28mJTPJRSccx4EBI3HSoXQM6udfUHSNyJ5TDPPrNRL2V1Z6fxaID61oHmUy TwdrqaY4nQEyOTdmHOn7jG2oK2HArRs/IkuyajEI8IWLLAa9yUZ/pntOH48vk3ngdhZY SLyAs+YaPsoO1JGM3BvCCyWv3s+9Felc/p2K8uVclwoCIYKxjUHrLlNSv2BW/bSKznOJ oQo9TNrGaJn/x+vZ6brEo/7fGhNRTIGQle0BvBFFU63Tc4uIQCY1h8Frk226DxkCOB1z sttYZzQQxugoAFUGjH7UHbvTP0Fc7jNE6CAiJKElc3IYyt7EbBSDW6ooQvWYRqpNyFVR g3iQ== X-Gm-Message-State: AOAM5322GNITMJj7xwMOp4yQwZ2G7GP/z23ae2FdYsYhXeAesaoCDp8K 7USKUmBiRDiNvFeNqCG0F93AdEfoQ/yjWg== X-Google-Smtp-Source: ABdhPJyCg6vpgTpxqL6ILZEIh0Iz/b1gpV+sZMyynTi5u8i96hKvUl4z2RIRe17y2oyEoB/Uvb+KnA== X-Received: by 2002:ac8:7fc1:: with SMTP id b1mr82262824qtk.369.1636357652691; Sun, 07 Nov 2021 23:47:32 -0800 (PST) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com. [209.85.219.49]) by smtp.gmail.com with ESMTPSA id n3sm9753665qkp.112.2021.11.07.23.47.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Nov 2021 23:47:32 -0800 (PST) Received: by mail-qv1-f49.google.com with SMTP id d6so11420202qvb.3 for ; Sun, 07 Nov 2021 23:47:32 -0800 (PST) X-Received: by 2002:a05:6102:3a07:: with SMTP id b7mr71214037vsu.35.1636357641114; Sun, 07 Nov 2021 23:47:21 -0800 (PST) MIME-Version: 1.0 References: <20211108004524.29465-1-digetx@gmail.com> <20211108004524.29465-22-digetx@gmail.com> In-Reply-To: <20211108004524.29465-22-digetx@gmail.com> From: Geert Uytterhoeven Date: Mon, 8 Nov 2021 08:47:10 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 21/25] m68k: Switch to new sys-off handler API To: Dmitry Osipenko Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson , Rich Felker , linux-ia64@vger.kernel.org, Santosh Shilimkar , "Rafael J. Wysocki" , Boris Ostrovsky , Dave Hansen , linux-kernel@vger.kernel.org, "James E.J. Bottomley" , Thierry Reding , Guo Ren , Pavel Machek , "H. Peter Anvin" , linux-riscv@lists.infradead.org, Vincent Chen , Will Deacon , Greg Ungerer , Stefano Stabellini , Yoshinori Sato , Krzysztof Kozlowski , linux-sh@vger.kernel.org, Helge Deller , the arch/x86 maintainers , Russell King , linux-csky@vger.kernel.org, Jonathan Hunter , linux-acpi@vger.kernel.org, Ingo Molnar , linux-parisc@vger.kernel.org, Catalin Marinas , xen-devel@lists.xenproject.org, linux-mips@vger.kernel.org, Guenter Roeck , Len Brown , Albert Ou , Lee Jones , linux-m68k@lists.linux-m68k.org, Mark Brown , Borislav Petkov , Greentime Hu , Paul Walmsley , linux-tegra@vger.kernel.org, Thomas Gleixner , Andy Shevchenko , linux-arm-kernel@lists.infradead.org, Juergen Gross , Thomas Bogendoerfer , Daniel Lezcano , Nick Hu , linux-pm@vger.kernel.org, Liam Girdwood , Palmer Dabbelt , Paul Mackerras , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Joshua Thompson Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Mon, Nov 8, 2021 at 1:48 AM Dmitry Osipenko wrote: > Kernel now supports chained power-off handlers. Use > register_power_off_handler() that registers power-off handlers and > do_kernel_power_off() that invokes chained power-off handlers. Legacy > pm_power_off() will be removed once all drivers will be converted to > the new power-off API. > > Normally arch code should adopt only the do_kernel_power_off() at first, > but m68k is a special case because it uses pm_power_off() "inside out", > i.e. pm_power_off() invokes machine_power_off() [in fact it does nothing], > while it's machine_power_off() that should invoke the pm_power_off(), and > thus, we can't convert platforms to the new API separately. There are only > two platforms changed here, so it's not a big deal. > > Signed-off-by: Dmitry Osipenko Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds