Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1473889lqp; Mon, 15 Apr 2024 07:34:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwWOIaxdbcD16KvuLMXvyKwAjGsgTOqhTEZPrz+aLdyuMP07N9uXJxtzNtPI8s03ue8gSDs5hXZ4feoMKZF8sXHPOZAm/LRmF2meGIxQ== X-Google-Smtp-Source: AGHT+IFcbJzJlrK5j2csDC+RI2Xmo54Yzb4UVP9IFFI4icTKI8gkprvJYlrrc6fhd3JzL1R1Yu+1 X-Received: by 2002:a17:90a:e2cf:b0:2a5:221:68a1 with SMTP id fr15-20020a17090ae2cf00b002a5022168a1mr7973242pjb.33.1713191673008; Mon, 15 Apr 2024 07:34:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713191672; cv=pass; d=google.com; s=arc-20160816; b=ee1v+1/xU3KCSDx6ta4dE7IcSJBtpuUvBdmf5L1uwqZvGreRkRZZt4TL2S+T+4+u/p HRNPAtzk5g8WyYMQCnFnutOFSx3a96O7MHFGKtb6T0pp9QwafAar/fA3xC3B4Na0wqcG UMmb4sIH+mZ85ByjLL59T5yOBl8Yp+tiQEFzICP0U1pE6WojmjSVhyaVTUqcoLfIuj7A JFnbW+cYsxCoAPWD3/fhYE3YvQDVviHcGwMGkS7u53KpamzUonEp9uFcvlHCVq4vLbTF Xr20zjrxNdptTBFZOfqg6BujDP4gTo6t/KjuBSqc44MmxBKR6pITYvgBv4HgnhiKcVM2 7Pzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NBenbo5yQKESlQcuptjD7PXvm5EokMPUnv64i7h32sY=; fh=hj3rDR6DWpTGhIYkSs1JyxBhnrHrB2bPOQXmYiZPIrM=; b=jiPzDYWWU4NJP5SvtxzWlxNJvuO+XFa1mbR8+Rfzd7C7jeLNDbdrkxCxqtARzLJD35 RmFd0Z3mpNOMBR7ntUKbnJodHLVsT2xsNAtN/1H69Q7Eln/2tpUas2DeEZupfdz6qoPd RnYsL29DYj7lGuzKgDY/A6PLwz6z4fJ70lTj2NyQq5nDi7QKSoPojdJlbd6YREmB8K1Y 8B72yJ4Qf1ONJHds/dpml7l/lsWwKGtp0h0xLaSFmk1G106kNUtnVP7qIA8Xhxjw2GqR Ag1O2XKTk9dFU77CJmkp/oQHuY1DZrSjvpbHNCH0HZfB2SxVMNDziPAJycPqKdZtUblo DnsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aDJdQYJF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-145338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a8-20020a17090a8c0800b002a5d029da5fsi9999077pjo.36.2024.04.15.07.34.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 07:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aDJdQYJF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-145338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5DBD2287D3C for ; Mon, 15 Apr 2024 14:22:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2080B763E2; Mon, 15 Apr 2024 14:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aDJdQYJF" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EE617602A; Mon, 15 Apr 2024 14:22:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713190941; cv=none; b=L35fR8gN1BppqV/rRHS6jj2/orHorwau0XBRcELM0JXNHA8hs4KmZgRQIsvmZU3QRHd+gx9JNmDQtCs4tsy09adCQQWL2K+IJgdH4/olCMNA4vcMXTJ3iSkOxgENz7kVwAx9somjfB9tyRRmzJiPwnG8zBzuvONtMe7Giqax29M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713190941; c=relaxed/simple; bh=9Ir3scp8W23/upQsjLBGH5uBSSThzCEeVGhPNF50irY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sReDT4k8E7vXJhX5pSJk7o9+i1zuk4MeBOMvlKt3YuG0mnpEGZMQmxF+8FqUxd4W9zS8nlb6Rby3h3FCABecFBLpGbf01/4PTjmysGiqTG/p+JYbVHn7mDP413vO427DnVd7fAEscGsFgjAxxucLcjfvo/CrGf80EiiHMxomIgM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aDJdQYJF; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-343f62d8124so2806276f8f.2; Mon, 15 Apr 2024 07:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713190937; x=1713795737; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NBenbo5yQKESlQcuptjD7PXvm5EokMPUnv64i7h32sY=; b=aDJdQYJFVOm2mQZxsfgXeVG5MYkL0Ysu2Ry5WT848l0jY+2I2CUa9IyI1v8Z2sxpwe t2S5EUWRPhRn8XzB3xsMO2Pogr/ihOFbFVt5bMfq0ETyjMbMVLPbukUmXloaUTcGQ1NH CnzC2mIRX53ImtrzQmapCDXDlrVUC+z3IAH+8fp888X7CwOzEGDtYBik4hMFIe6DeDgQ mkMZmCNIf+uKAhvyWQMIW8oH9MiyNcF+4kOpS69qc3iBfhQm8bMSSfXL2xz0ORn32TC9 jmgJCoqLslVEeJb2Sa1L9bqIeuHflMCGnYsGH53ALyESLmkrhDZSPrEcfuiNfKJhYkYN jxGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713190937; x=1713795737; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NBenbo5yQKESlQcuptjD7PXvm5EokMPUnv64i7h32sY=; b=FNeEGtkzkIJwNn11zO58ec5wHDWkEbUhPIVLxwqyI0zAiqHtyul2+CnNMXC3frJ+BU l5jOhutQ97X6zXrdaSdfNNpaQAobWLAd6foUmA11k5FMAUJuJQ3l0p8CekjTkZbKuF3m 5jW2w0rd3EaiN+xg2gATuCJFJj6svPR4QlhaddUA5LD2uL34bu06YPfe0bmKUip+Gz0w FLbpKPixUx9dNL8u7AVlpdx6QzxKGFEKnj8infeWY1K0xONpCQ36i3Cy9Dp9yfRPfaTB ciH1DyEMpp73TaIfdfrVYElagSsnDw5VLQFOG0S4dXfBb0i503XRcwprWwU9J4+tzW2S xKXQ== X-Forwarded-Encrypted: i=1; AJvYcCVZxuCHvr20AKT78hwPO1j/JBfvdCMTBlEwq5v+9YDE457bNQwVSeZJycbhIxF09IKuj+VfKQpU0JfsLr0xgDIN3ywjyMm+VbnLRQvGSS0= X-Gm-Message-State: AOJu0YwVzrp8jc3yaByW6NriziPXQEvqD4yO3j2I6zF692RFZw5cTrvy bfrMVYtC2MzW6ZV9dfezwqCFtYG4xE61TZfqq8fi04FcZZVmT3Ll X-Received: by 2002:adf:e610:0:b0:33e:c389:69ff with SMTP id p16-20020adfe610000000b0033ec38969ffmr5612522wrm.68.1713190937035; Mon, 15 Apr 2024 07:22:17 -0700 (PDT) Received: from localhost (cpc1-brnt4-2-0-cust862.4-2.cable.virginm.net. [86.9.131.95]) by smtp.gmail.com with ESMTPSA id k12-20020a5d6d4c000000b00343e392829dsm12185010wri.97.2024.04.15.07.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 07:22:15 -0700 (PDT) Date: Mon, 15 Apr 2024 15:22:15 +0100 From: Stafford Horne To: Sebastian Reichel Cc: LKML , Jonas Bonn , Stefan Kristiansson , AngeloGioacchino Del Regno , Andrew Davis , linux-openrisc@vger.kernel.org Subject: Re: [PATCH] openrisc: Use do_kernel_power_off() Message-ID: References: <20240331070230.2252922-1-shorne@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Apr 14, 2024 at 07:52:03PM +0200, Sebastian Reichel wrote: > Hi, > > On Sun, Mar 31, 2024 at 08:02:28AM +0100, Stafford Horne wrote: > > After commit 14c5678720bd ("power: reset: syscon-poweroff: Use > > devm_register_sys_off_handler(POWER_OFF)") setting up of pm_power_off > > was removed from the driver, this causes OpenRISC platforms using > > syscon-poweroff to no longer shutdown. > > > > The kernel now supports chained power-off handlers. Use > > do_kernel_power_off() that invokes chained power-off handlers. All > > architectures have moved away from using pm_power_off except OpenRISC. > > > > This patch migrates openrisc to use do_kernel_power_off() instead of the > > legacy pm_power_off(). > > > > Fixes: 14c5678720bd ("power: reset: syscon-poweroff: Use devm_register_sys_off_handler(POWER_OFF)") > > Signed-off-by: Stafford Horne > > --- > > Reviewed-by: Sebastian Reichel Hello, Thank you for the review. -Stafford