Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp369742iog; Thu, 30 Jun 2022 02:26:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vKtSt+KyXsoPJuMLI8IuBOyxR9TGYnzhutWEMqSyX5RGE0OSst9XgszEtlpYfpe/Suizu3 X-Received: by 2002:a63:2b8c:0:b0:411:954c:1f1f with SMTP id r134-20020a632b8c000000b00411954c1f1fmr4165902pgr.548.1656581166701; Thu, 30 Jun 2022 02:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656581166; cv=none; d=google.com; s=arc-20160816; b=Xzki81CTlkMSafpIvPZmN/pJt7jX0T9e5SE+NPm1jCkBJei1RmC56BRjoMQkb6rS4b MJiGCMeWi4+nC36K1JildWrPHm7WhTDzrhcCaM51Z0EBsvgdUEl936rCiyUJT11yHDNx jDgOIPXcfSWopa7oVtGREsa/lMPOGaDYIZKOjk83Et5gH9m28MRjc+5k4EtNesAieNFU ZECe8s0X2qTZqTZVd6NPUkk7vknuWj+IF2A+QviLaWtOh9uCASY91uOzLi8qFbSfrQum jy3Ur0BW2rQfXMmNaA86Asdj+TvVz37AmFCIrfOB2e+kFz3i4Y5JwmRhsRylkNoxBlJd Dd0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RuzPecmK8lwJMTVULYofbK2iZPvsauIveMAadeADOMo=; b=aJYzejLo1MY+UvBSPTn84WFXXZ3FVfB6JIq1bFHHn0KebSar8qJ/3nmyW12K2D0X8v 6NL9VOE1ADUK5zpeMxc74jmy0T+gSwEdV9a9gj5UuMNdSTsfYdOHDIne70W9VkLdAkT5 x+R98pEYxc2T95HNogO/c7H0pnSaqDujDevSq4COObqZToN2YeBxSIx3N9uOpfpcM+0r Zs3r1dHvTFZ8fmGpCzDw+Os5wfBtn862luQR3BpBHNLDHKK/BgcqP5htCfTlSaLtFid+ HS2L+eqUDCs4MdS9fGw9WvqcPdfQocryTqlKQ6Gbg/Bao7B2Rp9SvVF5MaYLxpmwPySM dccg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tdsGB+2N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e186-20020a6369c3000000b004119b477a6bsi3032884pgc.181.2022.06.30.02.25.54; Thu, 30 Jun 2022 02:26:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tdsGB+2N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233927AbiF3Iik (ORCPT + 99 others); Thu, 30 Jun 2022 04:38:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233909AbiF3Iii (ORCPT ); Thu, 30 Jun 2022 04:38:38 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B103419A1 for ; Thu, 30 Jun 2022 01:38:37 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id mf9so37642757ejb.0 for ; Thu, 30 Jun 2022 01:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=RuzPecmK8lwJMTVULYofbK2iZPvsauIveMAadeADOMo=; b=tdsGB+2NFmsAPBB/EUtedO7vX9EzT1WMIVZfKvtgukXqhZsMXG5jbbtUpjF8gf9fc1 rxu9gk0bvX8z+W8Km2DpbFNG+0QdkuFrZPwUdPmNZV+Q9BKlzHl4tj/xSg6zIi50w+xg YXDn0G76eumzK26kDBmguIwrj6qEf5N1OQYNnQQ/AhC7eF/8/G5hpwga4a+26kpTp1Do Et03yT7t8QjLvpnNDexMFNAiwpFeCGYVUHTcI0v66MLL7NQL7gg3CFsCwrUSVuNS4wc6 MKWAs37cOdvtj6Tl4cnFjzGT9JlgHkIGlCsPSkheEuUnYssDpOee30VFxY74+mVVCRBI 7AmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=RuzPecmK8lwJMTVULYofbK2iZPvsauIveMAadeADOMo=; b=gqb86jBXGGCsv91hG5hALlKYYTw9uBO8L6rvFaet1Nu2ILQnGDZba2jEef+8NRoQMp eqG2mJalFbT9U1XBZvcV/G0m865KMsr/euqO6yS/ekPKznkM27si+rOlFyGsepbxqIEt OagLJ6ohI1A6lqumf8rw7JhohT5h35T9CKhXa7QCgm7/B0aObf8h9UF349h4GjzOc1Kb 5UVAljfvfP8WdjbS4hrZW53Y2i3RqRsMQb+WSHon+UWgmME5IeuFiMsZewRvFvFyVxns oFLzz0jL3qEfaPpCTK2KZPRLCLFHlBsjyCRgl2MjhuFRrF0Exu0rHJyttEYxeXGijzH9 hSFA== X-Gm-Message-State: AJIora8lb2NaNTyPEdmRvTa56BYb8tpb6176wjb9EEJ9uHw0509tMXpa sow+NvAv/HpoNP1Zpy5er67f7w== X-Received: by 2002:a17:907:6d14:b0:726:34db:89fc with SMTP id sa20-20020a1709076d1400b0072634db89fcmr7666449ejc.406.1656578316020; Thu, 30 Jun 2022 01:38:36 -0700 (PDT) Received: from [192.168.0.188] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id jw14-20020a170906e94e00b007263481a43fsm8471129ejb.81.2022.06.30.01.38.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jun 2022 01:38:35 -0700 (PDT) Message-ID: <494f610a-b252-44ba-c883-155731561769@linaro.org> Date: Thu, 30 Jun 2022 10:38:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 5/8] OPP: Allow multiple clocks for a device Content-Language: en-US To: Viresh Kumar , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org References: <8b29fa207024dc295639f9ba52c28e45782e3baa.1654849214.git.viresh.kumar@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <8b29fa207024dc295639f9ba52c28e45782e3baa.1654849214.git.viresh.kumar@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/06/2022 10:20, Viresh Kumar wrote: > This patch adds support to allow multiple clocks for a device. > > The design is pretty much similar to how this is done for regulators, > and platforms can supply their own version of the config_clks() callback > if they have multiple clocks for their device. The core manages the > calls via opp_table->config_clks() eventually. > > We have kept both "clk" and "clks" fields in the OPP table structure and > the reason is provided as a comment in _opp_set_clknames(). The same > isn't done for "rates" though and we use rates[0] at most of the places > now. > > Co-developed-by: Krzysztof Kozlowski > Signed-off-by: Krzysztof Kozlowski > Signed-off-by: Viresh Kumar > --- > drivers/opp/core.c | 165 ++++++++++++++++++++++++++++------------- > drivers/opp/debugfs.c | 27 ++++++- > drivers/opp/of.c | 67 +++++++++++++---- I don't see bindings change here, but I think you included my pieces of code related to parsing multiple opp-hz. Is that correct? If so, you need to pick up the bindings patch as well. Best regards, Krzysztof