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 v1 04/14] media: qcom: camss: Pass icc bandwidth table as a platform parameter
Date: Wed, 16 Aug 2023 19:20:48 +0200	[thread overview]
Message-ID: <eaed15ca-5c0b-420e-a11e-007ef5608019@linaro.org> (raw)
In-Reply-To: <20230814162907.3878421-5-bryan.odonoghue@linaro.org>

On 14.08.2023 18:28, Bryan O'Donoghue wrote:
> Pass the bandwidth table as a platform parameter not if/else derived
> pointer to the static table.
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
>  drivers/media/platform/qcom/camss/camss.c | 29 +++++++----------------
>  drivers/media/platform/qcom/camss/camss.h |  3 ++-
>  2 files changed, 11 insertions(+), 21 deletions(-)
> 
> diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c
> index 68eb45b2c0aaa..1a195eb4298a5 100644
> --- a/drivers/media/platform/qcom/camss/camss.c
> +++ b/drivers/media/platform/qcom/camss/camss.c
> @@ -1484,21 +1484,15 @@ static int camss_configure_pd(struct camss *camss)
>  static int camss_icc_get(struct camss *camss)
>  {
>  	const struct resources_icc *icc_res;
> -	int nbr_icc_paths = 0;
>  	int i;
>  
> -	if (camss->version == CAMSS_8250) {
> -		icc_res = &icc_res_sm8250[0];
> -		nbr_icc_paths =	ICC_SM8250_COUNT;
> -	}
> +	icc_res = camss->res->icc_res;
Would initializing at declaration time fit in 100 chars?

lgtm otherwise

Konrad
 

  reply	other threads:[~2023-08-16 17:21 UTC|newest]

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

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=eaed15ca-5c0b-420e-a11e-007ef5608019@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®