[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <62d1ca89-7fe2-5435-c5c6-9158c58cb97e@starfivetech.com>
Date: Tue, 16 May 2023 08:47:46 +0800
From: Jack Zhu <jack.zhu@...rfivetech.com>
To: Philipp Zabel <p.zabel@...gutronix.de>
CC: Mauro Carvalho Chehab <mchehab@...nel.org>,
Maxime Ripard <mripard@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
<linux-media@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <changhuang.liang@...rfivetech.com>
Subject: Re: [PATCH v1 3/5] media: cadence: Add operation on reset
Hi Philipp,
Thank you for your review!
On 2023/5/15 22:42, Philipp Zabel wrote:
> Hi Jack,
>
> On Fri, May 12, 2023 at 06:26:35PM +0800, Jack Zhu wrote:
> [...]
>> @@ -299,6 +312,16 @@ static int csi2rx_get_resources(struct csi2rx_priv *csi2rx,
>> return PTR_ERR(csi2rx->p_clk);
>> }
>>
>> + csi2rx->sys_rst = devm_reset_control_get_optional_exclusive(&pdev->dev,
>> + "sys_rst");
>
> This doesn't match the bindings documented in patch 2.
> Should this be "sys"?
Yes, will fix it.
>
>> + if (IS_ERR(csi2rx->sys_rst))
>> + return PTR_ERR(csi2rx->sys_rst);
>> +
>> + csi2rx->p_rst = devm_reset_control_get_optional_exclusive(&pdev->dev,
>> + "p_rst");
>
> This doesn't match the bindings documented in patch 2.
> Should this be "reg_bank"?
>
Yes, will fix it.
>> + if (IS_ERR(csi2rx->p_rst))
>> + return PTR_ERR(csi2rx->p_rst);
>> +
>> csi2rx->dphy = devm_phy_optional_get(&pdev->dev, "dphy");
>> if (IS_ERR(csi2rx->dphy)) {
>> dev_err(&pdev->dev, "Couldn't get external D-PHY\n");
>> @@ -349,14 +372,21 @@ static int csi2rx_get_resources(struct csi2rx_priv *csi2rx,
>> }
>>
>> for (i = 0; i < csi2rx->max_streams; i++) {
>> - char clk_name[16];
>> + char name[16];
>>
>> - snprintf(clk_name, sizeof(clk_name), "pixel_if%u_clk", i);
>> - csi2rx->pixel_clk[i] = devm_clk_get(&pdev->dev, clk_name);
>> + snprintf(name, sizeof(name), "pixel_if%u_clk", i);
>> + csi2rx->pixel_clk[i] = devm_clk_get(&pdev->dev, name);
>> if (IS_ERR(csi2rx->pixel_clk[i])) {
>> - dev_err(&pdev->dev, "Couldn't get clock %s\n", clk_name);
>> + dev_err(&pdev->dev, "Couldn't get clock %s\n", name);
>> return PTR_ERR(csi2rx->pixel_clk[i]);
>> }
>> +
>> + snprintf(name, sizeof(name), "pixel_if%u_rst", i);
>
> This doesn't match the bindings documented in patch 2.
> Should this be "pixel_if%u"?
>
Yes, will fix it.
regards
Jack
> regards
> Philipp
Powered by blists - more mailing lists