Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1025336lqs; Wed, 6 Mar 2024 04:20:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVLeOTN35gkznCcNwrimiCK6VP5jzNT/ALzkjZdpq0hrJmFnZh1liwUjHwx/NuK+Bz8beYEKI/eaD3GkmIGBFh0HPZizno+oWGVtSqtNQ== X-Google-Smtp-Source: AGHT+IGqUcmmhlQwgZJdeYfD6ipETEQzhY3CAvMAN2wfmpWPG9z09s6ptwJQrF8nncC3RWJsxTdg X-Received: by 2002:a0c:eda3:0:b0:68f:ab60:785d with SMTP id h3-20020a0ceda3000000b0068fab60785dmr4468589qvr.11.1709727617296; Wed, 06 Mar 2024 04:20:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709727617; cv=pass; d=google.com; s=arc-20160816; b=T4bMWIVzpw8IEFU1j4JsJznfSozXsSzSF2e2Vbh3y2KgCzI8Zma7a92cY7itSpH0Jl dpjnBnI0I7QrkIfLaYMmv/Mpav36ydURpambN2SUMT9LvDAGVkJ1Z2morOrVtpBt1Pga 45HvQZJQeGUX7u7o661wjJbH3DBVqLpiIwJ0DBuWthkvOXJHvzEMkuUT+tCV9VBRUYKM YWHiovxGCLcA6Wr6BTh3TT+KrC94pAR+4DrwduwT4zjMfYm0G/87+LTjrI/6TuW73asB 5CYbJo7qowhFtcBV/mcdawglJVRVLsIV3mal47n5xNt0jLwTEulgBZNGX/1/I4RXuWYq n22A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=qWZJN83/bbNzf+Ic7CfQsRyRk+yU0zwq31wQFy4WgWA=; fh=7fZnbwMtGnNlXMGIV6lWDhlGGavq0yX+gGQpWRiP/po=; b=fcVCpUItgPfl/m+W/LbRX/oP/9DLJ6xHZEPKvfq+t3oG+2A17Y1EsUZZHGHbAEMzRN whRgcmehAAi12zczd878ZVuFRD4BmHPJWc8zDK9AgzKLLIoCDkSF542QLavhDBcm5a4b WePfPQEKJHaPtEy3T2meo2aGct0nPjq3OZjzrLA+lf9nFPz72P6tPmpacEEYmm5GXGY8 lmf6FZWRgiRmYyz7FLVaFWDijgYEeS1GxFsiTbHXyAHWIIEvJyVFMb3utyvLuuqHbMsS 25Xz3YSlCAHjXQMTBqYVeRmTiueCbYlfGPUL49Pv20P5vtINFYhiTMfAX7OsgaLpHTS5 RHgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OObOWBOa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-93874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id qj18-20020a056214321200b0068ffe6c7f5bsi14583868qvb.283.2024.03.06.04.20.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 04:20:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OObOWBOa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-93874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F027B1C22CD8 for ; Wed, 6 Mar 2024 12:20:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9239D8002E; Wed, 6 Mar 2024 12:20:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OObOWBOa" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DACBE7827F for ; Wed, 6 Mar 2024 12:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709727609; cv=none; b=axVWkl+I4x/LWpUBIqah92lweWrtVuRGkabrm2gckXwVQYduuFpn6VnfAkPnXF087S8qWg+JZK8pMaU8UIM1jq8IL7c/84ktE4RI6Bni6mckufK4LK686lTx/LDlBkyRniJ9Z7p6lS3jbwEKOB44xF8AABXcW1tVqOkPw75T0v0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709727609; c=relaxed/simple; bh=GgywhyYg02oQR+ukulXPdwnpOf+BubR6SiNSRsbeZyA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HMnrP8SVzbWtN4TwnXtY/Ie7449isMF9HjR36YhD6SFQkqRs+QaV6R20qaeKaRYF2oQDIjxVZZ5CAJ34krvfm0NyRfCwGriz1Oko8vZGbo4WCOZYYifoPKFxioxZu425kyEcdxn7QN9XF7kyX1k0X6umQMYApNzq0o96RLrHAUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=OObOWBOa; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-412e80e13abso21289575e9.3 for ; Wed, 06 Mar 2024 04:20:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709727606; x=1710332406; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qWZJN83/bbNzf+Ic7CfQsRyRk+yU0zwq31wQFy4WgWA=; b=OObOWBOakQORb6cUDeZBUbcWQrG+53YGNvNN3YcWGDjXh7csYWRQvAYC9jOIC2EtcZ I4nt2D0JXRbeh0+EbnvQJO9IbaQz6aNNMrZHgEE/1uWo8axQ7s5q1DljiEuP00uEIoUJ 3vqwFiTH/xCkY0jVs67L2wt6rgGkW5ip8ma5lGUyn/pU3NBYX8UVTMhlNRAO6FMDtG8K B+WSKx/2xDnREzDKWlL1QniOlEVJ83kRDHAxYUmkflAk28Uwitga/U5VifYUtjUQJMDh wJreYvcFzz6JcF4mFqprP2euf6Elkh5gbR4i+96YHxorKqOCXYBBo79wSsi1A9DlIdqz +MLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709727606; x=1710332406; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qWZJN83/bbNzf+Ic7CfQsRyRk+yU0zwq31wQFy4WgWA=; b=KslKEhLraRLAGDdQQpnXlORmrOlrVmfD9NQIB/NavPhG0aAMKUTzpNuFxa6Qq+j9xw l3PeJD3f0cpVcrGaaiDsne8DduauEtyc5sAl6Zux1NIxXH2XJByGPQeCULwZoLnFIPl8 e+q9SmTrVyY6vEmDa7W6gJB0xrBivZkSHmupASQ4+NICO7lvc3x1jsx4Z9V7UCb9ffkp n3S50lkBlmgjMvY4e0o3Sg6zsUh0XjdTvgFKWDrliNliQ/+rH3p/ii+lR6XkFtlZdwlp UCjiWjhm9PetH/TjdjdFaRqltDdUfGTyQOObV6douBqxilFvdhunr7AelxACV+sF7Rw2 kxNQ== X-Forwarded-Encrypted: i=1; AJvYcCXGAjOkQMMqj8Ryb6S0Hypo3NbD2CN/e63nzFU1B6R8qVghArQL0Od10YLQH7SYRR71YVsnSyRNkrj4WGHcIIW3eJtiUv4ohJ3Ax0B/ X-Gm-Message-State: AOJu0Yw6ZpGG4R91cH/LelkjC137QePR2I4VY5TU40BhH5vhX4JRRD/h pPle6bI31YqPuLNBnxwyNYmW/Qv6JelyQbKv+MV2on+AovYeByLg+++MkKuwoho= X-Received: by 2002:a05:600c:474a:b0:412:7489:c8c0 with SMTP id w10-20020a05600c474a00b004127489c8c0mr10696349wmo.34.1709727606183; Wed, 06 Mar 2024 04:20:06 -0800 (PST) Received: from [192.168.0.102] ([176.61.106.68]) by smtp.gmail.com with ESMTPSA id b12-20020a05600003cc00b0033e451a9b64sm6112893wrg.61.2024.03.06.04.20.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Mar 2024 04:20:05 -0800 (PST) Message-ID: Date: Wed, 6 Mar 2024 12:20:04 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 03/20] media: venus: pm_helpers: Add kerneldoc to venus_clks_get() Content-Language: en-US To: Konrad Dybcio , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Dikshita Agarwal , Philipp Zabel Cc: Marijn Suijten , Stanimir Varbanov , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230911-topic-mars-v2-0-3dac84b88c4b@linaro.org> <20230911-topic-mars-v2-3-3dac84b88c4b@linaro.org> From: Bryan O'Donoghue In-Reply-To: <20230911-topic-mars-v2-3-3dac84b88c4b@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 09/02/2024 21:09, Konrad Dybcio wrote: > To make it easier to understand the various clock requirements within > this driver, add kerneldoc to venus_clk_get() explaining the fluff. > > Signed-off-by: Konrad Dybcio > --- > drivers/media/platform/qcom/venus/pm_helpers.c | 28 ++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/drivers/media/platform/qcom/venus/pm_helpers.c b/drivers/media/platform/qcom/venus/pm_helpers.c > index ac7c83404c6e..ea0a7d4601e2 100644 > --- a/drivers/media/platform/qcom/venus/pm_helpers.c > +++ b/drivers/media/platform/qcom/venus/pm_helpers.c > @@ -23,6 +23,34 @@ > > static bool legacy_binding; > > +/** > + * venus_clks_get() - Get Venus clocks that are not bound to a vcodec Get non-codec Venus clocks. > + * @core: A pointer to the venus core resource > + * > + * The Venus block (depending on the generation) can be split into a couple > + * of clock domains: one for "main logic" and one for each video core (0-2pcs). (0-2pcs) is hard for me to decode => zero to two parts? Why are we double quoting "main logic" feels a bit "Dr Evil" Suggest hyphenating which would do the same thing: 'one clock for the core-logic||main-logic' > + * > + * MSM8916 (and possibly other HFIv1 users) only feature the "main logic" > + * domain, so this function is the only kind if clk_get necessary there. > + * > + * MSM8996 (and other HFIv3 users) feature two video cores, with core0 being > + * statically proclaimed a decoder and core1 an encoder, with both having > + * their own clock domains. "statically defined" not "statically proclaimed" > + * > + * SDM845 features two video cores, each one of which may or may not be > + * subdivided into 2 enc/dec threads. "into two encoder/decoder threads." > + * > + * Other SoCs either feature a single video core (with its own clock domain) > + * or 1 video core and 1 CVP (Computer Vision Processor) core. In both cases > + * we treat it the same (CVP only happens to live near-by Venus on the SoC). One not 1 > + * > + * Due to unfortunate developments in the past, we have to support bindings > + * (MSM8996, SDM660, SDM845) that require specifying the clocks and > + * power-domains associated with a video core domain in a bogus subnode, > + * which means that additional fluff is necessary.. "We need to support legacy bindings" "sub-node" > + * > + * Return: 0 on success, negative errno on failure. > + */ > static int venus_clks_get(struct venus_core *core) > { > const struct venus_resources *res = core->res; > With that fixed. Reviewed-by: Bryan O'Donoghue