Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1730959imj; Fri, 8 Feb 2019 06:29:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IatLfNkNkMiFU/YasuHNWbUlbjZaDF2dWRr9sDHvehheusUJrQG8Z4X9nxiIF1T3cBF6bWZ X-Received: by 2002:a63:e156:: with SMTP id h22mr20744342pgk.255.1549636159385; Fri, 08 Feb 2019 06:29:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549636159; cv=none; d=google.com; s=arc-20160816; b=pcevkpbD+ht5LP4rOdLmEGpdsT32j40HsxaAcPklJfc6opKzWsU/SRoN5vc9gfSvE7 Bs2k1DDGl8emkmhPZSsy/l2EyPinKx8RAPyfYY948qUiNnSBLv/XE69jibgD2M45KdHi BVhiuu6qHZkZR7DArX9jmGMKM+G4S9zGVZHVWjIdjQK6T2R6JeqpINwN3Ih0hI6azWUT aUHi0N3bIVgDkHjaaWWQiWoUwDPXixi74L9g1h2ZYU6DMBICjL/tymO7ONeTuSavPIyX 4P122TVcJ+XQGHu+pmzOlxeqgUdAaUfoMgB6e8EeD8lvcGWBmih9zTJmrElGAGn3ZI6u h9Ew== 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=5qM8b8qmiKuyv6NYuVoF4/dz//Zu16tigYkj9qpIJyw=; b=boasQ28JJVUQ4pAxdSMkHU3/cyNqQYqiz2ww+cVZ0b/MNKOBUeBWECvjeDuLwOuMhK SIg0XyUj8xjJGmd02d+dqs4XJLGSCfcnk+k8ghkKIfohYgoX7OwgAP3wXx00tUPHHY6B bSn5gRwSsnU1awvZBAFrW5BCwOtUPGK6oj0gD2PSHNZUVv0PLxaJF5eKiiqOJMHV6MT+ mgLk67+saE9mpL1lN9byi0fzHJMmNGYMENvkl+YgEfqYHCEXHxYrSs7UhX4dw76JN8i1 cNdGC5jdaN3vV+aLI6dSefOVNg073KAPH0tV1tTT59e9DlkAUmQsmq52X+5P/ne5CQz7 vUeg== 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 64si950511pld.436.2019.02.08.06.29.03; Fri, 08 Feb 2019 06:29:19 -0800 (PST) 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 S1727625AbfBHO2W (ORCPT + 99 others); Fri, 8 Feb 2019 09:28:22 -0500 Received: from foss.arm.com ([217.140.101.70]:52202 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726887AbfBHO2W (ORCPT ); Fri, 8 Feb 2019 09:28:22 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9F981A78; Fri, 8 Feb 2019 06:28:21 -0800 (PST) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8A6193F557; Fri, 8 Feb 2019 06:28:19 -0800 (PST) Date: Fri, 8 Feb 2019 14:28:12 +0000 From: Sudeep Holla To: "Rafael J. Wysocki" Cc: Viresh Kumar , Marek Szyprowski , Linux Kernel Mailing List , Linux PM , Linux Samsung SoC , "Rafael J . Wysocki" , Nishanth Menon , Stephen Boyd , Bartlomiej Zolnierkiewicz , Dave Gerlach , Wolfram Sang Subject: Re: [PATCH 0/2] cpufreq/opp: rework regulator initialization Message-ID: <20190208142812.GA22401@e107155-lin> References: <20190207122227.19873-1-m.szyprowski@samsung.com> <20190208064957.zhyue42kpgaoslwm@vireshk-i7> <20190208103133.ysvaroyniuc3k4i5@vireshk-i7> <20190208113904.GB7913@e107155-lin> <20190208120949.GB13043@e107155-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Feb 08, 2019 at 01:23:37PM +0100, Rafael J. Wysocki wrote: > On Fri, Feb 8, 2019 at 1:09 PM Sudeep Holla wrote: > > [...] > > Yes, in that case additional logic in the driver also needed. I am fine > > if we enforce driver to deal with this issue, but was thinking if we can > > make it generic. Also I was just trying to avoid adding _suspend/resume > > to driver just to avoid this issue. > > I was wondering if cpufreq_offline()/online() could be invoked from > cpufreq_suspend()/resume() for the nonboot CPUs - if the driver needs > it (there could be a driver flag to indicate that). > > If they are made exit immediately when cpufreq_suspended is set (and > the requisite driver flag is set too), that might work AFAICS. Yes that sounds feasible. It should be fine to assume it's safe to call cpufreq_online on a CPU even for CPU that might have failed to come online or didn't reached a state in CPUHP from where CPUFreq callback is executed or am I missing something ? -- Regards, Sudeep