Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3623062pxb; Mon, 25 Jan 2021 23:47:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6y32ApK1O7YRbp0Ax30OzsfANP07swH35BUjLz4SJ3EpG2QdJx7B7pSuU7aY2RztFde63 X-Received: by 2002:a17:906:1b0d:: with SMTP id o13mr2797981ejg.232.1611647279373; Mon, 25 Jan 2021 23:47:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611647279; cv=none; d=google.com; s=arc-20160816; b=dlPiIiYOvkQeug6n/tWEXJEu9G33DuuuBqqHBxK9z0C+lxW9Gap1Nl4gytO3jHconG FGYDLjE0a4kpMFTtH0wGr26RXVSJCPM+Ms0Xt8dDb7/UdHO+FrjZckbl15OF5fLdaIDs AOoiU9t4RhTg9bU4kHRVIXr9DQsoO46eN2QXBRtMgsjwOzK/zR5/W60961e9QeKsPZSX TYFrl5/7Hi++sOyF1PpAmRWuwU3e55/IO3QV5OQ1hGTI+5+M5zPuAsLkxtY8AWlUfcj2 LxwpUbSInIWVRG1h56nyQPUagkoSl7AcVNm4O7mZrxWcIegKwhicKelnmqQxjxow8wee h5MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=JOoMcr6gXPOH11DZhT/CQoFTEMtxIzC/wwQvt5fOQcU=; b=BYVn6QDbe6l1AB0uSsvpNGOe9tSmWBjnz6QpcXILcFBdhI1NzNo9N42jDvOs10HbtS 4Eye3HhwzyY9rbWmtMhQbrUNsyQBrMm3gvyuXryT9YP6cDJloHN0a6wRa64CXczS5ZnI cVckk8Tw6cwuVkNLTxihOkd3/ebZPww+HHp7hP0tuTwrEUsxjPjVqzb2JsSkt/NhzZDT OtPpF1qtOJNLuwXr2ES7tUVEteXJtaoKW/AA+TQarhZD/Z/qyKnwAyA00KHDGQgsdnvi l5cHYPwX/uKd7VYCDeRlrOnI5lrvZyX6Ha9PN5veslnA4rAyCF6+fKXrjkAFcyVF7Uz5 jkvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s9ZsLNOM; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si5370561edw.344.2021.01.25.23.47.34; Mon, 25 Jan 2021 23:47:59 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=s9ZsLNOM; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730383AbhAZHlI (ORCPT + 99 others); Tue, 26 Jan 2021 02:41:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728948AbhAYQB1 (ORCPT ); Mon, 25 Jan 2021 11:01:27 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E49CAC06174A; Mon, 25 Jan 2021 08:00:46 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id l12so13361965ljc.3; Mon, 25 Jan 2021 08:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JOoMcr6gXPOH11DZhT/CQoFTEMtxIzC/wwQvt5fOQcU=; b=s9ZsLNOMX3/ADc0QvUSgm9Yg1DqXKjdKMs4QAHCWpedsj9oiNKbnVgFXUsLEZ7bCN6 PuK1JwHj/WUsJsEg8X6qiQw/0rB34XxNv74C+j7C9sVEYA0f1B3WiPGgvhoeZA+VtHdE y4bS90Sd/n/Wry31xnp0HN+INJtB7ARvtoP/ECQru3/eADWj2Y7N6ib55ByZ/ugmMvah MrUZhywSbV15i+xANr0NFQptn7RtEugQtZVCbY8HcHjCHAuD4SoFNJklB24Y1jBI8BkT ViLeIB5gGBJFTnE+o6fsMFlc651CMnaaJ6p9jEdQwUyxy0vudynIIYYJIiv7KNBrKlVP 9avQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JOoMcr6gXPOH11DZhT/CQoFTEMtxIzC/wwQvt5fOQcU=; b=NqhywZt3sjk79lUEiFTpgza4vQX5Y5PL0v6bRP6NN4SaieKcJ8fPmg46gu3u4zcBAO eKJlH+lwa6tHGFeuDB/CaiyngHh9DaZlcgKh/29L6YotWZ/d4fOKU1TCr0or1IIuSjQm v2UA/KPtJSvC2fpI3PLRrHM3WGNiZhoC09DgDgM6xYt00CHxqfL2Qj8mb32Gg2qb+Scd 5tFhDi35LK740nWr0qCcKXSc2IvE5HRZ+VPI7vzTsiHHlSym6Au5bNu6HEbfbt9dFeyq ZBaQW/42n+jJ8oHfCPn2J9yo/SU0obuIgK0gbVwj95vkgqvZRZGgqZUfWPHOT43yjqqj 2muw== X-Gm-Message-State: AOAM532G6JsF2PqtuLLBEhVd5ZSNqh3Hl5xUMkQcaHsK1x7IcgwrMFZm 6zvSWRXdAbI5jw7wT/uRwEj/VGAKfvw= X-Received: by 2002:a2e:9bce:: with SMTP id w14mr510036ljj.120.1611590444956; Mon, 25 Jan 2021 08:00:44 -0800 (PST) Received: from [192.168.2.145] (109-252-192-57.dynamic.spd-mgts.ru. [109.252.192.57]) by smtp.googlemail.com with ESMTPSA id r21sm831903ljk.1.2021.01.25.08.00.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jan 2021 08:00:44 -0800 (PST) Subject: Re: [PATCH 11/13] devfreq: tegra30: Migrate to dev_pm_opp_set_opp() To: Viresh Kumar Cc: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Thierry Reding , Jonathan Hunter , linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , Stephen Boyd , Nishanth Menon , Sibi Sankar , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org References: <3345fd49f7987d022f4f61edb6c44f230f7354c4.1611227342.git.viresh.kumar@linaro.org> <71451eb2-46b2-1ea0-efcc-0811568159a4@gmail.com> <20210122062659.qss3hef4kltfgciu@vireshk-i7> <20210125031402.aqiwhlsozvakehxd@vireshk-i7> From: Dmitry Osipenko Message-ID: <05eee5d4-9c89-e3fd-a716-efd44191231a@gmail.com> Date: Mon, 25 Jan 2021 19:00:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.2 MIME-Version: 1.0 In-Reply-To: <20210125031402.aqiwhlsozvakehxd@vireshk-i7> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 25.01.2021 06:14, Viresh Kumar пишет: > On 22-01-21, 18:28, Dmitry Osipenko wrote: >> Either way will work, but maybe keeping the dev_pm_opp_set_bw() is a bit >> more straightforward variant for now since it will avoid the code's >> changes and it's probably a bit more obvious variant for the OPP users. > > The problem is it creates unnecessary paths which we need to support. For > example, in case of bandwidth itself we may want to update regulator/pm > domain/required OPPs and this should all be done for everyone. I really do not > want to keep separate paths for such stuff, it makes it hard to maintain.. > Maybe we could add dev_pm_opp_of_add_table_without_clock(), at least that should be a bit nicer from a drivers perspective than having to care about dev_pm_opp_clear_clk(), IMO.