[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <6B9FC71B-CA68-458E-B21D-677E8E2F5D91@mniewoehner.de>
Date: Fri, 4 Mar 2016 23:54:33 +0100
From: Michael Niewoehner <linux@...ewoehner.de>
To: Douglas Anderson <dianders@...omium.org>
Cc: johnyoun@...opsys.com, balbi@...nel.org,
Heiko Stuebner <heiko@...ech.de>, caesar.upstream@...il.com,
huangtao@...k-chips.com, repk@...plefau.lt, stefan.wahren@...e.com,
Julius Werner <jwerner@...omium.org>,
gregkh@...uxfoundation.org, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [RFT PATCH 2/2] Revert "usb: dwc2: Fix probe problem on bcm2835"
Am 04.03.2016 um 19:23 schrieb Douglas Anderson <dianders@...omium.org>:
> This reverts commit 192cb07f7928 ("usb: dwc2: Fix probe problem on
> bcm2835") now that we've found the root cause. See the change
> titled ("usb: dwc2: Add a 10 ms delay to dwc2_core_reset()").
>
> Signed-off-by: Douglas Anderson <dianders@...omium.org>
Tested-by: Michael Niewoehner <linux@...ewoehner.de>
> ---
> drivers/usb/dwc2/core.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c
> index 8710b2d3e770..7c4a6cf4c73a 100644
> --- a/drivers/usb/dwc2/core.c
> +++ b/drivers/usb/dwc2/core.c
> @@ -353,6 +353,12 @@ static bool dwc2_force_mode(struct dwc2_hsotg *hsotg, bool host)
> set = host ? GUSBCFG_FORCEHOSTMODE : GUSBCFG_FORCEDEVMODE;
> clear = host ? GUSBCFG_FORCEDEVMODE : GUSBCFG_FORCEHOSTMODE;
>
> + /*
> + * If the force mode bit is already set, don't set it.
> + */
> + if ((gusbcfg & set) && !(gusbcfg & clear))
> + return false;
> +
> gusbcfg &= ~clear;
> gusbcfg |= set;
> dwc2_writel(gusbcfg, hsotg->regs + GUSBCFG);
> --
> 2.7.0.rc3.207.g0ac5344
>
Powered by blists - more mailing lists