Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp424273lqp; Mon, 10 Jun 2024 08:10:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXE/PxSWPu3bO8ot2dHpNgKS80334wRa3uk0vQd4gBsLx6yoc0Zzkd5kpOfAMfb93l+n0Rme0HY1U8LI3YfbmRDgdZVMx7sFExfvFb3A== X-Google-Smtp-Source: AGHT+IE9vpkFLO5PASO2JSFrP2aqcxUFYbGaf802mM3YGGWl2tszkW1wWrepW/6pMZ5vvouY4qEK X-Received: by 2002:a05:6808:2223:b0:3d2:19da:9542 with SMTP id 5614622812f47-3d219da9656mr9608094b6e.25.1718032242461; Mon, 10 Jun 2024 08:10:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718032242; cv=pass; d=google.com; s=arc-20160816; b=UviGjDm1TwUERiGAWkoZYi0W7I76Bh0i6MJoyZqY2csROLmNEVvYQapaPNenN1KAFg 44JgbaEVccpJHvyZW57s9KVKdpOOul2eLizY8seosLTlYty4Szjj0OCuRDIEH14HgkaO ry0Rh3iH8mCjim8pYKLc8r6vEE4scXTYp5bJJ8Jzy8pFdA2cm0bf0WHmIZ/K8beuE+g4 d5b9FXOD6pBCkJcYMAoKFfqDkarXTF8e1if1rS11nrOX0IJQkkU9PoAi9JRcNK8lU6d/ zB53p7/Zh3/VzE+QVoDRm0bssJlXf2MhGZsBpdiR6q1u7UXw/ai9eJxT3o1MvEVXULv2 Erdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=ROe3168jrzaxlsMXeoAQ1uTFn75oAA9jhlnguf6WA+U=; fh=FhWlILZL2rE48JbrqKNLWTP4T1M6Gmt4qu8+yCyCJCY=; b=1GgjNuMgFq8Sqp+0HJ8PXQX23qB6Y6p3G+uscrwduNLJJ4hQFffhcEOjEiYVBpJMc8 Tgi9ZpDnaijIgi+ApX3hpNgaeNm2ccB9n986vI5kdSslFpTm8I9fqO9PeDPbUaZtBw7f oJcVAcrkVYe+Dw1n+bgUeA06uwincxvc4+yYO1zTUJJAYLUXa8FQy50dtBBQuObJBtjr RcLuq4vM99iVc9aN2d8HfcTvcRO4ofLF9YrnrrONMAMJrnTczr/H2ZD5sJKD7UpFB8yz pcMB0luVe/xdz0P1itunXIsGUT1Dtu9xXAC0+dr+A+fQuZTwbwbxZrfwdP2ufPWkk7U4 UdAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-208425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ada2fe7eead31-48c1a0f626dsi2390894137.125.2024.06.10.08.10.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 08:10:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-208425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 29A6E1C22D4C for ; Mon, 10 Jun 2024 15:10:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87D81137C35; Mon, 10 Jun 2024 15:10:39 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B697475811 for ; Mon, 10 Jun 2024 15:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718032239; cv=none; b=jRXaFa+umS5cufUZ8pKup+oitUGvDTpeGYYzrPZgLjf2tIi85g0DgUbmzEzNRvy2+AB1j1WiDgFklknu02DE75XiRjCSh0bLFG6JikEq5aIOjpUU6X/V03MdO5u/hV0Fzw/QM4Lmidd9RU0h18pK/7E2QKPCxIKauPcH6O+3YOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718032239; c=relaxed/simple; bh=5r4ukgqEF1qj0bHPwSmTT8cznWocsdmxS7eFwAXP+T8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NQt5zl2uke2+i7n3krmb+cTcttPfhixeTNmTJbFay/svPfztyIFqekjcN7QjPX6gEcK0AGeICrLty3TX1ffy9eG49mTG7e6ZWAAiET9NlJmW5a/i+YbemxWdzpShd5hKVkMgRJXrYPyzjQIN4RTxbgcMYMSBxx9l6WJ87Of79n0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6D42911FB; Mon, 10 Jun 2024 08:11:00 -0700 (PDT) Received: from [10.1.37.54] (e110479.arm.com [10.1.37.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A67E23F64C; Mon, 10 Jun 2024 08:10:32 -0700 (PDT) Message-ID: <4f45d823-6ba3-4707-99eb-f8aa60c6b96b@arm.com> Date: Mon, 10 Jun 2024 16:10:05 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] ARM: highbank: Switch to new sys-off handler API To: Andrew Davis , Russell King , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Daniel Mack , Haojian Zhuang , Robert Jarzmik Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev References: <20240610125924.86003-1-afd@ti.com> Content-Language: en-US From: Andre Przywara In-Reply-To: <20240610125924.86003-1-afd@ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 10/06/2024 13:59, Andrew Davis wrote: > Kernel now supports chained power-off handlers. Use > register_platform_power_off() that registers a platform level power-off > handler. Legacy pm_power_off() will be removed once all drivers and archs > are converted to the new sys-off API. > > Signed-off-by: Andrew Davis Reviewed-by: Andre Przywara Thanks, Andre > --- > arch/arm/mach-highbank/highbank.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c > index 5d4f977ac7d2a..47335c7dadf8d 100644 > --- a/arch/arm/mach-highbank/highbank.c > +++ b/arch/arm/mach-highbank/highbank.c > @@ -143,7 +143,7 @@ static void __init highbank_init(void) > sregs_base = of_iomap(np, 0); > WARN_ON(!sregs_base); > > - pm_power_off = highbank_power_off; > + register_platform_power_off(highbank_power_off); > highbank_pm_init(); > > bus_register_notifier(&platform_bus_type, &highbank_platform_nb);