From: Krzysztof Kozlowski <krzk@kernel.org>
To: "Csókás Bence" <csokas.bence@prolan.hu>
Cc: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
Mesih Kilinc <mesihkilinc@gmail.com>,
Vinod Koul <vkoul@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Philipp Zabel <p.zabel@pengutronix.de>
Subject: Re: [PATCH v2 02/10] dma-engine: sun4i: Add has_reset option to quirk
Date: Mon, 28 Oct 2024 09:08:33 +0100 [thread overview]
Message-ID: <5fa06b0c-a420-41a4-97ce-b6e5055ab397@kernel.org> (raw)
In-Reply-To: <b74dafed-197a-4644-a546-54c7a1639484@prolan.hu>
On 28/10/2024 08:37, Csókás Bence wrote:
> Hi,
>
> On 2024. 10. 27. 21:42, Krzysztof Kozlowski wrote:
>> On Sun, Oct 27, 2024 at 10:14:32AM +0100, Csókás, Bence wrote:
>>> From: Mesih Kilinc <mesihkilinc@gmail.com>
>>>
>>> Allwinner suniv F1C100s has a reset bit for DMA in CCU. Sun4i do not
>>> has this bit but in order to support suniv we need to add it. So add
>>> support for reset bit.
>>>
>>> static struct sun4i_dma_dev *to_sun4i_dma_dev(struct dma_device *dev)
>>> @@ -1215,6 +1218,15 @@ static int sun4i_dma_probe(struct platform_device *pdev)
>>> return PTR_ERR(priv->clk);
>>> }
>>>
>>> + if (priv->cfg->has_reset) {
>>> + priv->rst = devm_reset_control_get_exclusive(&pdev->dev,
>>> + NULL);
>>> + if (IS_ERR(priv->rst)) {
>>> + dev_err_probe(&pdev->dev, "Failed to get reset control\n");
>>
>> syntax is: return dev_err_probe()
>>
>> Best regards,
>> Krzysztof
>
> Thanks! And regarding v3 of this patch, I have `clk_disable_unprepare()`
No, you do not. Read your code correctly.
+ dev_err_probe(&pdev->dev, "Failed to get reset control\n");
+ return PTR_ERR(priv->rst);
Where is here clk_disable_unprepare()?
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-10-28 8:11 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-27 9:14 [PATCH v2 01/10] dma-engine: sun4i: Add a quirk to support different chips Csókás, Bence
2024-10-27 9:14 ` [PATCH v2 02/10] dma-engine: sun4i: Add has_reset option to quirk Csókás, Bence
2024-10-27 18:03 ` Csókás Bence
2024-10-27 18:08 ` [PATCH v3 " Csókás, Bence
2024-10-27 20:43 ` Krzysztof Kozlowski
2024-10-28 7:31 ` Csókás Bence
2024-10-28 8:11 ` Krzysztof Kozlowski
2024-10-27 19:12 ` [PATCH v2 " kernel test robot
2024-10-27 20:05 ` kernel test robot
2024-10-27 20:42 ` Krzysztof Kozlowski
2024-10-28 7:37 ` Csókás Bence
2024-10-28 7:44 ` Chen-Yu Tsai
2024-10-28 13:12 ` Csókás Bence
2024-10-28 16:22 ` Csókás Bence
2024-10-28 8:08 ` Krzysztof Kozlowski [this message]
2024-10-27 9:14 ` [PATCH v2 03/10] dt-bindings: dmaengine: Add Allwinner suniv F1C100s DMA Csókás, Bence
2024-10-27 20:40 ` Krzysztof Kozlowski
2024-10-27 9:14 ` [PATCH v2 04/10] dma-engine: sun4i: Add support for Allwinner suniv F1C100s Csókás, Bence
2024-10-27 9:14 ` [PATCH v2 05/10] ARM: dts: suniv: f1c100s: Add support for DMA Csókás, Bence
2024-10-27 9:14 ` [PATCH v2 06/10] ASoC: sun4i-codec: Add DMA Max Burst field Csókás, Bence
2024-10-27 9:14 ` [PATCH v2 07/10] dt-bindings: sound: Add Allwinner suniv F1C100s Audio Codec Csókás, Bence
2024-10-27 9:14 ` [PATCH v2 08/10] ASoC: sun4i-codec: Add support for Allwinner suniv F1C100s Csókás, Bence
2024-10-27 9:14 ` [PATCH v2 09/10] ARM: dts: suniv: f1c100s: Add support for Audio Codec Csókás, Bence
2024-10-27 9:14 ` [PATCH v2 10/10] ARM: dts: suniv: f1c100s: Activate Audio Codec for Lichee Pi Nano Csókás, Bence
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=5fa06b0c-a420-41a4-97ce-b6e5055ab397@kernel.org \
--to=krzk@kernel.org \
--cc=csokas.bence@prolan.hu \
--cc=dmaengine@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mesihkilinc@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=samuel@sholland.org \
--cc=vkoul@kernel.org \
--cc=wens@csie.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).