Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4578481imd; Tue, 30 Oct 2018 04:25:08 -0700 (PDT) X-Google-Smtp-Source: AJdET5d/kqiadibUFDne6wAAoe2/YDM05bZ06Onj7OJUwZYPiAPst0Y502mCw536WxmxUfJFN1XS X-Received: by 2002:a63:f811:: with SMTP id n17mr18144958pgh.23.1540898708053; Tue, 30 Oct 2018 04:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540898708; cv=none; d=google.com; s=arc-20160816; b=eIcqwsKWN9nhF8mL57sCkZugegwecLIp53d33kscyXrrWqaMn/lftiTmoCOnMtDnm0 JWryeoErHVGfbg4iCMkbVoioGCkqbu8McrR39sfGm5ufao7K5fo12P1JgKIkeQZGu5Z4 7uN+2ySsnXtMMoGAys6ff0MpS4J+Ck5Kep5c37tmfCj3+g/2+0/HCkgaZaysGKHG+O4/ Frwn85W4Z6Xk49Cbajx3JSoHTplyYRVEI+28/SyGE9qLd5xlyyDQS5RiToijUU2+L6Uw KA1Kki4Bn+HA8t1A49S6xn5pMCrLpTfL1Sknb3h8+3PantgvRs5nuHEe2GV+Sqw0yrsI mlXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=PIG0wG2iw6FQvH25KsI+yUg0VYU6KZMR0sCzT5Lw6ng=; b=gFl30KwEX64K4MUCBc2ALD8qL/tUpNw6g2Wpb1hFjVrIXKJ1KzdBo/j9N5nEW1u7qu 56pRy7N8OpY2/HbFCKxtuWuPluj/kw5NE+NZAZ5bFIgDBtkKUsIeiRBw18AfjmQKN+j+ 3rU1U9Ne6R9+BH4NCX3zLYjBh8kMxX4KUaghZwPRRyzGsmO3CqP5raKNv/eEYAhFtQeD dMCrTdQg0MCl6r5EA8QUv9U50Vc/PPDLQJno3O2RFIBJPvgBZAnrmo5siUkGOoMQTg+1 24h3+5CokhaN4hIws4SR8RbZ5cq2jcTP+kE+3HTrUQcNQEwnnlIKXfzotre7jvDTmHgs Wh0A== 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 69-v6si14715342pft.177.2018.10.30.04.24.52; Tue, 30 Oct 2018 04:25:08 -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 S1727798AbeJ3UQO (ORCPT + 99 others); Tue, 30 Oct 2018 16:16:14 -0400 Received: from mga17.intel.com ([192.55.52.151]:57538 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbeJ3UQM (ORCPT ); Tue, 30 Oct 2018 16:16:12 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Oct 2018 04:23:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,444,1534834800"; d="scan'208";a="86735215" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.164]) ([10.237.72.164]) by orsmga006.jf.intel.com with ESMTP; 30 Oct 2018 04:23:06 -0700 Subject: Re: [PATCH v3] xhci: Add quirk to workaround the errata seen on Cavium Thunder-X2 Soc To: "Cherian, George" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" Cc: "gregkh@linuxfoundation.org" , "stern@rowland.harvard.edu" References: <1540896507-23876-1-git-send-email-george.cherian@cavium.com> From: Mathias Nyman Message-ID: Date: Tue, 30 Oct 2018 13:26:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1540896507-23876-1-git-send-email-george.cherian@cavium.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30.10.2018 12:48, 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 device may come up as USB 1 > if a connection to a USB 1 device is followed by another connection to > a USB 2 device, the link will come up as USB 1 for the USB 2 device. > > Resolution: Reset the PHY after the USB 1 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(). > > Signed-off-by: George Cherian Thanks, adding to queue -Mathias