From: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
To: Dinh Nguyen <dinguyen@kernel.org>
Cc: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH 2/3] usb: dwc2: Add platform specific data for Intel's Agilex
Date: Tue, 1 Feb 2022 05:15:52 +0000 [thread overview]
Message-ID: <e132152f-f8f1-b458-cca9-fb1fa0d60bbb@synopsys.com> (raw)
In-Reply-To: <20220125161821.1951906-2-dinguyen@kernel.org>
On 1/25/2022 8:18 PM, Dinh Nguyen wrote:
> The DWC2 IP on the Agilex platform does not support clock-gating.
>
> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Acked-by: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
> ---
> drivers/usb/dwc2/params.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c
> index d300ae3d9274..1306f4ec788d 100644
> --- a/drivers/usb/dwc2/params.c
> +++ b/drivers/usb/dwc2/params.c
> @@ -82,6 +82,14 @@ static void dwc2_set_s3c6400_params(struct dwc2_hsotg *hsotg)
> p->phy_utmi_width = 8;
> }
>
> +static void dwc2_set_socfpga_agilex_params(struct dwc2_hsotg *hsotg)
> +{
> + struct dwc2_core_params *p = &hsotg->params;
> +
> + p->power_down = DWC2_POWER_DOWN_PARAM_NONE;
> + p->no_clock_gating = true;
> +}
> +
> static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg)
> {
> struct dwc2_core_params *p = &hsotg->params;
> @@ -239,6 +247,8 @@ const struct of_device_id dwc2_of_match_table[] = {
> .data = dwc2_set_stm32mp15_fsotg_params },
> { .compatible = "st,stm32mp15-hsotg",
> .data = dwc2_set_stm32mp15_hsotg_params },
> + { .compatible = "intel,socfpga-agilex-hsotg",
> + .data = dwc2_set_socfpga_agilex_params },
> {},
> };
> MODULE_DEVICE_TABLE(of, dwc2_of_match_table);
next prev parent reply other threads:[~2022-02-01 5:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-25 16:18 [PATCH 1/3] dt-bindings: usb: dwc2: add compatible "intel,socfpga-agilex-hsotg" Dinh Nguyen
2022-01-25 16:18 ` [PATCH 2/3] usb: dwc2: Add platform specific data for Intel's Agilex Dinh Nguyen
2022-02-01 5:15 ` Minas Harutyunyan [this message]
2022-01-25 16:18 ` [PATCH 3/3] arm64: dts: agilex: use the compatible "intel,socfpga-agilex-hsotg" Dinh Nguyen
2022-03-18 14:34 ` Krzysztof Kozlowski
2022-02-09 3:19 ` [PATCH 1/3] dt-bindings: usb: dwc2: add " Rob Herring
2022-03-18 14:40 ` Krzysztof Kozlowski
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=e132152f-f8f1-b458-cca9-fb1fa0d60bbb@synopsys.com \
--to=minas.harutyunyan@synopsys.com \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.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