From: "Troy Mitchell" <troy.mitchell@linux.spacemit.com>
To: "Junzhong Pan" <panjunzhong@linux.spacemit.com>,
"Peter Chen" <peter.chen@kernel.org>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Yixun Lan" <dlan@kernel.org>, "Xu Yang" <xu.yang_2@nxp.com>,
"Peng Fan" <peng.fan@nxp.com>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>, <linux-usb@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-riscv@lists.infradead.org>, <spacemit@lists.linux.dev>,
"Troy Mitchell" <troy.mitchell@linux.spacemit.com>
Subject: Re: [PATCH 2/6] usb: chipidea: usb2: add optional reset support
Date: Mon, 07 Sep 2026 16:29:01 +0800 [thread overview]
Message-ID: <DL8XYAR1UCMY.8XJN1LP6YQPE@linux.spacemit.com> (raw)
In-Reply-To: <870CB1C672C91040+8a75565f-344c-4f1e-aa69-33585a88c8e5@linux.spacemit.com>
[-- Attachment #1: Type: text/plain, Size: 1836 bytes --]
On Thu Aug 13, 2026 at 9:39 PM +08, Junzhong Pan wrote:
> On 8/13/2026 5:55 PM, Peter Chen wrote:
>> On 26-08-12 17:26:13, Junzhong Pan wrote:
>>> The USB2 controller of SpacemiT K1 SoC requires reset support, to keep
>>> compatibility, add optional reset support.
>>>
>>> Signed-off-by: Junzhong Pan <panjunzhong@linux.spacemit.com>
>>> ---
>>> drivers/usb/chipidea/ci_hdrc_usb2.c | 8 ++++++++
>>> 1 file changed, 8 insertions(+)
>>>
>>> diff --git a/drivers/usb/chipidea/ci_hdrc_usb2.c b/drivers/usb/chipidea/ci_hdrc_usb2.c
>>> index 8ffa1e95d8e8..00d575cd2955 100644
>>> --- a/drivers/usb/chipidea/ci_hdrc_usb2.c
>>> +++ b/drivers/usb/chipidea/ci_hdrc_usb2.c
>>> @@ -12,6 +12,7 @@
>>> #include <linux/phy/phy.h>
>>> #include <linux/platform_device.h>
>>> #include <linux/property.h>
>>> +#include <linux/reset.h>
>>> #include <linux/usb/chipidea.h>
>>> #include <linux/usb/hcd.h>
>>> #include <linux/usb/ulpi.h>
>>> @@ -21,6 +22,7 @@
>>> struct ci_hdrc_usb2_priv {
>>> struct platform_device *ci_pdev;
>>> struct clk *clk;
>>> + struct reset_control *reset;
>>> };
>>>
>>> static const struct ci_hdrc_platform_data ci_default_pdata = {
>>> @@ -80,6 +82,12 @@ static int ci_hdrc_usb2_probe(struct platform_device *pdev)
>>> return ret;
>>> }
>>>
>>> + priv->reset = devm_reset_control_get_optional_exclusive_deasserted(dev, NULL);
>>> + if (IS_ERR(priv->reset)) {
>>> + ret = PTR_ERR(priv->reset);
>>> + goto clk_err;
>>> + }
>>> +
>>
>> You may update binding doc?
>>
>
> Sure, I forgot it, will do in v2.
>
> Thanks.
Is the reset required for K1? If not, no binding change is needed. I checked the
binding, and it already defines resets as an optional property.
Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
--
Troy Mitchell
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 248 bytes --]
next prev parent reply other threads:[~2026-09-07 8:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 9:26 [PATCH 0/6] Add SpacemiT K1 USB2.0 controllers support Junzhong Pan
2026-08-12 9:26 ` [PATCH 1/6] dt-bindings: usb: ci-hdrc-usb2: add spacemit,k1-usb2 compatible Junzhong Pan
2026-08-12 16:00 ` Conor Dooley
2026-08-12 9:26 ` [PATCH 2/6] usb: chipidea: usb2: add optional reset support Junzhong Pan
2026-08-13 9:55 ` Peter Chen
2026-08-13 13:39 ` Junzhong Pan
2026-09-07 8:29 ` Troy Mitchell [this message]
2026-09-08 9:42 ` Junzhong Pan
2026-08-12 9:26 ` [PATCH 3/6] usb: chipidea: usb2: add SpacemiT K1 support Junzhong Pan
2026-08-13 9:49 ` Peter Chen
2026-08-12 9:26 ` [PATCH 4/6] riscv: dts: spacemit: add USB2.0 controller nodes for K1 Junzhong Pan
2026-08-12 9:26 ` [PATCH 5/6] riscv: dts: spacemit: enable USB2.0 controllers on BananaPi F3 Junzhong Pan
2026-09-07 8:42 ` Troy Mitchell
2026-09-08 9:39 ` Junzhong Pan
2026-08-12 9:26 ` [PATCH 6/6] riscv: defconfig: enable ChipIdea USB controller support Junzhong Pan
2026-08-21 2:00 ` [PATCH 0/6] Add SpacemiT K1 USB2.0 controllers support Ze Huang
2026-08-21 3:28 ` Junzhong Pan
2026-08-21 4:17 ` Ze Huang
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=DL8XYAR1UCMY.8XJN1LP6YQPE@linux.spacemit.com \
--to=troy.mitchell@linux.spacemit.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=panjunzhong@linux.spacemit.com \
--cc=peng.fan@nxp.com \
--cc=peter.chen@kernel.org \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=spacemit@lists.linux.dev \
--cc=xu.yang_2@nxp.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®