Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1527837imj; Fri, 8 Feb 2019 03:03:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IYThJY0LSuYH7zQVOjc/Ei52Pav4dVQh+Z4jtnISbXt893EwMPdBDvZdt0Hmn1oiyi/1YaJ X-Received: by 2002:a17:902:9a84:: with SMTP id w4mr13237204plp.283.1549623814263; Fri, 08 Feb 2019 03:03:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549623814; cv=none; d=google.com; s=arc-20160816; b=cGnNlK5bV01XsSlF4Nzc0v7fqcv+TSasPH5yKTbfYgUbGIDWCoScaSaCaLoUB8hLb1 JFfvYNwHRUZCP/XboehL4xbVu967SFcse1fVVla5RExa0Y7Nz2783zVPNtoESjvOh8KX iFMBSHUOqZC//xc0AzYPr6d3stHGbnl7drOguWu+Z8i10I65C+/keZDv/SwSPGHEbMET kJBJ7wHlyjvI2u0k8glY2A8NwZ10sqnz3TYzhbmctxZ+I+/n3bDUycZ8ru/3K9tW3kL4 ypZJ6JJQgL7M8KBT9spj6Ley2QNRvJwgBIk05ZHebba2XCr2frtISV6Jm6+I/Ch0h/tS K1Rw== 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=41NdumSK2qmAWU35w5Vug3Txe4Gkzsc9fDNO72OSX0c=; b=dsF/EEfAS/jKStXrrtbrh8XHmtgEFMGVKMQYnEaWY9xTmMTbWIAQtwdsQN4lM2GwPS ZT2rpemi1pES4xhrsiR4PKH4yIeUP4eBcQX+Mt5xmZ/CXx9jl0EMYi6tthWgVQIORlZ+ 2o04N8c6O44VUxyWdf0eMvlCSbWNWSffFHFPcTJyj/RrfSY0fmiHmX+j3SWE9kmDqMLL n982Myjw8cRvBuxFq5jRKCBSZKFQpfqoP9MszqYlDVMDTCCXBoiKlxJ31EftveB/B0ng bALInuk62TGjVTRa+1CZ9JAbp+cT5Jldmmw/5TtnT3mYAIBy8oGedFboIZIvk8eTi4oZ Ow+Q== 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 r3si1735267pgh.392.2019.02.08.03.03.17; Fri, 08 Feb 2019 03:03:34 -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 S1727764AbfBHLBG (ORCPT + 99 others); Fri, 8 Feb 2019 06:01:06 -0500 Received: from foss.arm.com ([217.140.101.70]:48482 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbfBHLBF (ORCPT ); Fri, 8 Feb 2019 06:01:05 -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 1E8A4A78; Fri, 8 Feb 2019 03:01:05 -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 2E7063F557; Fri, 8 Feb 2019 03:01:03 -0800 (PST) Date: Fri, 8 Feb 2019 11:00:53 +0000 From: Sudeep Holla To: Marek Szyprowski Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Viresh Kumar , "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: <20190208110053.GA7913@e107155-lin> References: <20190207122227.19873-1-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190207122227.19873-1-m.szyprowski@samsung.com> 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 Thu, Feb 07, 2019 at 01:22:25PM +0100, Marek Szyprowski wrote: > Dear All, > > This is a scenario that triggers the above issue: > [...] > 1. system disables non-boot cpu's at the end of system suspend procedure, > 2. this in turn deinitializes cpufreq drivers for the disabled cpus, > 3. early in the system resume procedure all cpus are got back to online > state, > 4. this in turn causes cpufreq to be initialized for the newly onlined > cpus, > 5. cpufreq-dt acquires all its resources (clocks, regulators) during > ->init() callback, This is strictly not just restricted to cpufreq-dt, but to any driver supporting multiple policies. So we need a generic fix not just cpufreq-dt specific. -- Regards, Sudeep