Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp895330rdb; Fri, 17 Nov 2023 16:41:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJv5cUm/5Job26MIjbPZ742O/OJ3PPD0yoR7ZE3yzq3yt6v7OCGAOPU+tHVMtqS7KlYkhC X-Received: by 2002:a05:6a00:93a8:b0:6be:2991:d878 with SMTP id ka40-20020a056a0093a800b006be2991d878mr1278863pfb.15.1700268106840; Fri, 17 Nov 2023 16:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700268106; cv=none; d=google.com; s=arc-20160816; b=RnVFdaL4Dnp2G6sQ85bFDoo+/gymH/xA9IZ2e9xt9efstLkkwk1oTYs4vA56N8o6Ev EDZ2WcFWGYPCFsXmMU3Mu7NuLdrWltmwFFQ/oPuqtIaS0Zb6F1r5bTGQpEdQ+ecqnYnA p8pbE040EAMiSisK0O6i2O2vARJhrTgfknSORFUlKxSnJQx1FvziiPlmibfWmV/FxgiF LRAIplUdTVgXjfgS2owOp+YlbsBXnuphjwNAv9dopLitA2CvPrwOtnBrm0+otAjHzj3S CI7uRxMEzxDdgMf1LfqHlmrZXcdZocHsMaqHXmjMcwIHGfpEpBfUTkFSGeco8BIDtEmF 4LSg== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=PhAvFW9MLwb/bwSxSlRr+5tAeVfyF+CZ+OfOVamrUmA=; fh=FOwmIRuy7LSfW1ynNtnPg7u/Pv+Nz7Y4K/4oivuV384=; b=d1XTn9/AFFoNc1d9o8Sz/I8FWQLzEU4L6Eo2JY1rpJGzIPugWfLBi9HebpVEn4krUh kWFE9daEu5Lj8sEzbUB9y0+3dHsAnUybGEHo+qtYWkFS3EFm2K+Jmk138PH5tTSlj/dO z0PZOwYKLtXdXlKXVYRuVa+E5Spjs1/A3QSW4fQNy/z9mlN/BTtBDSgmxzQAUp3H8gRJ 52RG/NrTKD8MZnx96lq2vjuCNH5pmJjFSPwtY0gxM/rq0aW78bcWl4JT8AbC2YSdgh0x pRhlOwudqnkoX/xJ6GdYG1QWYyDRvkUrPNkGzG2N6auWYlMViGqIXX6tkrbvqSWwlqH0 eQpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xgAUx5ph; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id fj19-20020a056a003a1300b006c347df967dsi3086082pfb.155.2023.11.17.16.41.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 16:41:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xgAUx5ph; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 4D6C18385ECD; Fri, 17 Nov 2023 16:41:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232530AbjKRAlb (ORCPT + 99 others); Fri, 17 Nov 2023 19:41:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232181AbjKRAla (ORCPT ); Fri, 17 Nov 2023 19:41:30 -0500 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A826210CE for ; Fri, 17 Nov 2023 16:41:26 -0800 (PST) Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-41e58a33ec9so14943931cf.1 for ; Fri, 17 Nov 2023 16:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700268086; x=1700872886; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PhAvFW9MLwb/bwSxSlRr+5tAeVfyF+CZ+OfOVamrUmA=; b=xgAUx5phc8dAVF25lX4xvwUHckDjBnbuHTmxbglJAyCKrFGrC4EbT98mKKPcoD7MzJ s9v1bDMh8r/j/yN971H2VqCA6iBGRrcU+ZFWJxxGBN9FKCRkJy9Qj1pGZn0g3mhWJ1U/ nOW0XQMh9kiMcSqg+9PSj9qPyfzXTi2hCPmvtqPxRK4deA7K5stl2MeujGzoOBqYNNC8 4EU963qbxPDY2YuJp5guVfuujN1g9Au2TyoebtJ2hpk2i6+NlcPv/6VYypGjJBmGiMxH kaMBMrk0dfBXPK/50ol64GBPHtO1AVDStJLntIOBeza1GqUAdYPCogsYjoPsbBy1vCRX 5k5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700268086; x=1700872886; h=content-transfer-encoding:in-reply-to:autocrypt: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=PhAvFW9MLwb/bwSxSlRr+5tAeVfyF+CZ+OfOVamrUmA=; b=jhr1tjMW42jaHpMQp5Yv8vHwCzRr6d5mM7ZzQv2V4QkHWur0w/WWhW7ccHVXIsqYIA vEVdoMCMdlVIfMkBnxTXwhQoHpE0LCniWm4Hp0oRlj+RofSyV88TuCUF6WPRcS++znk0 eMPCrHQMoZfOJN4yA3BRKwJI9HL5Awyw9hPcKff5OOyONKd1BCb45a4G63HcY+J42+7O 3rbhWoNBbNeQmD32ZtipA7uWnn0fQiWtjBqkXS5u/mNMZcPdwNz4gM/zdE5HkyIIkr93 0u9dmtFO9qbIPqhohJPpHXBvl88nOiveqVglTHpUF6r2e8PHZhSXaGCunr2sXt9WP4V0 XCJw== X-Gm-Message-State: AOJu0YxdwqumPtIn5JHIgfPfw33yYyZhW1xg03HgbpqSszFzXrFQnWJM XScz/X/kwgVTBxNj5tU8ctkzDg== X-Received: by 2002:a05:622a:104b:b0:410:87a:be98 with SMTP id f11-20020a05622a104b00b00410087abe98mr1584673qte.20.1700268085757; Fri, 17 Nov 2023 16:41:25 -0800 (PST) Received: from [192.168.201.100] (178235187040.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.40]) by smtp.gmail.com with ESMTPSA id r15-20020ac8794f000000b0041e211c5d0bsm952738qtt.6.2023.11.17.16.41.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Nov 2023 16:41:25 -0800 (PST) Message-ID: Date: Sat, 18 Nov 2023 01:41:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 6/7] media: qcom: camss: Flag VFE-lites to support more VFEs Content-Language: en-US To: Bryan O'Donoghue , hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, Robert Foss , Todor Tomov , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , matti.lehtimaki@gmail.com, quic_grosikop@quicinc.com Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231103-b4-camss-named-power-domains-v4-0-33a905359dbc@linaro.org> <20231103-b4-camss-named-power-domains-v4-6-33a905359dbc@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lvQGxpbmFyby5vcmc+wsGOBBMBCAA4FiEEU24if9oCL2zdAAQV R4cBcg5dfFgFAmQ5bqwCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQR4cBcg5dfFjO BQ//YQV6fkbqQCceYebGg6TiisWCy8LG77zV7DB0VMIWJv7Km7Sz0QQrHQVzhEr3trNenZrf yy+o2tQOF2biICzbLM8oyQPY8B///KJTWI2khoB8IJ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IzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20231103-b4-camss-named-power-domains-v4-6-33a905359dbc@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 16:41:44 -0800 (PST) On 3.11.2023 13:29, Bryan O'Donoghue wrote: > From: Matti Lehtimäki > > Some platforms such as SC7280 have three VFEs and two VFE-lites. Current > code has hard-coded two as the maximum number of VFEs. Remove the > hard-coded maximum number of VFEs to handle all possible combinations of > VFEs and VFE-lites. > > Signed-off-by: Matti Lehtimäki > Signed-off-by: Bryan O'Donoghue > --- [...] > +inline bool vfe_is_lite(struct vfe_device *vfe) > +{ > + return vfe->camss->res->vfe_res[vfe->id].is_lite; 0_o something something vfe could use a direct resource pointer I hope there are no more hidden (esp. using magic literals) users of this IS_LITE <=> idx > 2 logic, but old code never fails to disappoint Reviewed-by: Konrad Dybcio Konrad