Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp556447ybj; Thu, 7 May 2020 02:08:25 -0700 (PDT) X-Google-Smtp-Source: APiQypKg72xIlTsdvQNTvx8cspq9eG9v/9lTdaCblT2pN+UorfODY8IBH7LaYqLm70hgRuZJPx9c X-Received: by 2002:a50:f005:: with SMTP id r5mr10090283edl.376.1588842504903; Thu, 07 May 2020 02:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588842504; cv=none; d=google.com; s=arc-20160816; b=YIkAqFrYQeOlnNa6FyBjV1joYAdess+dTdPf0Owb+xWvUpDkv484dl4rlpJusiCEnf McFGwFo3aYQ3Rd4pRY2XTubXvvF2neMoQOUo11SmNZGB+xXuNqXiKENvmEEZZZcRaPBp 6CcsPvmfj6s7bI1JzP5Esc9XszM4qtrIe8pd3Na/aHAZ4AcgDDIakh/QncBnIiLhJalQ nuuHvUeztmSokl4ZF4LHEfOKbUInlaxM8Sn/eFCgV+lc0tF+VQ5E5dpkZTAmt6xB57TT dvAIX0E1IvDt2pcrgZbiAeTXG3heughS6CJPXhdJmOyiKY4YqIJ16aTWfM2ysW1o/2C7 YkBA== 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=zB6KCEK7TB4Ul95mU6ErFEYo41SwJ2qtyYHsKsjS6YU=; b=ox8Py4uIBTn1ihm57lP6cXB/oWLqeIPoor4V19H/LVaAZlbjnqKS7jCsZDxeSMlk85 pr/+VzBhOfJOigVom9ZrVdnU74+tWYolWC7NhrMLMFH/KS4kbZ9AuqU5j3WTmw6Nupmh 9F5b3cMHuhKEDJKLxTBENVXkTpNr0xTRBkyBNTy5Dqvn7JVNJLhhexO8h+sC0DXAc2GZ uq3NNrxkHKgZ+dYsPMzwmWsdysenEavMonw0ve0ANt5tTC6J4rSif3GoMMtfUIwZ2viB qwCu3gqwj3aLguUbf1kYAp/aWirwsNpwFMLtkXLsOdKQOhWLoRslJmI0fFnbt8mdMeq4 T6Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="JvHyL//F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si2781394edq.562.2020.05.07.02.08.01; Thu, 07 May 2020 02:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="JvHyL//F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726069AbgEGJGh (ORCPT + 99 others); Thu, 7 May 2020 05:06:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgEGJGg (ORCPT ); Thu, 7 May 2020 05:06:36 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9392CC061A10; Thu, 7 May 2020 02:06:36 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id t16so1827229plo.7; Thu, 07 May 2020 02:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zB6KCEK7TB4Ul95mU6ErFEYo41SwJ2qtyYHsKsjS6YU=; b=JvHyL//FfLIb7kDd60ruAjegFZ62Ou6EcVLY2VvHTgv+1Y1G2EwVp4P5rDaMukrd7e wpecYEDwJRT+H9HwWNSBQ2aWk14rehYzIhJqd+66vr69pGUlXj++ArvBIQyG3tZpOUEp ZdbFrtj0WVPIow8SNnefGxx41TheMz789Px3xnAK5/KnhkB31GKHiS/9C3Wue/L1U4lO dy7nO1nZdMkEmYPvlB1VqrOi92M36KZhuzG5mq1DEHro6aMkoTAxHHQX5h2DkiYiln5b CLvcUGvAar/aPRmXQF1nSTEpyPTRq6Un72AbhqVPqTX7xdz6nFM7c+6uRsCK0agMZvTz xOvQ== 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=zB6KCEK7TB4Ul95mU6ErFEYo41SwJ2qtyYHsKsjS6YU=; b=FBRI4cRSvKkt7qzMvwA0zOk4vNbFHFIf0o0hd11c2LY34AGsnjt85VwAbWnNwMwJIC miIE6k/O5Y9lnG34fBsLn3rlBVU2rkm0rhEWIexZpK6FZR04hEXhh6ae0kb5VrQ9TfkO 31t4cWz8Inx4sx/sh0gqtmMXkA4/xHP0fOzbjNjOHeqWQbMDlN6EXuUNHfVE3UQUwnD+ x+H8/0M1fgeEQhGNp5VGso7IPVXxfb6MoKw91U8np4HhZS6kVcSlfxvL5MxFnywUG7Y4 34gNQSzKIAstid613TAJUKJswQpoEhlIaxUCLid2vHlrPykr3jYC4nEuR+y4vTElFt98 QbWQ== X-Gm-Message-State: AGi0PuZnCnr94zzGj1AquSXwO2laR4LC0fmNq6zraI4U0U3AMPNAFndf FN4jmgJnHg09wUDU/CuE2gwVMV0f8+QxR9MRPh0= X-Received: by 2002:a17:902:d697:: with SMTP id v23mr12224937ply.262.1588842395893; Thu, 07 May 2020 02:06:35 -0700 (PDT) MIME-Version: 1.0 References: <20200430111258.6091-1-alcooperx@gmail.com> <20200430111258.6091-4-alcooperx@gmail.com> <20200505110036.GB93160@kroah.com> <20200507064145.GB777100@kroah.com> In-Reply-To: <20200507064145.GB777100@kroah.com> From: Andy Shevchenko Date: Thu, 7 May 2020 12:06:24 +0300 Message-ID: Subject: Re: [PATCH v6 3/4] usb: ehci: Add new EHCI driver for Broadcom STB SoC's To: Greg Kroah-Hartman Cc: Alan Cooper , ": Linux Kernel Mailing List" , Alan Stern , BCM Kernel Feedback , DTML , Krzysztof Kozlowski , USB list , Mathias Nyman , Rob Herring , Yoshihiro Shimoda , Andy Shevchenko 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 Thu, May 7, 2020 at 9:41 AM Greg Kroah-Hartman wrote: > On Thu, May 07, 2020 at 12:01:16AM +0300, Andy Shevchenko wrote: > > On Wed, May 6, 2020 at 11:23 PM Alan Cooper wrote: > > > On Tue, May 5, 2020 at 7:00 AM Greg Kroah-Hartman > > > wrote: > > > > > + /* Hook the hub control routine to work around a bug */ > > > > > > > > What bug? This feels wrong. > > > > > > The bug is explained in a comment above the ehci_brcm_hub_control() > > > routine as follows: > > > /* > > > * ehci_brcm_hub_control > > > * Intercept echi-hcd request to complete RESUME and align it to the start > > > * of the next microframe. > > > * If RESUME is complete too late in the microframe, host controller > > > * detects babble on suspended port and resets the port afterwards. > > > * This s/w workaround allows to avoid this problem. > > > * See SWLINUX-1909 for more details > > > */ > > > I'll remove the internal bug tracking reference from the comment. > > > > I guess you may leave the internal bug reference. I can tell from my > > experience that's hard to understand what was going on in the driver > > in years perspective. It will help whoever in this company have a > > chance to look after the driver. > > "internal bug references" mean nothing to the 99% of the people that can > see this. Document the heck out of what this is instead please. As far as I understand the bug is being described in the same file somewhere else, that's why internal reference *on top of explanation* would be valid. -- With Best Regards, Andy Shevchenko