From: Philipp Zabel <p.zabel@pengutronix.de>
To: Jack Zhu <jack.zhu@starfivetech.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Maxime Ripard <mripard@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, changhuang.liang@starfivetech.com
Subject: Re: [PATCH v1 3/5] media: cadence: Add operation on reset
Date: Mon, 15 May 2023 16:42:45 +0200 [thread overview]
Message-ID: <20230515144245.GA29284@pengutronix.de> (raw)
In-Reply-To: <20230512102637.50917-4-jack.zhu@starfivetech.com>
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"?
> + 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"?
> + 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"?
regards
Philipp
next prev parent reply other threads:[~2023-05-15 14:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-12 10:26 [PATCH v1 0/5] Add support for external dphy Jack Zhu
2023-05-12 10:26 ` [PATCH v1 1/5] media: dt-bindings: cadence-csi2rx: Convert to DT schema Jack Zhu
2023-05-12 10:26 ` [PATCH v1 2/5] media: dt-bindings: cadence-csi2rx: Add resets property Jack Zhu
2023-05-12 10:26 ` [PATCH v1 3/5] media: cadence: Add operation on reset Jack Zhu
2023-05-15 14:42 ` Philipp Zabel [this message]
2023-05-16 0:47 ` Jack Zhu
2023-05-12 10:26 ` [PATCH v1 4/5] media: cadence: Add support for external dphy Jack Zhu
2023-05-12 10:26 ` [PATCH v1 5/5] media: cadence: Add support for JH7110 SoC Jack Zhu
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=20230515144245.GA29284@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=changhuang.liang@starfivetech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jack.zhu@starfivetech.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=mripard@kernel.org \
--cc=robh+dt@kernel.org \
/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).