[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fccbdceaf64a1e50561c6e9ece46d0d0@codeaurora.org>
Date: Fri, 14 Aug 2020 14:14:53 -0700
From: Tanmay Shah <tanmay@...eaurora.org>
To: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Cc: devicetree@...r.kernel.org, airlied@...ux.ie,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org, swboyd@...omium.org,
khsieh@...eaurora.org, seanpaul@...omium.org,
abhinavk@...eaurora.org, Guenter Roeck <groeck@...omium.org>,
Vara Reddy <varar@...eaurora.org>, aravindh@...eaurora.org,
freedreno@...ts.freedesktop.org,
Chandan Uddaraju <chandanu@...eaurora.org>
Subject: Re: [Freedreno] [PATCH v10 2/5] drm/msm/dp: add displayPort driver
support
On 2020-08-14 10:56, Tanmay Shah wrote:
> On 2020-08-14 10:12, Dmitry Baryshkov wrote:
>> Hello,
>>
>> On 12/08/2020 07:42, Tanmay Shah wrote:
>>> From: Chandan Uddaraju <chandanu@...eaurora.org>
>>
>> [skipped]
>>
>>> + } else if ((dp_parser_check_prefix("ctrl", clk_name) ||
>>> + dp_parser_check_prefix("stream", clk_name)) &&
>>> + ctrl_clk_index < ctrl_clk_count) {
>>> + struct dss_clk *clk =
>>> + &ctrl_power->clk_config[ctrl_clk_index];
>>> + strlcpy(clk->clk_name, clk_name, sizeof(clk->clk_name));
>>> + ctrl_clk_index++;
>>> +
>>> + if (!strncmp(clk_name, "ctrl_link",
>>> + strlen("ctrl_link")) ||
>>> + !strncmp(clk_name, "stream_pixel",
>>> + strlen("ctrl_pixel")))
>>
>> This should be "stream_pixel", I believe. I don't like macros, but
>> most probably it would help here. Also function/brace alignment could
>> be better (sorry, it really hides the issue here).
>>
>
> Thanks for reviews and good catch!! I completely missed it when I
> renamed "ctrl_pixel".
> Use of "stream_pixel" is very limited. So, instead of macros direct
> name is used.
> Fixing function and brace alignment sounds good idea insted.
>
>>
Actually I will reuse dp_parser_check_prefix utility. It's already doing
same Job.
>
>>> + clk->type = DSS_CLK_PCLK;
>>> + else
>>> + clk->type = DSS_CLK_AHB;
>>> + }
>>> + }
> _______________________________________________
> dri-devel mailing list
> dri-devel@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
Powered by blists - more mailing lists