From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Vikram Sharma <quic_vikramsa@quicinc.com>,
rfoss@kernel.org, todor.too@gmail.com, krzk+dt@kernel.org
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel@quicinc.com
Subject: Re: [PATCH v2 1/1] media: qcom: camss: Restructure camss_link_entities
Date: Tue, 12 Nov 2024 23:34:18 +0000 [thread overview]
Message-ID: <1cefe6f0-5d08-41a4-b0c6-2291dd5781ca@linaro.org> (raw)
In-Reply-To: <20241112133846.2397017-2-quic_vikramsa@quicinc.com>
On 12/11/2024 13:38, Vikram Sharma wrote:
> Refactor the camss_link_entities function by breaking it down into
> three distinct functions. Each function will handle the linking of
> a specific entity separately, enhancing readability.
>
> Signed-off-by: Suresh Vankadara <quic_svankada@quicinc.com>
> Signed-off-by: Trishansh Bhardwaj <quic_tbhardwa@quicinc.com>
> Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
> ---
> drivers/media/platform/qcom/camss/camss-vfe.c | 6 +-
> drivers/media/platform/qcom/camss/camss.c | 196 ++++++++++++------
> drivers/media/platform/qcom/camss/camss.h | 4 +
> 3 files changed, 138 insertions(+), 68 deletions(-)
>
> diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c b/drivers/media/platform/qcom/camss/camss-vfe.c
> index 83c5a36d071f..446604cc7ef6 100644
> --- a/drivers/media/platform/qcom/camss/camss-vfe.c
> +++ b/drivers/media/platform/qcom/camss/camss-vfe.c
> @@ -1794,9 +1794,9 @@ int msm_vfe_register_entities(struct vfe_device *vfe,
> &video_out->vdev.entity, 0,
> MEDIA_LNK_FL_IMMUTABLE | MEDIA_LNK_FL_ENABLED);
> if (ret < 0) {
> - dev_err(dev, "Failed to link %s->%s entities: %d\n",
> - sd->entity.name, video_out->vdev.entity.name,
> - ret);
> + camss_link_err(vfe->camss, sd->entity.name,
> + video_out->vdev.entity.name,
> + ret);
So you're doing the right thing reusing camss_link_err here however
1. The commit log no-longer matches
2. I generally suggest patches should be as granular as possible
3. That means if you want to use camss_link_err in camss-vfe.c
and BTW I think that's, correct then
a) Refactor this to be two patches
b) First patch is about reducing the repitious string and introducing
the reduction in camss.c and camss-vfe.c
c) The second patch is about restructiring link_entities in camss.c
Basically this patch now does two things and instead of havin those two
things contained in the one patch, you should split those two things
into two separate patches.
---
bod
next prev parent reply other threads:[~2024-11-12 23:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 13:38 [PATCH v2 0/1] media: qcom: camss: Re-structure camss_link_entities Vikram Sharma
2024-11-12 13:38 ` [PATCH v2 1/1] media: qcom: camss: Restructure camss_link_entities Vikram Sharma
2024-11-12 23:34 ` Bryan O'Donoghue [this message]
2024-11-13 0:33 ` Vladimir Zapolskiy
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=1cefe6f0-5d08-41a4-b0c6-2291dd5781ca@linaro.org \
--to=bryan.odonoghue@linaro.org \
--cc=kernel@quicinc.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=quic_vikramsa@quicinc.com \
--cc=rfoss@kernel.org \
--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