Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp618546ybi; Wed, 3 Jul 2019 02:02:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFLDiLUlUvwWlIvo7Y9yUVZ27qq8lYtfhzKp8gOzjQsgZqxpUWyC9TiBAbitVBF02pPax3 X-Received: by 2002:a17:902:36c:: with SMTP id 99mr14031614pld.200.1562144525336; Wed, 03 Jul 2019 02:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562144525; cv=none; d=google.com; s=arc-20160816; b=HXOdeqUrXMPhvUD3wT7dhYSA/3FWEyGEztcgy1qDmd1/zwDAJ62a79Ka9xFXTSRAX9 bPEyX5cvzSNqW0QwftRrgnYNsXDb37PChvOM4Y1odiR+GbUf6CqE7q3U0Dl0kMd0KbW9 JaP0OfzGbgeZFnHou05QxbK38/xqHZJSXK23dk16uJ0AhIFhKX7Tbp+iQaQVBFSaA5Or GFxoBF7dhl0+Pxnb4MgZQQBVANL7kYsoQzRUz/9aQi3h53xIh1/JcIZp+Qy1W0vVs+8D Q/s7j0GOqS+DdJ2KzX6Kn1jV2Rc2VQ/rttVoZERL2kJSIsws/0d6lJE8/gm/pN6NKVA+ lPPw== 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=Nqsl7mw8i2F0KpVu3YClsX9awvB+a3f/6kMjL+tSEX0=; b=xgO6gPGZVpbg+eB96pYH2J0y4F2bBeFf0bprPSvfo1+3Uu8wtLRsykN1fRFhDRZthu ZAHNTfYyEZ8p3Gy/uLUEDJpZoijMnEqk/1Pd/jeo5x0pd+LklATYcP4DEMi2BMmxlEjj QyXdkCcCWaCiIh97xP7nRs4jj3gvo8XtQXDJcKY9ozUqJhJNc2/FT8ESX0zZlagk2drJ L/Gk6sbzDb71iG4oQr+OWwJ7HeY5XC9NIItjuFKWKYiEnpibOnuU2XNQfo/jnIuLbiTE q2EpBaVSFa8ZW9BprM0BqZoZ6P0wmNrmrjvCUUAgvuzPiDMqmIQc8gEDtdKTztcs2Sh8 SUCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=NBlReOsC; 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 z24si1740272plo.159.2019.07.03.02.01.49; Wed, 03 Jul 2019 02:02:05 -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=NBlReOsC; 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 S1727241AbfGCJBX (ORCPT + 99 others); Wed, 3 Jul 2019 05:01:23 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:43404 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727197AbfGCJBW (ORCPT ); Wed, 3 Jul 2019 05:01:22 -0400 Received: by mail-ot1-f65.google.com with SMTP id q10so1538654otk.10; Wed, 03 Jul 2019 02:01:21 -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=Nqsl7mw8i2F0KpVu3YClsX9awvB+a3f/6kMjL+tSEX0=; b=NBlReOsCEysqP0tKzR7+2SoIMgPZQTbMxjMN3O689cupA+zJC9X7NQ9JzYy95V7Zth khffgZXpyEMVM9zQmRz9cELHlokp1YbTApLv0wpoXlMIcymKqHW183DDIzGRb/9w7Eds QDyARb5iMwDqaKh7m8vX0dkpF+XaJvTBDxFerSPzoZa0Gtnt0srZuDrTT9q6cBr45SCe F8ec5gQqYMTm0jd/rVyPy2xD96AkVQXxthY83d+xzkJoVG/W01+yvxMG1aIdjSopExuN VzXRIhGajp86xxbkNMiSKFJ6G0U3OS1Ncv5k71aGEdus+ltgEb7BfANujqZwT2nKNIeB tGjQ== 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=Nqsl7mw8i2F0KpVu3YClsX9awvB+a3f/6kMjL+tSEX0=; b=tAGSAqRlQs/5dXLBvu1Sqcdh0LdjKBghXrIU4GfGy1TuernubL7xiXI0FYWUJBjyxd tCfm7PTulBd3arRNHaiSmBVXgLg4bRruZ9pTLSib9lvPlWKsdqjsd5hPKk4YmlK/A2lw 2VRrJZyIOZZPXNqc7JQsbyBCI3LAfFcVWkoQMdT0blc35ayRrD8B7Iy6MRM3hZraxliG b0QVNJhDQAhAOeuEuSsbwor4uj3daGqteRzKa1lbvNDVyYDv+b9DaqibiIXCeqfhOCYE Tho0HRRvgBoV9+tF4ObcMdxy31U5GwvcnY0Myh6wDS9ZmTNSJbDMcP1tQoxEkVj+6MDC dIiw== X-Gm-Message-State: APjAAAWR+iJCpQuJrURwkGfa6p0uV9G8zStj0iitkGu358ZrYt4MmhhG GOlgA5nfz/YFsvBR1LeYpnfiooRTczcLJP3/qSw= X-Received: by 2002:a9d:226c:: with SMTP id o99mr27126789ota.42.1562144481370; Wed, 03 Jul 2019 02:01:21 -0700 (PDT) MIME-Version: 1.0 References: <20190620175022.29348-1-martin.blumenstingl@googlemail.com> In-Reply-To: From: Martin Blumenstingl Date: Wed, 3 Jul 2019 11:01:10 +0200 Message-ID: Subject: Re: [PATCH] usb: dwc2: use a longer AHB idle timeout in dwc2_core_reset() To: "felipe.balbi@linux.intel.com" Cc: "linux-usb@vger.kernel.org" , Minas Harutyunyan , "linux-kernel@vger.kernel.org" , linux-stable , "gregkh@linuxfoundation.org" 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, 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