Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6371072iog; Thu, 23 Jun 2022 18:05:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u+x+YybPAEtDsDeF0D6491SojAQH2murCCBRYE8CB1kf3cwAYgpFofD/yz/dpctbGESSRS X-Received: by 2002:a05:6402:2790:b0:431:4bb6:a6dc with SMTP id b16-20020a056402279000b004314bb6a6dcmr14181356ede.48.1656032719616; Thu, 23 Jun 2022 18:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656032719; cv=none; d=google.com; s=arc-20160816; b=eEbfE0Ej4cMTsTF82IU7qe0sQWm9+P5KrHaEtSTLfze7TwC2MB60B52rRFNX8bKmfa YJ7ZXH1Rhd3dwjuu/ZRABC9v8HLze6tWbFtgyQfJN3mjrDFT1Nmko8EOhY4B3OPOnSUa 6fGy2q0GwHwW2YmLoY7pOV693uAftxoTSLbu3icCyMGUdgkqR1yMuebck9INmG+ED/BA irRwK4ZTWKM9GBooiMOXkR6i9i2KMjS3PBqVTXaLDIDfbW9NL9uPChwiFNtApjZmPlEL bC+0G+zFV2UkIKnTg+FLvPbZvYJYewjM6qJUBtP9yMB2a3Nk0jb04/0Om0Yz+yOP8YGH 6FzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hxVvB/m7x0pgtjlNYBhWurxvqaAULbnSfJFRHQ6dHo4=; b=sbhimc5+3176DeKjFN5WOBeyQdvItEElbKfFX6uHqHinyJtEG6D4qOjL57s5dZrCl+ sOOPRs3xgC98aABhVhzljSaIn8/n3S8CYhONM0FKf6Az9pdltjcQvRLviRrIc1m6ieGh TBx1j+4c+jDTUiRMmUu7TTwHddPE/IDp+KsmxaBDoePA8+zlR9EshrPXGqgxb+jlqmun Bxgk3/TYHcFufFkmcMVhrO/7h3213vT8DpdA1hU47OR/92dVoe4HfCfghhxMG71H6Vxb AkWH179sbjJ6EQallkyDWErr1afjIKJ5TrdASWzUZBNdjWmyX43jC3WaMLQpPTlgCpGy jHNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LMOQw6GJ; 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 a5-20020a50c305000000b0043573713b49si1318097edb.220.2022.06.23.18.04.06; Thu, 23 Jun 2022 18:05:19 -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=LMOQw6GJ; 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 S230462AbiFXA5H (ORCPT + 99 others); Thu, 23 Jun 2022 20:57:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbiFXA5E (ORCPT ); Thu, 23 Jun 2022 20:57:04 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 015B656FB2 for ; Thu, 23 Jun 2022 17:57:03 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id x1-20020a17090abc8100b001ec7f8a51f5so4278831pjr.0 for ; Thu, 23 Jun 2022 17:57:02 -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; bh=hxVvB/m7x0pgtjlNYBhWurxvqaAULbnSfJFRHQ6dHo4=; b=LMOQw6GJtSJ54E9LC8aXS8JjU9Xiug7/qsvW5QpPNmC0/MUnxPZkcpO1Kb8rHGenmc lzbcmdRhC0vjEKRRF4+bOY4vbkzgMM9VmvQwGETZ+0v11g31c8Qsl1WyIoHK+XAl0pH8 wjYyASMIZDd9LL3/pPH5ZqxwgTBtIZ1YV/51WxozXcXv+PEAxXA4Yrz3HrhdLsPvrZ2v j7rmSzSxDBqageafcUNeyQqx1gTt9yLe8/ujf7aHo2CY0Pq4vK1G30e7UKaohGd5bYGZ nY+t942ghnZQJA6KYZDoryFEFXUk71S5ZMSF8DiMFo8YbTY6rJFGWF8oxaspQ5YaclkS HTmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hxVvB/m7x0pgtjlNYBhWurxvqaAULbnSfJFRHQ6dHo4=; b=hynkN2PvUR5HfBlIoOE6YEQkUw6Buq8G9IoOn7NXtGcdWY7w2emgQvTLwmnaq3QMCi kJ8bXmjxmQuxFU7WJn1D0mCUjnZNZdsIhCrd5uYvxt+b3yQ32sudH8LDCphNeakJPv/l PdEln90pBOW5l3Lv087BXEwXBimvqC7qSobXf9NMQMcWT/5zyLM/CJVJ8u+JwZ3VMVzM osfiRHtK6jzyADpjSjLx6oeaYZi+6EyWiQxBhGelSJt27SsPeWfXIRbdIr4lx5Nua+Yn T3apHWo9AEOyGFWPBp143/sqB3pQ1qRCMTX/MfwJQD/FW4ly13KhlfYahDMe9ry0IJM2 2Qww== X-Gm-Message-State: AJIora9xafHpDZdpLduRoVZmJ+WTilpAHHnwYHkyCufgig0YalljoXe3 M9ZGclXFaAHjyE7yLA0UiW/mtw== X-Received: by 2002:a17:90b:4c48:b0:1ec:a20e:a9bf with SMTP id np8-20020a17090b4c4800b001eca20ea9bfmr790585pjb.209.1656032222483; Thu, 23 Jun 2022 17:57:02 -0700 (PDT) Received: from localhost ([122.172.201.58]) by smtp.gmail.com with ESMTPSA id v20-20020a1709028d9400b001690a6394b6sm390283plo.247.2022.06.23.17.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 17:57:01 -0700 (PDT) Date: Fri, 24 Jun 2022 06:27:00 +0530 From: Viresh Kumar To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter Cc: linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , Stephen Boyd , Nishanth Menon , Krzysztof Kozlowski , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 22/31] soc/tegra: Migrate to dev_pm_opp_set_config() Message-ID: <20220624005700.oj4etaajbutvsym7@vireshk-i7> References: <449b344f037c7ef1970bc84d31e0d4c4cb4d2951.1653564321.git.viresh.kumar@linaro.org> <20220624004831.po35sowzfo4c47b3@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220624004831.po35sowzfo4c47b3@vireshk-i7> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 24-06-22, 06:18, Viresh Kumar wrote: > + struct dev_pm_opp_config config = { > + /* > + * For some devices we don't have any OPP table in the DT, and > + * in order to use the same code path for all the devices, we > + * create a dummy OPP table for them via this. The dummy OPP > + * table is only capable of doing clk_set_rate() on invocation > + * of dev_pm_opp_set_rate() and doesn't provide any other > + * functionality. > + */ > + .clk_names = NULL, > + .clk_count = 1, > + }; Slight modification here, sorry about that. We just need to set the name as NULL and not the array itself. diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c index cd53e46c4058..6a099d764cce 100644 --- a/drivers/soc/tegra/common.c +++ b/drivers/soc/tegra/common.c @@ -116,7 +116,7 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev, * of dev_pm_opp_set_rate() and doesn't provide any other * functionality. */ - .clk_names = NULL, + .clk_names = (const char *[]){ NULL }, .clk_count = 1, }; -- viresh