Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1498753imj; Fri, 8 Feb 2019 02:29:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IajNhZObkZtRlkCoAbsARhzDIeUQCTsMMAtX5/MK3rUT6mwXGT0xXkhIjK9et60owuo5rzf X-Received: by 2002:a63:2643:: with SMTP id m64mr19230798pgm.35.1549621751734; Fri, 08 Feb 2019 02:29:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549621751; cv=none; d=google.com; s=arc-20160816; b=fGPLYN+MAKhhVCTht15CfeiL+0mzbcOQNm6ohMyx9zAOuizrV4JgqQFn980aTvMIqX VvOZvExHrgwE2sKH+chihJR7LtM2FK8/NsvAxU5lzVUqgjRlXyCqp9uwznQf1MO/rZmq d+hxYQfVMpq0YgirX29yUFgfGJ+DYwhDAupvXo4ZVYw2dpTIsPG9TGHy3an4LLxt8pGW 2k1st6jx1M7a1axK1cephNbCA/yn/VbohZZSJyYF14pltXH+ZEnYvmAlV2iqcFqUvbK8 2/TIM9hutlVu5HjTnga63vNNi8W2byl9rhsZFFkb2xppF4IMoQlxSMtRFWJEyXa6RtjP 5g+w== 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:dkim-signature; bh=p09V2S7OIkLdfFhBGIwLYYlq78eyifsffg80M3hgwMI=; b=GmpcIrXdZYZTkpzgvCP3/GF21HdvLTnekS33Y/YdSkASLqL27x9GO/pdIoVuwvWi5O dkqD2a57cL9qVJq+vrbkx31TZqJJu+fzj+1AEIHaAeouZ9w5GNPQ51VhGNm6UoMbJI+a JE/WkpGpCRublFYEpxdoh4FC3DOKWPaoIl+WB8ZvhcpTdJKEvx7qgxUANla77Rs8cajb ieroo3sRMuf+6QgvnnubrjKVdmGnxol6vIjfhHRoS+qhDaj46EI423TkAcLB8E79grFf DVuxZ3NUaSGOjMoAaawZn8rLKIswPdrP91UaykUsY3VQ7DqFPLC1pgAveO4CfeIR6NNt h3ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=leb6vN76; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l15si1586751pff.206.2019.02.08.02.28.55; Fri, 08 Feb 2019 02:29:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b=leb6vN76; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbfBHK2k (ORCPT + 99 others); Fri, 8 Feb 2019 05:28:40 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45739 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbfBHK2j (ORCPT ); Fri, 8 Feb 2019 05:28:39 -0500 Received: by mail-pg1-f195.google.com with SMTP id y4so1382569pgc.12 for ; Fri, 08 Feb 2019 02:28:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=p09V2S7OIkLdfFhBGIwLYYlq78eyifsffg80M3hgwMI=; b=leb6vN76XpLeqXQ3yRHsrF71nkJSOivPC6ccTD/CMMhJpcV7hIY7XzAw/xrv9d8ugY Yy/ajOyHBSytwE/Awnu7RG5xq+UsB1id0ReKXAZx5CfygdWl6P9ZJDtW3jWQv1VB8elC d7MS6ZyIuYrrTbzREAjrHn3EDPTpmAY9lP8p7HywYB7J7gNAAaGgAu98eIlP5m88XUMg beuZ6jFtD2guvll/Froal3A8o57VXxZzVm9WAyNFvpUlk59PF6+4uCuTbtFMEoRHjrWb 0ZJwfXSu8AemThRBSB+FT6vXM0FatFtM0qmOPdXUANx+JIXspgNeXq1zg+7P62RwAH75 PXyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=p09V2S7OIkLdfFhBGIwLYYlq78eyifsffg80M3hgwMI=; b=oF//npPPwxG3Z0t5lVoqtkTcjSVAua/NzxT1eb6CzwTO7kmH+V1vh0XW0yQN0YggNZ /tr7GuoYzn9yOAFPyI21aw6GZ92fCUfSyAzeXvZfaxqWqzu+JspYgBfAiQis/1Dks7RY rYwPKlwCWTcHskXxmd6AdkXvG1sk/U+ka9ajqZUqBK5/V/urgcs8CKM2sxFAbOitIlz+ Qq2witP2asiZ2bfOBQRY8kvzssWKhfmVkFc1ZdA/I8wm5YC/2r8i8Q8pJrh1Bv6q4YI1 I8kqsWwB+K2cxnJXuheNh1JrePX69x8oLcoklcUf3RlotuTJsR6qJhzuMMdJMNv49S5l c9+A== X-Gm-Message-State: AHQUAua41W5YZY8jJ9vHuVG01RL4PicTf+U3SuOuk/v1DAEw+VeqeYJu l2hQpS2czx+n5klfi4WJYC214w== X-Received: by 2002:a63:b34f:: with SMTP id x15mr9565633pgt.243.1549621718574; Fri, 08 Feb 2019 02:28:38 -0800 (PST) Received: from localhost ([122.172.102.63]) by smtp.gmail.com with ESMTPSA id l87sm956010pfj.35.2019.02.08.02.28.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 02:28:37 -0800 (PST) Date: Fri, 8 Feb 2019 15:58:35 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: 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: <20190208102835.fjxyeyp3kkdwar5d@vireshk-i7> References: <20190207122227.19873-1-m.szyprowski@samsung.com> <20190208064957.zhyue42kpgaoslwm@vireshk-i7> <20190208085544.vqkebcgg7jpbv2a6@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08-02-19, 11:18, Rafael J. Wysocki wrote: > Obviously, all I2C transfers need to take place either before > suspending the I2C controller or after resuming it. Right. But all I am saying is that it is the responsibility of the cpufreq core/driver to make sure we call ->init() only when the resources are available to be used. For example during driver load, we defer probe if resources aren't available and that makes sure ->init() gets called when we can actually change the frequency. Shouldn't the same be true during resume? That is make sure all resources are in place before ->init() gets called ? -- viresh