mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
	rfoss@kernel.org, todor.too@gmail.com, agross@kernel.org,
	andersson@kernel.org, mchehab@kernel.org,
	hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com,
	sakari.ailus@linux.intel.com, andrey.konovalov@linaro.org
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 05/13] media: qcom: camss: Pass line_num from compat resources
Date: Fri, 18 Aug 2023 14:27:19 +0200	[thread overview]
Message-ID: <f88bd7aa-5421-4cca-967e-70efbaa121f4@linaro.org> (raw)
In-Reply-To: <20230817143812.677554-6-bryan.odonoghue@linaro.org>

On 17.08.2023 16:38, Bryan O'Donoghue wrote:
> line_num indicates the number of RDI - raw data interface channels which
> are associated with a given IFE/VFE - image/video front end.
> 
> On several SoCs the RDI number is not static for each VFE - for example
> on sm8250 VFE Lite has four RDIs where regular VFE has three.
> 
> Assigning line_num statically in the subdev_init() phase initialises
> each VFE to the lower number, meaning in practical terms that we are
> lobbing off one RDI on some VFEs.
> 
> Interrupt handling uses static for (i = RDI0; i < RDI2; i++) {} in some
> of our VFE blocks but this can't work for situations where we have a
> mixture of VFE @ 3 RDI and VFE-lite @ 4 RDI blocks.
> 
> First step to remediate is to pass line_num from a compat string
> controlled data-structure and do so on a per-VFE basis.
> 
> Later patches will assign the correct number of RDI blocks per VFE.
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
[...]

>  		.reg = { "vfe0" },
> -		.interrupt = { "vfe0" }
> +		.interrupt = { "vfe0" },
> +		.line_num = VFE_LINE_NUM_GEN1,
If you add the comma at the end of .interrupt in the patch that introduced
it, this diff will be more readable

Other than that:

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

  reply	other threads:[~2023-08-18 12:28 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-17 14:37 [PATCH v2 00/13] media: qcom: camss: Add parameter passing to remove several outstanding bugs Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 01/13] media: qcom: camss: Amalgamate struct resource with struct resource_ispif Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 02/13] media: qcom: camss: Start to move to module compat matched resources Bryan O'Donoghue
2023-08-18 12:22   ` Konrad Dybcio
2023-08-17 14:38 ` [PATCH v2 03/13] media: qcom: camss: Pass icc bandwidth table as a platform parameter Bryan O'Donoghue
2023-08-18 12:22   ` Konrad Dybcio
2023-08-17 14:38 ` [PATCH v2 04/13] media: qcom: camss: Pass remainder of variables as resources Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 05/13] media: qcom: camss: Pass line_num from compat resources Bryan O'Donoghue
2023-08-18 12:27   ` Konrad Dybcio [this message]
2023-08-17 14:38 ` [PATCH v2 06/13] media: qcom: camss: Assign the correct number of RDIs per VFE Bryan O'Donoghue
2023-08-18 12:26   ` Konrad Dybcio
2023-08-17 14:38 ` [PATCH v2 07/13] media: qcom: camss: Use >= CAMSS_SDM845 for vfe_get/vfe_put Bryan O'Donoghue
2023-08-18 12:28   ` Konrad Dybcio
2023-08-18 12:29     ` Konrad Dybcio
2023-08-19 14:56       ` Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 08/13] media: qcom: camss: Untangle if/else spaghetti in camss Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 09/13] media: qcom: camss: Improve error printout on icc_get fail Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 10/13] media: qcom: camss: Allow clocks vfeN vfe_liteN or vfe_lite Bryan O'Donoghue
2023-08-18 12:30   ` Konrad Dybcio
2023-08-19 14:49     ` Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 11/13] media: qcom: camss: Functionally decompose CSIPHY clock lookups Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 12/13] media: qcom: camss: Add support for setting CSIPHY clock name csiphyX Bryan O'Donoghue
2023-08-18 12:32   ` Konrad Dybcio
2023-08-19 14:21     ` Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 13/13] media: qcom: camss: Support RDI3 for VFE 17x Bryan O'Donoghue
2023-08-18 12:32   ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f88bd7aa-5421-4cca-967e-70efbaa121f4@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=andrey.konovalov@linaro.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=rfoss@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=todor.too@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®