Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp696963rdh; Thu, 26 Oct 2023 13:05:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGG9aFOzRclXcjoR5Qwtw8fNzOzozk6x9xD5MlzvJ6tivaQy84orN+P/V1uofoCB8dOWn9x X-Received: by 2002:a05:620a:2951:b0:779:f544:a470 with SMTP id n17-20020a05620a295100b00779f544a470mr427618qkp.8.1698350753349; Thu, 26 Oct 2023 13:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698350753; cv=none; d=google.com; s=arc-20160816; b=AlaLsr8x41KZ3h8KKIiJJ/6363FAIl+Xoux0JapWxwpT3K9BDlsV3QIMzjsVFPbq3q SV2mn5xW46tryo+7YqdCcLFH3Yn/oXd+c41S1JwPcGuKOduhl7qMK4w6vFaxCnotQ4iP ycN4Byqd/LmahIDj4sn3bj2IJBwcXEzBoNRAHYAeMt7VswsrbGwMxG6yf+X6Hs7EiTOz 52zFkWpO7vvLn4Ii9d/AVBcrygNVkpbqOD1MyuydVf6osZNLAG4Xv4A1AiqZQXG/mSEa XwfYLMSxRTACQ2b1XPMIILLsasXjmAOXvJl/NkjpzTywVEhMJQ4m+XV9I+Ant0MEhyoI tB1A== 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=AvOjbgMEiNiwKtiviiRB3Jrac69AW/ULZDJDyb5mOHQ=; fh=7iotfooMA0j7FS1TJwLo8s7hKvS/VUhTpTp1pJHCixw=; b=V8hRkbOG2tqVFqyFljV0HTaPBWLrLvcqUxxp+0PTUSTDDXXG8EN7L23RTD9MSZN0p4 mR4iqZqOOxboQfimOGSSVQhLLojOp02XMxMzpX2XRclUpx0hK5yT/CS62Uqy92fKyqGf 8mPlbMXziRKHa2+448F7Ww5M19JpV0PQdMv0pWtY5rdTno1sdlLSi1039c39n1fPTF0D 8GUy2cQXmE2EKmzb3RtaQWRVjq2MgJakxDtee7yLfgiXvh8zkpJ76TkR0VHxluT25mm9 vzlWqlDruHd7WXjdZmku5T3iJKIMSRd9dHQgPiA6mlFasqtxjBZce1J8z+5xqrDOqlxa V6Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P4D7ta40; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s27-20020a05620a081b00b00774182478b5si335qks.11.2023.10.26.13.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 13:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P4D7ta40; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 352AF825ED99; Thu, 26 Oct 2023 13:05:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344648AbjJZUFi (ORCPT + 99 others); Thu, 26 Oct 2023 16:05:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231975AbjJZUFh (ORCPT ); Thu, 26 Oct 2023 16:05:37 -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 922AF1AC for ; Thu, 26 Oct 2023 13:05:34 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50797cf5b69so1860273e87.2 for ; Thu, 26 Oct 2023 13:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698350733; x=1698955533; 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=AvOjbgMEiNiwKtiviiRB3Jrac69AW/ULZDJDyb5mOHQ=; b=P4D7ta40bUsOEize9zzj1mKfohkiPXxhP2CVpUFlOM8fzhc1eRaHNJw7Oi/OwzEGBK wEcX6jI7dZFXUY0uHav9JJsvx9mowaROLvDG60su/yR90XkaZvrKNuZgU/vNz3h6khl5 sZN90EA/2WeIug3Aa2nJ1/xYTC2D/aN/cLqrv2p7YcnV+a+HccWGezM5YzK+iMI9TCRa Xcw2xvHgvM/e8C07wecuF7EvpmzYlxumS/mZusZEe+/vJ9Q6La8PZLvWpJnMLwrATe5u Y359zoJm4Qn/JtanAE8bUzoXT681Bl2e2yScNcc9R2FA6XpO+GfhuMWEgJ7TjyDTHcsj Va2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698350733; x=1698955533; 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=AvOjbgMEiNiwKtiviiRB3Jrac69AW/ULZDJDyb5mOHQ=; b=PXNDvtkAdyhhnZx6hXGm/1d7n/MsYl3AKrHUeJcLuqUH9oIw8o5s5bXDHQEWRoQks6 3rCAEhImkamJ5pRsYE0lzTujuDvPHAgu2BnbMfijbUUlpVT4Qwfa8qzaI2F6jvpwKUOX 02qAiLnsCJAAReSoIlXYylavqN98F7Vmc0zave3MT3K3nP1hT52k/D3H2kg+suMngtaT JPmYJRU+kpQhcHnZ0sZ8ViawAtexcc/r3JaBLN+hyyhOY5CfvOWCtC69SAVM0svkRx1c l55T5mMWN39VcHxY0v+k6EPGlarPfT5ifhNzXWLKsnryexORuHh47EvwPdl32zhAfA+1 LySA== X-Gm-Message-State: AOJu0YwcjJzH97p6MN8MYn3OVdLnljOfMKiBQOU+FwUrFEE6SCszkCbh fHUYs6KprRgym5UJ/+Otlsp3Mw== X-Received: by 2002:a05:6512:6cd:b0:503:3644:4a98 with SMTP id u13-20020a05651206cd00b0050336444a98mr344546lff.2.1698350732782; Thu, 26 Oct 2023 13:05:32 -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 t6-20020a19ad06000000b00503f39e6bcesm672812lfc.95.2023.10.26.13.05.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Oct 2023 13:05:32 -0700 (PDT) Message-ID: <883ce8a7-80e1-4065-a957-424d0b4a6535@linaro.org> Date: Thu, 26 Oct 2023 22:05:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/5] media: qcom: camss: Flag which VFEs require a power-domain 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-2-bryan.odonoghue@linaro.org> From: Konrad Dybcio In-Reply-To: <20231026155042.551731-2-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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 13:05:50 -0700 (PDT) On 10/26/23 17:50, Bryan O'Donoghue wrote: > At the moment we have some complex code for determining if a VFE requires a > power-domain attachment. Particularly discordant in this scheme is the > subtle reliance on VFE and VFE Lite declaration ordering in our resources. > > VFE id is used to determine if a VFE is lite or not and consequently if a > VFE requires power-domain attachment. VFE Lite though is not a correct > delineation between power-domain and non power-domain state since early > SoCs have neither VFE Lite nor power-domains attached to VFEs. > > Introduce has_pd to the VFE resource structure to allow the CAMSS code to > understand if it needs to try to attach a power-domain for a given VFE. > > As a side-effect from this we no longer need to care about VFE Lite or > non-Lite or the id number associated with either and which order the > VFE/VFE Lite was declared in. > > Add the flag and populate the resources. Subsequent patches will disjunct > on the bool. Generally such things are expected (?) to ship together, but I see that these patches are quite big as they are, so this is totally fine! > > Signed-off-by: Bryan O'Donoghue > --- Reviewed-by: Konrad Dybcio Konrad