From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966162AbcKKB4X (ORCPT ); Thu, 10 Nov 2016 20:56:23 -0500 Received: from mga01.intel.com ([192.55.52.88]:33454 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964913AbcKKB4W (ORCPT ); Thu, 10 Nov 2016 20:56:22 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,620,1473145200"; d="scan'208";a="190163039" Subject: Re: [PATCH 1/1] usb: xhci: handle endpoint error caused by TRB error To: Mathias Nyman References: <1478826181-15337-1-git-send-email-baolu.lu@linux.intel.com> Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org From: Lu Baolu Message-ID: <58252545.5000006@linux.intel.com> Date: Fri, 11 Nov 2016 09:56:21 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1478826181-15337-1-git-send-email-baolu.lu@linux.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/11/2016 09:03 AM, Lu Baolu wrote: > When xHCI host sees a malformed TRB in a transfer ring, > it will generate a transfer event with the completion > code set to COMP_TRB_ERR (5), and sets the endpoint > state in output endpoint context to EP_STATE_ERROR. > The endpoint enters ERROR state as the result. > > XHCI specification requires that Set TR Dequeue Pointer > Command shall be used to transition the endpoint from > Error to Stopped state. Current xHCI driver doesn't > clear this endpoint error, hence the successive URB > enqueue requests will result in error messages of > "WARN waiting for error on ep to be cleared". And the > corresponding USB device stays in unresponsive state. > > This patch enhances xHCI driver on this by printing out > the malformed TRB and clearing the endpoint Error state. > > Tested-by: Wang Wendy ^^^^^ intel.com I will correct it with a v2. Best regards, Lu Baolu