Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2401197ybi; Mon, 1 Jul 2019 11:21:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8JbhpKfYcTlL678Lm8YTD2WFNmY3SP8j5bkdVVg/9o4j1EULv/ZCmjExqPQBFtvvLXlmK X-Received: by 2002:a63:69c1:: with SMTP id e184mr23412650pgc.198.1562005305369; Mon, 01 Jul 2019 11:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562005305; cv=none; d=google.com; s=arc-20160816; b=Vt2YaNeQaljUNc+AizKYzuB8CfXbS/1rridlZGrHxn3YvY9DKT0pqfIAZBeqiTQyXq pdfR+apdLwNpunppSgVJNS8cCbuE0RNVr4XdIJGLMwAjuOLNE/mRTIPNfHiIEfcrYjCq 57V2a79jC49/+YvDgNZUcZhrYYmt3esDDwg+xyC7Cs9TmzvhuvFuWXWcVMQv3rF3j28d aXXDQQU+wg8wOoObHL1gqxQQjoOBSQf9PfTwBBCXyMiYRqa5V1eK7kB0Lr9E3LIAxD/v f78h4Q0/PG9xLZji97hdJRdyg1Mrt9pA/38kJCjf9k8L78PY2mqiXK5+fC7aELPkdYGa 1Nkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cz+aP0Ec5W7R8dkKPE9rRkbojDWe1GP+xoyo98aB624=; b=DV1TxxtPQ1kjBuYWlDc0/XSMDTPmGtKXZywP/pc65VnJXh05l6XBTAt2iDb/zaD2Uz Bzc28T+xYQuIs5wytc6bskbSNjr361i6Y9WVtWuCo+kwgE1bsi2gwTPMXxW16x1Km/Mo SLRKKxtZaDWvz2f4buXDmVNPW8HVdZWfUSCr3kF3E3kKGMPQNhvS8OIQmTN3dEtQ9Com HVcKMR/c+Jl73Wn6bFrB6ARE/kwb3QJiR194EYVPuDhURkJZnkOr1FWMOibAibMnpIp3 tZZiFyX3Qbj6VdxzTHTJn8SUz+wj63PvNYPp8FJzuF73L9JFtao/phIButcgM6ag61+h fIyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=aXdwDTzL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si10212495pgp.249.2019.07.01.11.21.30; Mon, 01 Jul 2019 11:21:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=aXdwDTzL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730252AbfGARy1 (ORCPT + 99 others); Mon, 1 Jul 2019 13:54:27 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:33950 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727700AbfGARy1 (ORCPT ); Mon, 1 Jul 2019 13:54:27 -0400 Received: by mail-oi1-f196.google.com with SMTP id l12so10680851oil.1; Mon, 01 Jul 2019 10:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cz+aP0Ec5W7R8dkKPE9rRkbojDWe1GP+xoyo98aB624=; b=aXdwDTzLcSPbI2Lrr8dU7FM1m4VFK1T1c/k30ysqQbij/rr8UirpNLFPsmhhefWVww EU2HLTeyyt0MxCJpyBAkP0jV7numoiQaVKUDKwMwaFn4ty/pkBbHzGiAWa+TVpZXRTiu yyqFRaYaDA/IMLAkMq7GFIYr9ahiqb9X6ejDchJS1S7z87p8fTf6rNOO0Ry7zZtHGWGf 8xrWjfXPfSioLgNokSRXnJTaSW6hed2PDPOjs6Qf0NVIdFTGxzx5EV2YPV5Ec6Fvdrvr PLA3TCqKau+kGLlfAY6Tsnjs3JLSFxnHq7bK/1L7Yu6vX0k/urwLFBceyeOOMUwTej/U BfBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cz+aP0Ec5W7R8dkKPE9rRkbojDWe1GP+xoyo98aB624=; b=eEyWmUA01zVqcS4i7SnpIsJuHzxepLENBv59JOjU1XTGYlg8akt/VLL6PBCNChRzmC jN2AGceynwNl6WqqCJpNE5Vz57TJl8de/bsbJW+2WX2hFBqVvpgpR+x2of5Ae2LUXkeg nUKBEYQsIqKaqQnzjj0Fze0AcmPm0ZTalMK2U6z4f2dIQZluE9XGI0wAneAFMfVWnQU0 JnUogYE+A3duXgNkDceR1aChKm7Pgrt8FSqnNZ4SHgrAsvak9qo+w5b2dvNXmqolyf6s QaTGpni6cpBkoP0CLcb3ItcXQ3nfKrg3N76U8UolhkmJFScp2MGZEtJPt2VowpliTCbv As5w== X-Gm-Message-State: APjAAAXAoORLfG0Fl/RWl4+g6Phv4yq4KG2NNEespOPiXEyL8HgV6eTY 5l2PVMt/ZUGAYVQBzH5JjPckauiBRFa6xJwGqqdX1w== X-Received: by 2002:a05:6808:3d6:: with SMTP id o22mr330425oie.140.1562003666003; Mon, 01 Jul 2019 10:54:26 -0700 (PDT) MIME-Version: 1.0 References: <20190620175022.29348-1-martin.blumenstingl@googlemail.com> In-Reply-To: From: Martin Blumenstingl Date: Mon, 1 Jul 2019 19:54:15 +0200 Message-ID: Subject: Re: [PATCH] usb: dwc2: use a longer AHB idle timeout in dwc2_core_reset() To: "linux-usb@vger.kernel.org" , "felipe.balbi@linux.intel.com" , "gregkh@linuxfoundation.org" Cc: Minas Harutyunyan , "linux-kernel@vger.kernel.org" , linux-stable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 7:41 AM Minas Harutyunyan wrote: > > On 6/20/2019 9:51 PM, Martin Blumenstingl wrote: > > Use a 10000us AHB idle timeout in dwc2_core_reset() and make it > > consistent with the other "wait for AHB master IDLE state" ocurrences. > > > > This fixes a problem for me where dwc2 would not want to initialize when > > updating to 4.19 on a MIPS Lantiq VRX200 SoC. dwc2 worked fine with > > 4.14. > > Testing on my board shows that it takes 180us until AHB master IDLE > > state is signalled. The very old vendor driver for this SoC (ifxhcd) > > used a 1 second timeout. > > Use the same timeout that is used everywhere when polling for > > GRSTCTL_AHBIDLE instead of using a timeout that "works for one board" > > (180us in my case) to have consistent behavior across the dwc2 driver. > > > > Cc: linux-stable # 4.19+ > > Signed-off-by: Martin Blumenstingl > > --- > > Acked-by: Minas Harutyunyan thank you for reviewing this! is there any chance we can get this fix into Linux 5.3? I know that it's too late for 5.2 so I'm fine with skipping that. Martin