From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Wang Ming <machel@vivo.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
linux-media@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: opensource.kernel@vivo.com
Subject: Re: [PATCH v1] media:Fix repeated initialization
Date: Wed, 5 Jul 2023 17:10:24 +0200 [thread overview]
Message-ID: <abf11e52-c7ff-a3d3-8886-1c61d04fb599@linaro.org> (raw)
In-Reply-To: <20230705142142.3526-1-machel@vivo.com>
On 05/07/2023 16:21, Wang Ming wrote:
> If the first report returns NULL,
> there is no need to execute the
> fimc_capture_try_format() function
> again.
Few nitpicks only, as I don't know the code unfortunately:
Please wrap commit message according to Linux coding style / submission
process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching.
>
> Signed-off-by: Wang Ming <machel@vivo.com>
> ---
> .../media/platform/samsung/exynos4-is/fimc-capture.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-capture.c b/drivers/media/platform/samsung/exynos4-is/fimc-capture.c
> index a0d43bf892e6..5ce2f04afa1e 100644
> --- a/drivers/media/platform/samsung/exynos4-is/fimc-capture.c
> +++ b/drivers/media/platform/samsung/exynos4-is/fimc-capture.c
> @@ -825,10 +825,12 @@ static int fimc_pipeline_try_format(struct fimc_ctx *ctx,
> tfmt->height = mf->height;
> ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height,
> NULL, &fcc, FIMC_SD_PAD_SINK_CAM);
> - ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height,
> - NULL, &fcc, FIMC_SD_PAD_SOURCE);
> - if (ffmt && ffmt->mbus_code)
> - mf->code = ffmt->mbus_code;
> + if (ffmt) {
> + ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height,
> + NULL, &fcc, FIMC_SD_PAD_SOURCE);
This does not look aligned.
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-07-05 15:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-05 14:21 [PATCH v1] media:Fix repeated initialization Wang Ming
2023-07-05 15:10 ` Krzysztof Kozlowski [this message]
2023-07-06 12:40 ` 回复: " 王明-软件底层技术部
2023-07-19 8:04 ` Hans Verkuil
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=abf11e52-c7ff-a3d3-8886-1c61d04fb599@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=alim.akhtar@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=machel@vivo.com \
--cc=mchehab@kernel.org \
--cc=opensource.kernel@vivo.com \
--cc=s.nawrocki@samsung.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;
as well as URLs for NNTP newsgroup(s).