Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2461186imd; Sun, 28 Oct 2018 10:29:39 -0700 (PDT) X-Google-Smtp-Source: AJdET5dLzu8zdUc7QpbpYE2w2BjaPYTNTU55hlV7uOK3PnLjM8hHPCQOsy5z3GcczR6LgAztm06J X-Received: by 2002:a63:b30f:: with SMTP id i15mr8535395pgf.240.1540747779654; Sun, 28 Oct 2018 10:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540747779; cv=none; d=google.com; s=arc-20160816; b=GbY9lGf2g/sJgxLm/t8G5p0x8ykByTF44eXDCHdNJDl9IO9A+Rggv8egCNTwQqoT/K RcyW6JGJsCgNWgBILoimpFHkzKXRVfrdCXPMlCf8EyN0T5Xch9SvwHbsPC8pMJOBCvtK N+FdX/yvQU+dbi3ajqXlK3wZg08I/BJL3cuwfhfTEkbQwY0tOVw0nL6lCIJzgstlY5KS UP5D5qno0TjtLbcDqEV/uRDXKJJJTindvlXf126mD6/R19WmAjdHiVFrwQnpcsmbF5XL 7jlv+Br68RGbR/Tm887o4tquOtKVyqosNBIOadKBq63eHmKOCpI5cNqtiMZCKWCX0V9f FKSg== 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:in-reply-to :subject:cc:to:from:date; bh=VQa3RmZ1z/5663OOk6Bu2Q7sn5ZJqOTWodTl/Rl53Hw=; b=k7Fq8PKZ6FB9V4KegzMKU5Z3TFb2FDjZ5+Hc8nTHl/OIYr2jEp7i7Qib7Bf5XFO4v6 9Jxj3r2PPfK45kGwui88h/lGu+TxhVnyEoCV+kzRp5gp1VqgkakHOlzveAj8QXqsUau0 USCdryLskRNCZwp9qsg55fDPpnCbuLatwGA/lR5pRoum6e2pPhOMoKZbteaLNSsSCNqx +tFgsbdkCL2IBT6AylLR0mXhNKrxCTVVcz4cS53ECx50OpDKyaIGB4u4lRrNXVquVMur EYHoWF4KFBr0h0t7F3Lpr0uHptNqm17PjWDoe3BocabG1MfF4DNJqvHmJN1j7px6Ls66 Uwtw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m126-v6si4441889pfc.265.2018.10.28.10.29.24; Sun, 28 Oct 2018 10:29:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727984AbeJ2CDs (ORCPT + 99 others); Sun, 28 Oct 2018 22:03:48 -0400 Received: from netrider.rowland.org ([192.131.102.5]:50487 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727785AbeJ2CDs (ORCPT ); Sun, 28 Oct 2018 22:03:48 -0400 Received: (qmail 24232 invoked by uid 500); 28 Oct 2018 13:18:33 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 28 Oct 2018 13:18:33 -0400 Date: Sun, 28 Oct 2018 13:18:33 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: "Cherian, George" cc: "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "gregkh@linuxfoundation.org" , "mathias.nyman@intel.com" Subject: Re: [PATCH] xhci: Add quirk to workaround the errata seen on Cavium Thunder-X2 Soc In-Reply-To: <1540661892-189850-1-git-send-email-george.cherian@cavium.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 27 Oct 2018, Cherian, George wrote: > Implement workaround for ThunderX2 Errata-129 (documented in > CN99XX Known Issues" available at Cavium support site). > As per ThunderX2errata-129, USB-2.0 device may come up as USB-1.0 > If a connection to a USB-1.0 device is followed by another connection > to a USB-2.0 device, the link will come up as USB-1.0 for the USB-2.0 > device. > > Resolution: Reset the PHY after the USB1.0 device is disconnected. > The PHY reset sequence is done using private registers in XHCI register > space. After the PHY is reset we check for the PLL lock status and retry > the operation if it fails. From our tests, retrying 4 times is sufficient. > > Add a new quirk flag XHCI_RESET_PLL_ON_DISCONNECT to invoke the workaround > in handle_xhci_port_status(). Minor nitpick (for both the patch description and the code comments): USB 1.0 was never widely adopted and is not used any more. The earliest vesion of USB currently used in supported devices is USB 1.1. Likewise, there are a few devices around that support USB 2.1, not USB 2.0, but they are presumably also subject to the problem described above. I suggest you change the description and the comments to refer to USB 1 and USB 2 instead of USB 1.0 and USB 2.0, as the latter are too restrictive and misleading. Alan Stern