Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp784054ybi; Wed, 3 Jul 2019 04:38:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi+sSpHJBx6Ylwe47igiXALa8UGYVpFWOkhS+EVzu6P1SD7PNTvPnqkD7xaf9DiDbtfZDD X-Received: by 2002:a17:90a:a410:: with SMTP id y16mr12376446pjp.62.1562153932002; Wed, 03 Jul 2019 04:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562153931; cv=none; d=google.com; s=arc-20160816; b=j0r+yNkRUXsHFRIccs6YL/6LoHHuvJcO73xqnqMfiSnp7PLstfMsGnHibxj/fXvYDK H+wpepJKoqHmOawy2lT/oJSfU0A9vv+u6VPqncroQIsSJeCWjORUH+EgLjTt0RcomXj4 R3BUcYmXve1+YCuRDBuN+Ghi8JpQH24sgb8KsDg6ohC1dZRKQtpEAuHvi0FiPpa5r7cc KwoeZCNHQW9xYwwjwER9M31vgLeuWBFBafUTlNNXH4O+iYTsfvYbHv/AT5I5mb+E6tXH baAHuS4yrZ3LZYCu2fR3YqZIoW1eIWVQPhQqfGjNuJxPoGk1chORpdtXhmoNouuDkN+a sCsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=KFEOuPfg+bzw7rxhdyHaa8obV+R17ox2gt06K+iJ0ls=; b=EwyMG6jz2LVwZX5XObnBJEftbztlkHjxRy30Md2ygDw+y7IQbSswzz6hMzfVTJtMiC 7xhVyuDE59woRvq+fLoy8/XwKJonHlOg/87cYROYbJnZUnBGkkE0DRp+IocgaKeXBcpj WLOXHC6jYbNg8dVXFpQOCOuHhg3N1TvsYZJztSaiP7aMv4HDKFg2dvwjAwNxlrqd99D8 TfpEXwy//NdkkeV0jX/gR4HU5qpSinz21cwpUgHunSrC1870qJLj/Uk+8eYq1b+7AxWI uoggp3CtCx0g9JOhlh5gRmL9o7ub9a5YxzKsGsdtfSV3OExnxC3/Mc2n4VHm9xt4R89S fqVQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si2024300plp.117.2019.07.03.04.38.35; Wed, 03 Jul 2019 04:38:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726993AbfGCLiL (ORCPT + 99 others); Wed, 3 Jul 2019 07:38:11 -0400 Received: from mga04.intel.com ([192.55.52.120]:24548 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbfGCLiK (ORCPT ); Wed, 3 Jul 2019 07:38:10 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2019 04:38:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="184728002" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by fmsmga001.fm.intel.com with ESMTP; 03 Jul 2019 04:38:08 -0700 From: Felipe Balbi To: Martin Blumenstingl Cc: "linux-usb\@vger.kernel.org" , Minas Harutyunyan , "linux-kernel\@vger.kernel.org" , linux-stable , "gregkh\@linuxfoundation.org" Subject: Re: [PATCH] usb: dwc2: use a longer AHB idle timeout in dwc2_core_reset() In-Reply-To: References: <20190620175022.29348-1-martin.blumenstingl@googlemail.com> Date: Wed, 03 Jul 2019 14:38:07 +0300 Message-ID: <87d0ir4acg.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Martin Blumenstingl writes: > On Mon, Jul 1, 2019 at 7:54 PM Martin Blumenstingl > wrote: >> >> 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. > thank you Felipe for queuing this for v5.3! > for reference, this patch is now in the usb-for-v5.3-part2 tag: [0] > > > [0] https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git/commit/?h=usb-for-v5.3-part2&id=dfc4fdebc5d62ac4e2fe5428e59b273675515fb2 I'll send pull request soon :-) -- balbi