From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 9BCF3288522 for ; Wed, 15 Oct 2025 19:22:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760556178; cv=none; b=OJYdhIcxFRejxnxTEJGMGVp/a7dRkb0+ckewl2cjN9Q300Df0t6hSYUvxodLDmm000onC/+fm7dZF1ylnYvsw5LCht7rPaFEivOm/6Fm9/+NllksRNLiU/GvC3k8qZHMd+La8IFNwst1ZC1mZW92euic7W3ALu/f3SIItaEbnCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760556178; c=relaxed/simple; bh=6FJ/R1ITDsF+bIAIpfjW01XbZyF5cdVhQGhS9FNGWBM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KKvErZHMeYoH1h7aFid+I+MtaSJUzB3mEmd2xNlCQqES+nnKq6vHApvWe44f6aCdWBj64+A2OK+2Y/5MOid097mu+H17tZU8AxO4YPdiLvppGs8N0dqQYur6NPj1634sNoHnIYD3WvcROBpjlv1asW7N9DyaIaAd+UJrJIpMwB0= 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=UwJGf+Ul; arc=none smtp.client-ip=209.85.167.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UwJGf+Ul" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-58d8c50080cso1004709e87.3 for ; Wed, 15 Oct 2025 12:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760556175; x=1761160975; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=D2uKCDGSkRJ1nI5Vl4WxpkpeLM82j5VPKiPiLY2XZbg=; b=UwJGf+UlWJ7t8hswzGU8YK+rxrOuzqHONzuZvAEiwpkAROzMHTpLkkQNhV7o/LEmva jZoNgA+b1QlTvQITTDVjuuuvZKbv1rFcfWcvt1WYbn0PpXPmG3xiWtyEFuphXwHCzzge 0iFKQmd07AWa18Jc8VcjsBEbzoaZZj2pFVCE026X7r89Vik8YAKk0Jgg23aOl0rpd5PN rBpBs2+RJCTSiDv1nqCc/36aDGgX8n8tgQCOs9I5xO8Cm8R6XiYcLThitzFuraUTG/qb HUsq+QSuVAvrmIhMl8jxjfRBxrTAP7sepgYisGScurVa6EI6ShCZbU9mRnHUcSLc5p27 aAmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760556175; x=1761160975; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=D2uKCDGSkRJ1nI5Vl4WxpkpeLM82j5VPKiPiLY2XZbg=; b=lEDxFP5QNZtXlaxR+rtJRRNPeOgPr53AwejoZ4mP7ei3BWdTsSt2evsQWWLqWNlKie 8ntUvpybTkpl2jzvrYxgvHjxjZaWrWi7n6rxzlGbjaprG2Cq+6ujc/kcD6uY+J+ZKIOP dwhAq4Tn6F7orDBfZ0CrrTibGDYvKUbOl0SNj7mG7Lj0AO/aGK/vye5+fHhC+rmBD33+ k2lmfzjqYRtjmrHPoqbe6BcGQpHBBC6jMzpbsVbpK266BugqxErE+6lMVNQCmtNxz6lc BSZzRYTo3Z0i//6bxY3zckwAEldXy21xNhGvcvloZcfzwDBQW+hGaO6EQQ9ROBKHJmFI ghAQ== X-Forwarded-Encrypted: i=1; AJvYcCVfcjrbsParOhtDz+xVGr3+uKlYRmE5APMB9+uNo8nk+ynIj/chst0DJnBKL3zQ4OSEw5Grv4XbVVg2@vger.kernel.org X-Gm-Message-State: AOJu0Yw6f7hiWjVbMH2gO8fHSCJ7jQWZd/Sn0TbBuiyoTDvL2X+a+apN PR9MQsmtitGqEq59a4WDavCP0CwI0DC5JVVnI6Nw0dKsRxwi1PvnV3nCWUnOmN11zNU= X-Gm-Gg: ASbGnctEb/F5I3cadJWl5kSGuIwbkAVKAs9ZeMI5OIn5wkIx91yrzMzdaRoJ3vbn1MU 7TbgtyArekKDW3eIg+palZC5VWKPoo/74u0kzGWYSgPLluDU3HzA+zfNkMPyh5lvSFqxpi7C1pI jSkGotjItBfztugETa14xKPzLkKHlOSWeupciqShsALQ5y8PLsaBGbR2nB0f/DiJEocxZOLE8BK 5EA4DF9wiGcVSeIuF7TLTU9/4BcaOamw3ZI+ger9X5h+4p4Ykgk3km2kYGYfpXLMKs0OZMvboBe UITTjPsrZXp/+PUGeZKKxNN4gJX7ectybeD/Ww16plQwmYhPivkMTdt2dWP4TfWM+86d8D2J6Cz t0z3LZSXTs47nLxPAUFjV7smCX3Tyqpk9TP11sE3azmD4qagq7bMMGwwjVsJszEw/T4ck/qDHvx NoLzW5eDJSa6cyqs2HR3H3kajco1RYE7HspkXnuFhL/9l0svAshYzGvRXUiZLjg/EWT6pG7Q== X-Google-Smtp-Source: AGHT+IGD/Uw/fgx84AFertLSvfVKmejPqlvypnP8IIzpqbGwR8abvcNYUgIYpDHVV55dLFfVQQ6myg== X-Received: by 2002:a05:6512:39c6:b0:58a:fa11:b795 with SMTP id 2adb3069b0e04-5906d87bd8cmr5059024e87.3.1760556174897; Wed, 15 Oct 2025 12:22:54 -0700 (PDT) Received: from [192.168.1.100] (91-159-24-186.elisa-laajakaista.fi. [91.159.24.186]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59092ed98d9sm5657624e87.24.2025.10.15.12.22.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Oct 2025 12:22:54 -0700 (PDT) Message-ID: <62da6efb-24d0-4a6b-9a52-c8f981f09d30@linaro.org> Date: Wed, 15 Oct 2025 22:22:53 +0300 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] media: qcom: camss: Use a macro to specify the initial buffer count To: Hangxiang Ma , Loic Poulain , Robert Foss , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Todor Tomov , Mauro Carvalho Chehab , Bryan O'Donoghue Cc: linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org References: <20251014-use-marco-to-denote-image-buffer-number-v1-1-f782e4cc622d@oss.qualcomm.com> From: Vladimir Zapolskiy In-Reply-To: <20251014-use-marco-to-denote-image-buffer-number-v1-1-f782e4cc622d@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/15/25 05:42, Hangxiang Ma wrote: > Replace the hardcoded buffer count value with a macro to enable > operating on these buffers elsewhere in the CAMSS driver based on this > count. Some of the hardware architectures require deferring the AUP and > REG update until after the CSID configuration and this macro is expected > to be useful in such scenarios. > > Signed-off-by: Hangxiang Ma > --- > This change use a global macro to specify the initial buffer count. It > meets the requirement that some hardware architectures need to defer the > AUP and REG update to CSID configuration stage. Both the commit message and the explanation above brings no clarity on the necessity of this change at all. This is a dangling useless commit, if you'd like to connect it to something meaningful, please include it into a series. > --- > drivers/media/platform/qcom/camss/camss-vfe.c | 2 +- > drivers/media/platform/qcom/camss/camss.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c b/drivers/media/platform/qcom/camss/camss-vfe.c > index 09b29ba383f1..2753c2bb6c04 100644 > --- a/drivers/media/platform/qcom/camss/camss-vfe.c > +++ b/drivers/media/platform/qcom/camss/camss-vfe.c > @@ -541,7 +541,7 @@ int vfe_enable_output_v2(struct vfe_line *line) > > ops->vfe_wm_start(vfe, output->wm_idx[0], line); > > - for (i = 0; i < 2; i++) { > + for (i = 0; i < CAMSS_INIT_BUF_COUNT; i++) { > output->buf[i] = vfe_buf_get_pending(output); > if (!output->buf[i]) > break; > diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/platform/qcom/camss/camss.h > index a70fbc78ccc3..901f84efaf7d 100644 > --- a/drivers/media/platform/qcom/camss/camss.h > +++ b/drivers/media/platform/qcom/camss/camss.h > @@ -41,6 +41,7 @@ > (to_camss_index(ptr_module, index)->dev) > > #define CAMSS_RES_MAX 17 > +#define CAMSS_INIT_BUF_COUNT 2 > > struct camss_subdev_resources { > char *regulators[CAMSS_RES_MAX]; > -- Best wishes, Vladimir