Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp698576rdh; Thu, 26 Oct 2023 13:08:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEypsKgv5fyCke6zU04NS9cpHouNvAAnWvas+hGPGkBHHXdVK/ba/HhEUKNuL2ooggj++go X-Received: by 2002:a81:aa06:0:b0:5a7:be8c:e85 with SMTP id i6-20020a81aa06000000b005a7be8c0e85mr601161ywh.24.1698350918269; Thu, 26 Oct 2023 13:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698350918; cv=none; d=google.com; s=arc-20160816; b=syiqC8pps1rMxH3+wxC0UHALoGTHPOlfxMuw6vwZq95pD5MczF3+hjHBS6NBfdLsK0 WOxB29WnOXc/9WaAVpe44JrnKq86/Xtexklr9oN8QPgvf+j8t7xVxzZWPcnP+8sQ+m0i znEWuD8rtMeCN6lcYA6UJLVgMvWgXZM4Q/d9EHVTrZ4F7WrhuT5GGMov+pGtjfwjZrhP Yaztu4Z+DhKLt5iEhcYVb3hTpM0IEjSFG70bWuwuSKHJcnsj4TWBx90LxFPJihyIrwuI YYDIP3WagZ5E9do0CsklZqkMGPaF8cR5p581VH/3mB4y7OwOOJqI/jyewCw0mL1+j7Bt 7Wcw== 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=in296aXKitJNMXPUX/nmqhi/sS6stnc+qHOsGfoVDJg=; fh=7iotfooMA0j7FS1TJwLo8s7hKvS/VUhTpTp1pJHCixw=; b=q2HnCbNQPW6oJLxE+nXjLEOpZqBjJIkKfYd9H9D1djqi1cJ6hiPTY/jSoY6OF6ZE1M kAOvjPhzBbDqwAqh82uqE/efZGaFX0nxHrvf1nyeLLLvO6a+1wYb9SPmMTXqQI+mroPx g3LlpgrZpHrmNoTJLGqt0xCRC5d6BWLdYVvvv8zpGNgX24IFPsvu3u8UJMYrMyD0+6mS wGaZZOCz4Z/pq7AjlCCcb+cCBssgx31Ao5rV1fEHIP4VsqOOQ5VS5zZFiXiPoUWSoGsY aNUeOEAvUq5VJDKb59Xs6AGXA/9Dt+MhK3FX6f/OYl9nWdw9zTuP8jAWdmaT7gZ1SH6v GVyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yA00fGN9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id d70-20020a0ddb49000000b005702e516e67si83315ywe.13.2023.10.26.13.08.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 13:08:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yA00fGN9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 504D98125216; Thu, 26 Oct 2023 13:08:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344738AbjJZUI0 (ORCPT + 99 others); Thu, 26 Oct 2023 16:08:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231397AbjJZUIZ (ORCPT ); Thu, 26 Oct 2023 16:08:25 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 486BEB9 for ; Thu, 26 Oct 2023 13:08:23 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-508126afc88so1997639e87.1 for ; Thu, 26 Oct 2023 13:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698350901; x=1698955701; 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=in296aXKitJNMXPUX/nmqhi/sS6stnc+qHOsGfoVDJg=; b=yA00fGN9pFWRgyUpzF1vKLE24uzMeaa6hfF96NVjZxHTTfxmpeqklhKVbXjcdFQdCC +Q5HFPhdd/8HJaqkOi6h2J8R0C4H3nzBxL357mXs3W4PEe3tVOATHD6hwJYc8HiKigyi 32Z7usS8HjZLRnIORoEkePQ2yudUHRBa+NF/pd64qG8r7PSOAI8Unhf45/xEDVzMfm2N 4jm16yKfYHB+H4UK/HDqIYyUVEZSSv5Y3ZFUCZrrN8WJCUWx9EPDxnfKyhtHLvpspcVE uMoWHSBoCGs5q+Gr2UZCgN74Fg18au70QiWC14QTgyBBarmP6wGDUyl7BG3x9NHqYNy5 nhog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698350901; x=1698955701; 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=in296aXKitJNMXPUX/nmqhi/sS6stnc+qHOsGfoVDJg=; b=OOFdG+mPU4LeUD4FXyWid1Gn0BR1T7ak2guAnVl5EZZCuzhX2QtKc+btadzvPTG+rL qaSQEp8aDgo+lg298nPpWBX7antv0Dg+fG4oHrWdw0eXtvxs2+7uy0PsiuMSty8EisN5 uffRksfxGtJVG3COhnazVHQEnh4JkDapAuAk9241hB5FwCKjjF5wTfhJUmbkyS/9Tj8a msP/0LdnDQ6NBMuccmqYCyxJZpaVUM1+DjdBYtXXG13MdH2EzYqg2FAWCi/EswBn1qrL g4A32bNVbvT3jVkthnQbuZ07yg9k9I74Vmhp1qnI4KoKVi5STywLlyF499siJpwhpZhz jh8w== X-Gm-Message-State: AOJu0Ywv73fhhr4uEEoAFs8SEkj1pI+KTFFhOYMyegIicTy8Fao0eNbl oTDRJ/efVKE/ynhikDIwe/oOrw== X-Received: by 2002:a19:9112:0:b0:507:9ef2:fb1c with SMTP id t18-20020a199112000000b005079ef2fb1cmr338886lfd.2.1698350900853; Thu, 26 Oct 2023 13:08:20 -0700 (PDT) Received: from [172.30.205.86] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id c14-20020a056512324e00b005079fd88326sm3110814lfr.45.2023.10.26.13.08.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Oct 2023 13:08:20 -0700 (PDT) Message-ID: <8a36e61a-5397-4513-ae0d-eb68ccd8e584@linaro.org> Date: Thu, 26 Oct 2023 22:08:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/5] media: qcom: camss: Convert to per-VFE pointer for power-domain linkages Content-Language: en-US To: Bryan O'Donoghue , hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, rfoss@kernel.org, todor.too@gmail.com, andersson@kernel.org, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231026155042.551731-1-bryan.odonoghue@linaro.org> <20231026155042.551731-3-bryan.odonoghue@linaro.org> From: Konrad Dybcio In-Reply-To: <20231026155042.551731-3-bryan.odonoghue@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 13:08:35 -0700 (PDT) On 10/26/23 17:50, Bryan O'Donoghue wrote: > Right now we use the top-level camss structure to provide pointers via > VFE id index back to genpd linkages. > > In effect this hard-codes VFE indexes to power-domain indexes in the > dtsi and mandates a very particular ordering of power domains in the > dtsi, which bears no relationship to a real hardware dependency. > > As a first step to rationalising the VFE power-domain code and breaking > the magic indexing in dtsi use per-VFE pointers to genpd linkages. > > The top-level index in msm_vfe_subdev_init is still used to attain the > initial so no functional or logical change arises from this change. > > Signed-off-by: Bryan O'Donoghue > --- Reviewed-by: Konrad Dybcio Konrad > + if (vfe->id >= camss->res->vfe_num) > return 0; P.S. this seems better suited for some warning, I think