lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <BN6PR1201MB0082A4A0ACAEB63F6E6F37DDA72D0@BN6PR1201MB0082.namprd12.prod.outlook.com>
Date:   Tue, 9 Apr 2019 09:31:32 +0000
From:   Minas Harutyunyan <minas.harutyunyan@...opsys.com>
To:     Neil Armstrong <narmstrong@...libre.com>,
        "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
        "minas.harutyunyan@...opsys.com" <minas.harutyunyan@...opsys.com>,
        "balbi@...nel.org" <balbi@...nel.org>,
        "kishon@...com" <kishon@...com>
CC:     "linux-amlogic@...ts.infradead.org" 
        <linux-amlogic@...ts.infradead.org>,
        "linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
        "linux-arm-kernel@...ts.infradead.org" 
        <linux-arm-kernel@...ts.infradead.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 7/8] usb: dwc2: Add Amlogic G12A DWC2 Params

> This patchs sets the params for the DWC2 Controller found in the Amlogic G12A SoC family.
> 
> It mainly sets the settings reported incorrect by the driver, leaving the remaining detected automatically by the driver and provided by the DT node.
> 
> Signed-off-by: Neil Armstrong <narmstrong@...libre.com>

Acked-by: Minas Harutyunyan <hminas@...opsys.com>

> ---
>  drivers/usb/dwc2/params.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 24ff5f21cb25..442113246cba 100644
> --- a/drivers/usb/dwc2/params.c
> +++ b/drivers/usb/dwc2/params.c
> @@ -121,6 +121,16 @@ static void dwc2_set_amlogic_params(struct dwc2_hsotg *hsotg)
>  	p->power_down = DWC2_POWER_DOWN_PARAM_NONE;  }
>  
> +static void dwc2_set_amlogic_g12a_params(struct dwc2_hsotg *hsotg) {
> +	struct dwc2_core_params *p = &hsotg->params;
> +
> +	p->lpm = false;
> +	p->lpm_clock_gating = false;
> +	p->besl = false;
> +	p->hird_threshold_en = false;
> +}
> +
>  static void dwc2_set_amcc_params(struct dwc2_hsotg *hsotg)  {
>  	struct dwc2_core_params *p = &hsotg->params; @@ -167,6 +177,8 @@ const struct of_device_id dwc2_of_match_table[] = {
>  	  .data = dwc2_set_amlogic_params },
>  	{ .compatible = "amlogic,meson-gxbb-usb",
>  	  .data = dwc2_set_amlogic_params },
> +	{ .compatible = "amlogic,meson-g12a-usb",
> +	  .data = dwc2_set_amlogic_g12a_params },
>  	{ .compatible = "amcc,dwc-otg", .data = dwc2_set_amcc_params },
>  	{ .compatible = "st,stm32f4x9-fsotg",
>  	  .data = dwc2_set_stm32f4x9_fsotg_params },
> --
> 2.20.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ