Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4460897ybp; Mon, 14 Oct 2019 05:08:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWAnBCE5/5X/kQDybNx7iokBioEsTEAMLNiDXawckBd2nIL9m4K/7+wqetHius0mAy9ncb X-Received: by 2002:a05:6402:160f:: with SMTP id f15mr27762492edv.142.1571054925781; Mon, 14 Oct 2019 05:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571054925; cv=none; d=google.com; s=arc-20160816; b=RXibAqcJOD3sf8/TlUDpYsrDVTZXH6ErnnercNiZ9VgtH+NCEui/TYzJyBLHWjZpuA aD/4cgECj/9Nygb5+6n8t0rFcZKNTrMxI7MWfdJj7pFxk77BAfbvrdK2kyJqYiIREqca vrYMOO58RGbXA416CF9JSgpGj97gnTtk8c0dsSQXLBMFykxcrx+B5c1NNRV6Br9kpXym qfZY01+SJgpmyXsi49vE5AsI/2Xg3m488uRSrPTh9j1SQT5cgdq2h42U+fJUI28gswuV tPH26r7ipJsBL9z+xCX9qTd7Na5rQNYcsC5NY0vDQeA3gl0sSnoxUqIRXXIxcKoZBKlv N4pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=fGSDKEgEW7BTtJ6OBIYcChc1m09kq3Pb++u8DDpss1k=; b=cD/qlgpOLhllPgQ6n7t/7pJi/SM9eUbmnC7Jz3PwIgoNzdGVDmagsRylk29Rsn24gW MgYAwFQo0UQVdwZZNGO+gqjMJcnYNunBV0hP1gxts98SHw98d9PH8ZpFIvRZnFvMLllk f3IWJZSKaQi7uaIDqFme+Z4fW/AJnfPlaGZw+RIKgy8hwtfqo4g25R0eO4cCVDIjnwnC XtLT1wHC9ysIjtupiKJyXJBqmxulwyX7v+PlkGD+jKQmQxIJhpI9Ryi32xg483qt8Lfj MfxYci1jAB6MZUe4WJqetsmYZfDckC3yrFwoe3yNd0o090J8k2AsI3VN3J7Kg7rVm7ux 70QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=FUMbx870; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a24si10708512ejg.127.2019.10.14.05.08.22; Mon, 14 Oct 2019 05:08:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=FUMbx870; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731086AbfJNMHu (ORCPT + 99 others); Mon, 14 Oct 2019 08:07:50 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:54070 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730300AbfJNMHu (ORCPT ); Mon, 14 Oct 2019 08:07:50 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id D3D205C2968; Mon, 14 Oct 2019 14:07:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1571054868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fGSDKEgEW7BTtJ6OBIYcChc1m09kq3Pb++u8DDpss1k=; b=FUMbx870896ZdZPxjyq4W7LVBAjDqlqc5ejZBSky0FJ48m9JvSo2ZoIc1Q7KVs5Ixaf/p1 L43fFVxgJllKRRQHCuas0Gl19yjPNzoMH/BblCVWfQUDuvKGmjq1UckXJ/GAXuMheVz9/c Ka7loV0ooM25DqLB7MgSwaz1fJwu1vs= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Mon, 14 Oct 2019 14:07:48 +0200 From: Stefan Agner To: Sudeep Holla Cc: mark.rutland@arm.com, lorenzo.pieralisi@arm.com, Stefan Agner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] drivers: firmware: psci: use kernel restart handler functionality In-Reply-To: <20191014100756.GA4028@bogus> References: <20191012214735.1127009-1-stefan@agner.ch> <20191014100756.GA4028@bogus> Message-ID: <312b244bfacca2f2b3f9b7d7e9462464@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sudeep, On 2019-10-14 12:07, Sudeep Holla wrote: > On Sat, Oct 12, 2019 at 11:47:35PM +0200, Stefan Agner wrote: >> From: Stefan Agner >> >> Use the kernels restart handler to register the PSCI system reset >> capability. The restart handler use notifier chains along with >> priorities. This allows to use restart handlers with higher priority >> (in case available) while still supporting PSCI. >> >> Since the ARM handler had priority over the kernels restart handler >> before this patch, use a slightly elevated priority of 160 to make >> sure PSCI is used before most of the other handlers are called. >> > > There's an attempt(rather pull request[1]) to consolidate these into new > system power/restart handler. Oh thanks for the pointer! Interesting timing :-) -- Stefan > > -- > Regards, > Sudeep > > [1] > https://lore.kernel.org/linux-arm-kernel/20191002131228.4085560-1-thierry.reding@gmail.com