Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4342535ybp; Mon, 14 Oct 2019 03:10:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuIuuAVvXi2ZzXfm7eU5IJMNWSxnFHy1rSBY0tF4UI9bITfI6b9BMJbHU7WEBeWUxCfejy X-Received: by 2002:a17:906:6a54:: with SMTP id n20mr27993045ejs.30.1571047800098; Mon, 14 Oct 2019 03:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571047800; cv=none; d=google.com; s=arc-20160816; b=EeuZt4AJ7FEmhhoOoteuuGBwWTmzOt7TgiUmdJGFJSCP4prOHi/Sc4nhoufNXCug8E pZl9cXSx1ekqqMojH33exiG30yNymU6Oy9bynTedk7G+nla5OJnxArf0m3UJZ/ozUETc c1jtL6PFJ4Cx63kDeovCSPlRBJmNuBiqJ5+FkHPMR4A3pkpccAcQVS6dO6y2Apvjq4a7 BtRYGTi+Lj3X1OHzR0YdqNaBRZONphymeudcJER4vdkQj1BFIk9NK2TY/jC2XVdu5Ft0 fsysfEefQlWrBVwvWPHptpYK+GIMlRKc5y+JCcOpV3LCnla1Mzj1M4DSAxrpJIFoWrYf s9oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ovLKCSjTDv9mMeP6eXzJISopgevjcsJ/SpW6e5BufuU=; b=iLsjBK8hFy4R+DlfovAfXsGs/Pm95qK9JGTS+TQ6/3BH0gYAWkbj1GDsv09Bfgy7tt y+axRkU/ZruQpk3xKawWlMk9ZSCP7Q3J8JpKtwqWPcqnlTyGk/xcecO8pKeDYpEb2c8M e4QplNUI7Eqv3iayfKtXZ+QgsQJVL7ysFjA2jY5tG6d2KLDl6urhF0G0V2KEAAvPp2Cw a2+OxUonlSloxBOtgx0ob/xhyL0lRae4+8PXV6KFtum2qBLd5styrARS41/opNaqf49C LlRtIGIZD9R+wDRd1NLaQIlYX3LXQt1yG5I9yJkbiTU9L/J1ZXyw0N7qkhUbLNoYTI3Y /3vw== ARC-Authentication-Results: i=1; mx.google.com; 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 h12si10191165ejj.40.2019.10.14.03.09.36; Mon, 14 Oct 2019 03:10:00 -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; 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 S1731349AbfJNKIj (ORCPT + 99 others); Mon, 14 Oct 2019 06:08:39 -0400 Received: from foss.arm.com ([217.140.110.172]:39444 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730880AbfJNKIj (ORCPT ); Mon, 14 Oct 2019 06:08:39 -0400 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 E4AF3337; Mon, 14 Oct 2019 03:08:38 -0700 (PDT) Received: from bogus (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DDAAC3F718; Mon, 14 Oct 2019 03:08:37 -0700 (PDT) Date: Mon, 14 Oct 2019 11:07:56 +0100 From: Sudeep Holla To: Stefan Agner Cc: mark.rutland@arm.com, lorenzo.pieralisi@arm.com, Stefan Agner , Sudeep Holla , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] drivers: firmware: psci: use kernel restart handler functionality Message-ID: <20191014100756.GA4028@bogus> References: <20191012214735.1127009-1-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191012214735.1127009-1-stefan@agner.ch> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Regards, Sudeep [1] https://lore.kernel.org/linux-arm-kernel/20191002131228.4085560-1-thierry.reding@gmail.com