From: Dmitry Osipenko <dmitry.osipenko@collabora.com>
To: Hans Verkuil <hverkuil@xs4all.nl>,
Dan Carpenter <dan.carpenter@linaro.org>
Cc: Shreeya Patel <shreeya.patel@collabora.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Dingxian Wen <shawn.wen@rock-chips.com>,
linux-media@vger.kernel.org, kernel@collabora.com,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH next] media: synopsys: hdmirx: Fix signedness bug in hdmirx_parse_dt()
Date: Fri, 7 Mar 2025 13:00:49 +0300 [thread overview]
Message-ID: <47f84b59-0ddb-4386-bc8c-2752d240fdde@collabora.com> (raw)
In-Reply-To: <a4f08c9c-b74a-486f-915d-6b0e06e22d7b@xs4all.nl>
On 3/7/25 12:58, Hans Verkuil wrote:
> On 07/03/2025 10:47, Dmitry Osipenko wrote:
>> On 3/7/25 12:45, Dan Carpenter wrote:
>>> On Fri, Mar 07, 2025 at 12:36:47PM +0300, Dmitry Osipenko wrote:
>>>> On 3/7/25 12:30, Dan Carpenter wrote:
>>>>> diff --git a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
>>>>> index 4ffc86ad6c35..e0d3fed87a92 100644
>>>>> --- a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
>>>>> +++ b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
>>>>> @@ -154,7 +154,7 @@ struct snps_hdmirx_dev {
>>>>> bool hpd_trigger_level_high;
>>>>> bool tmds_clk_ratio;
>>>>> bool plugged;
>>>>> - u32 num_clks;
>>>>> + int num_clks;
>>>>> u32 edid_blocks_written;
>>>>> u32 cur_fmt_fourcc;
>>>>> u32 color_depth;
>>>>
>>>> Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
>>>>
>>>> Would be also good to return the original error code. There is no need
>>>> to check for the < 1 clock, it should be the < 0 check. Can be done in a
>>>> separate patch later. Thanks for the fix!
>>>
>>> I'm not very familiar with th edevm_clk_bulk_get_all() function and it's
>>> not documented. But clk_bulk_get_all() does return zero, so I can see why
>>> people would be confused.
>>
>> We will take care of it, thanks again.
>>
>
> I'm confused. Is Dan's patch correct or is more work needed? If more work is
> needed, then I prefer to have a single patch correcting the devm_clk_bulk_get_all()
> handling.
Dan's patch is good, please merge it.
Propagation of original error code that I said about will be additional
improvement.
--
Best regards,
Dmitry
prev parent reply other threads:[~2025-03-07 10:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 9:30 Dan Carpenter
2025-03-07 9:36 ` Dmitry Osipenko
2025-03-07 9:45 ` Dan Carpenter
2025-03-07 9:47 ` Dmitry Osipenko
2025-03-07 9:58 ` Hans Verkuil
2025-03-07 10:00 ` Dmitry Osipenko [this message]
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=47f84b59-0ddb-4386-bc8c-2752d240fdde@collabora.com \
--to=dmitry.osipenko@collabora.com \
--cc=dan.carpenter@linaro.org \
--cc=hverkuil@xs4all.nl \
--cc=kernel-janitors@vger.kernel.org \
--cc=kernel@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=shawn.wen@rock-chips.com \
--cc=shreeya.patel@collabora.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®