Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4317505pxt; Wed, 11 Aug 2021 03:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8snxt49aXSERYnA5N7u5FOnE23f4PShUuSI1ZrcGLSEPhu8AC70EPh8NfvT3RcP6vBfj9 X-Received: by 2002:a05:6e02:b4b:: with SMTP id f11mr129909ilu.130.1628677028194; Wed, 11 Aug 2021 03:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628677028; cv=none; d=google.com; s=arc-20160816; b=YtTsj885WZ/yGsSk9mqmoUbDGjcb9tNDq/FZV6+l2BCBjT/rp7EEyQwaleBxpUDuri ukSJ0Xq31jmbv3RhxvY7Sne+s70DcTiX7o89AIhfSGBgf8HsL2jgqTCd5VzkmAnQZTKA q8yNqosnDyUUE1krLZjaN/bOGdRkSqWyu09BNC0B5JDjtpBsy9GmxJCchOt0Iha0JGXA rAXvmkOnRGdwCk3ausruzoDHsziCmB6n1mdqAyGkV9hSJRXMwMBZsWyLEXW0zYbQuZF1 ulYJ1dUoaIyYIG8+G1YrRFoj5rK8k4jgXIv2RFpWea8Cq0zSiyyGXpqIjG0vcVa0CP85 TzBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Rg+nfqNpN4KVS6P5Kg2kgnadiI4aRZsAUMlE7w6kB2k=; b=g2BdP7k56Hv55zbbluTolx116hAKW2WszSzSApP8eCogC0uVEfzghPHcRDuKEGAd3S 3kOWe9yB3iLN38lF5JFPUUnrS4nfcmBMESm6xtXA6RAWhHE61+sWUvrI/brVuUdkZfue rMbIApNgmehhStZazrYQC2u1fyytrE0JS1CIIwMi7M22ZYRvEs1k/dDVfAkNZzXuYFRY ZQvUoSflDt2dDNQohwWIN4yxML2wjSSTRoZgIzw4XD3fZjiO5wk9n966NzknFB7eHg0P vlcXJ16+PHktorNHoXh182yxZUWS/xoDiItvTeykYTBM2CiW4Xn8q6FTKJgGmI1HkVs4 5HVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ac4casP3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id p31si27368356jac.95.2021.08.11.03.16.57; Wed, 11 Aug 2021 03:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ac4casP3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236900AbhHKKPU (ORCPT + 99 others); Wed, 11 Aug 2021 06:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236986AbhHKKPP (ORCPT ); Wed, 11 Aug 2021 06:15:15 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87240C06179E for ; Wed, 11 Aug 2021 03:14:52 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id gz13-20020a17090b0ecdb0290178c0e0ce8bso5517631pjb.1 for ; Wed, 11 Aug 2021 03:14:52 -0700 (PDT) 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=Rg+nfqNpN4KVS6P5Kg2kgnadiI4aRZsAUMlE7w6kB2k=; b=ac4casP3kUB13OsUJQcv38FKO7pVIq50bZ6uPGU1NEdpQ0ASqnp8urXzheGfF4JgZJ F0GBVqBxpnRY7eoErIyp2IabG5QIpaejNKNbwc0aQqxzw6oZgMJeXCdM+On3gP7GcwAm Ze6ZM7NUk6+K3utV/jdB+12kqYzQTqBoRF8pt/wvWMKT0t0AejJqeovqCSNaOQMJbO1L dD5NFrhUjhU22SWOPidIBz2QfpP5F/XNnFPgeAwhtmB5nt6HWk+7H9MN4LVZKKuaHvyE KiuTQa4lU4FT+xPngVH2NJUbPObjZ/HoPrBwxQiQRHH+/uoJ61KSOscQQ3Qen6LcUrLD YtkQ== 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=Rg+nfqNpN4KVS6P5Kg2kgnadiI4aRZsAUMlE7w6kB2k=; b=U4V+FuX3Ts2mBdYamnzMoEuMPul8bxTh64BJ4GGjvItNU26b4dC2wK6VCHY6BeVnOd waL+TSUySLSYmf99/BzlZHkHlILUtAyJ4vDAPBS4rMNvlA2PRY9Je5KmINz+ExyOQNvR 4wBQFbOwzv8w22v17bRXpI9hEedmaEMPAwpMaRhqIMy1dRpAZf8yqsHVoLrF4S+RV8sn S1tJWHhh/cCPox3+8jhrupOPicuxEPeDFaiR/eBR8ksjGsr0UE2lLjzo5VuocAqLwqVK vZvQJgBpuJqpAUXXxYsPCdWaotLSQ7n+8QuqN0RjRGs0T/mWapTXREyv/0mu33i8wp2b yzUg== X-Gm-Message-State: AOAM531xEKnmceS0Yq8lb1iP9QMRks/HDW1p/ef5biQPwolFI9QBYXUC S8Uc+OXerUb33eCuWNe3+GCVWQ== X-Received: by 2002:aa7:9f5b:0:b029:3be:2a1f:ca58 with SMTP id h27-20020aa79f5b0000b02903be2a1fca58mr27592438pfr.46.1628676892055; Wed, 11 Aug 2021 03:14:52 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id j25sm27085750pfe.198.2021.08.11.03.14.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 03:14:51 -0700 (PDT) Date: Wed, 11 Aug 2021 15:44:49 +0530 From: Viresh Kumar To: Quentin Perret Cc: Rafael Wysocki , Vincent Donnefort , lukasz.luba@arm.com, Andy Gross , Bjorn Andersson , Cristian Marussi , Fabio Estevam , Kevin Hilman , Matthias Brugger , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Sudeep Holla , linux-pm@vger.kernel.org, Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-omap@vger.kernel.org Subject: Re: [PATCH 0/8] cpufreq: Auto-register with energy model Message-ID: <20210811101449.c2533ediwboeplqj@vireshk-i7> References: <20210811051859.ihjzhvrnuct2knvy@vireshk-i7> <20210811053406.jqwextgtnxhgsjd2@vireshk-i7> <20210811095311.e6wnma2ubkqdtuic@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11-08-21, 11:12, Quentin Perret wrote: > I think using the ready() callback can work just fine as long as we > document clearly it is important to register the EM from there and not > anywhere else. The dedicated em_register() callback makes that a bit > clearer and should avoid a bit of boilerplate in the driver, but it's > not a big deal really, so I'm happy either way ;) Yeah, I think just the same. It is better to have register_em as a separate call. I was just wondering if it is the right choice :) Anyway, I think ready() will get removed pretty soon, so register_em() will work well. I will redo this series and send it. -- viresh