Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2410539iog; Sun, 26 Jun 2022 15:23:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u6xlICKjF1GJJ+o6ywnMmY7zyUnDSCkhUPAWEFcyIAiYLV8Wiwr+Tz4TKXnMtMO2pvDyPX X-Received: by 2002:a17:907:2cc3:b0:722:e993:c420 with SMTP id hg3-20020a1709072cc300b00722e993c420mr9720007ejc.145.1656282180183; Sun, 26 Jun 2022 15:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656282180; cv=none; d=google.com; s=arc-20160816; b=GVK2zyy+c4CRpgzyDTtCXYn2aBGKvl/dWin8D3sGJ0fdgq4pAyu1oxB+eQi1wLrpfw wvLqrqBo9e5KbPRU1GdscTsfYVUgoBTLAHygtQnMHBDfxqB56ZwT2LvrCRM32CkUBfLH 4GRgQnZKDHau6wQjq76doUKpt864RwN8wtFueskRsYDxfMExgbynjevYi+WQqY2gERXm gyX4nDMhpTPyBen+gSZqiQPpukRoYfLO2qaFX0rb87FBoEoHhzT8Q94amVq+wL1Bwsjg u+lCYXUO/Qx8CIq4jkZf8KQkKSwFsewbmXRQMvuB75VTVLusJFyK+O4pfrt3IZ55vNeR GoPw== 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=XHCbllkBeLeSjH8vK0GpVgCRiCwSLLCr2jMYejhftaU=; b=GtxfzkJVhfaM4InROHRRCReXb6Ouf/XmdMQAQ4hv3yAQAX6bMqQrtSDQ9s4fGN03kE csMBUQ2KYBpJg9gfuuMWJzb2sJ87//vbSCin71kzKEd/nhEiP4ZOgETqZH8xvkjTGNcV NTJIZ87iQMHtcWnp26T8+mj/TTRQjBd2JU5t1ANJXDaToohEbSjzxUtUTfDrXKjdsaou 1jWWgzkSniP6psQBZ0eYUTu1r0UKAwr5N++V7IKU18OOQPtnZAQd6m91kyyATcWhwIyE RbktYQrKIQpzhX0Qlt/JhHmf7x6VH4zBgGvPZRLs7vXJRF5Q5Yw5cncLAHQcTtcpRaIO km2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZE0PLd6l; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a17090658cc00b007262944c623si9433898ejs.869.2022.06.26.15.22.34; Sun, 26 Jun 2022 15:23:00 -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=@gmail.com header.s=20210112 header.b=ZE0PLd6l; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231969AbiFZWPF (ORCPT + 99 others); Sun, 26 Jun 2022 18:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbiFZWPE (ORCPT ); Sun, 26 Jun 2022 18:15:04 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12C7E2DC1; Sun, 26 Jun 2022 15:15:03 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id a4so2305lfm.0; Sun, 26 Jun 2022 15:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=XHCbllkBeLeSjH8vK0GpVgCRiCwSLLCr2jMYejhftaU=; b=ZE0PLd6l+It8dLl4j2n+JmT2JwuQgVzYexXvyObyR1qap9PLYIaruYuhbqDVr8sImp cumwYN+jY6+msbvyY3iMDMlYLtk2zS6ktEOV13LCWXwUH8umnm+y5GvdJZfc9MH5bR4N pCalbqA8BTOyyQmIHBMYD7+/A4frglOPOqjzTBRkVSTwTO7qSyaqIZpEbi5sjcs9kXUa O/Tu0Nb+FR1zivFm5858rD9htf6J95OrnsQZ+p0ryEn33sQEQc0Q2fsOPnaXvd9HW0Lt avqEwy2idiVMD9/YE6K4z3KJjhIPnv4ZD1Gdy14T60MZF8e2RT1qy/l0ksZnJqiahyuN zWeQ== 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=XHCbllkBeLeSjH8vK0GpVgCRiCwSLLCr2jMYejhftaU=; b=MOi8lFN3rfAgPC7DIhZsVZe7U+TLp969SmPgUbGwTYoaBwyF8c2mmGPPAIcZqlvTzK /CY73Czu4ZH91st3cXBlYs0ZTViop0Kimp+VbJUrk+cuszrzjH/aYr469AS4KNq3GvuQ PK02f84gqCNYzW8SsZ69cBTNnjBpd3TOt+Qp7TRPRXQla6cKLzF5UU/eglhI7MZ+jg4U NQRAkbPVnbQWaT4FJ3CVDp5sRWLw6QnTGAycwenyAqoR+pLsiJBZmoLmDJ4Qo5fz8t4v +LtWJl0UBqvYww1CRkY9g63t7v79wcaNEQQArcAE6yjEZwhTdmGEXaP4cM2YIexPoFk9 QrzQ== X-Gm-Message-State: AJIora8GSWTEnSeDaqm1ByjKDExztUf+2aXndGdCeUzZbXjh81ShrIhP Y6X0dNkEBppI2BMhTv3TUlU= X-Received: by 2002:a05:6512:793:b0:47f:82d0:fadb with SMTP id x19-20020a056512079300b0047f82d0fadbmr6578789lfr.545.1656281701212; Sun, 26 Jun 2022 15:15:01 -0700 (PDT) Received: from [192.168.2.145] ([109.252.118.164]) by smtp.googlemail.com with ESMTPSA id s13-20020a05651c200d00b0025a928f3d63sm1117650ljo.61.2022.06.26.15.15.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Jun 2022 15:15:00 -0700 (PDT) Message-ID: <73d39022-c6fc-0c21-cb68-9714846f02bf@gmail.com> Date: Mon, 27 Jun 2022 01:14:54 +0300 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 22/31] soc/tegra: Migrate to dev_pm_opp_set_config() Content-Language: en-US To: Viresh Kumar , 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 References: <449b344f037c7ef1970bc84d31e0d4c4cb4d2951.1653564321.git.viresh.kumar@linaro.org> <20220624004831.po35sowzfo4c47b3@vireshk-i7> <20220624005700.oj4etaajbutvsym7@vireshk-i7> From: Dmitry Osipenko In-Reply-To: <20220624005700.oj4etaajbutvsym7@vireshk-i7> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 24.06.2022 03:57, Viresh Kumar пишет: > 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, > }; > Looks okay. If you'll solve the cpufreq problem where OPP config is set by two drivers for the same cpu device and will keep the set_opp() helper that is needed by the Tegra 3d driver, then it all should work for Tegra. Looking forward to the next update of the OPP patches, thank you.