From patchwork Wed Dec 21 14:39:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Neukum X-Patchwork-Id: 88743 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp2305786qgi; Wed, 21 Dec 2016 06:46:13 -0800 (PST) X-Received: by 10.84.217.216 with SMTP id d24mr8992384plj.101.1482331573537; Wed, 21 Dec 2016 06:46:13 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y27si26933549pfj.161.2016.12.21.06.46.13; Wed, 21 Dec 2016 06:46:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760361AbcLUOqK (ORCPT + 1 other); Wed, 21 Dec 2016 09:46:10 -0500 Received: from mx2.suse.de ([195.135.220.15]:42599 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757153AbcLUOqK (ORCPT ); Wed, 21 Dec 2016 09:46:10 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 12119AAE8; Wed, 21 Dec 2016 14:46:08 +0000 (UTC) Message-ID: <1482331185.7638.14.camel@suse.com> Subject: Re: JMS56x not working reliably with uas driver From: Oliver Neukum To: George Cherian Cc: George.Cherian@cavium.com, Hans de Goede , stern@rowland.harvard.edu, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org Date: Wed, 21 Dec 2016 15:39:45 +0100 In-Reply-To: <585A79F5.7080701@caviumnetworks.com> References: <585A69E6.6040009@caviumnetworks.com> <1482320547.7638.7.camel@suse.com> <585A7073.3060904@caviumnetworks.com> <931b00cf-e273-6d07-8a99-71916376af67@redhat.com> <585A79F5.7080701@caviumnetworks.com> X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On Wed, 2016-12-21 at 18:17 +0530, George Cherian wrote: > [ 843.149653] scsi host5: uas_post_reset: alloc streams error -19 > after > reset That would mean the endpoints are gone. Which is odd. > [ 843.157268] sd 5:0:0:0: [sdb] Synchronizing SCSI cache Could you try the attached patch and do a SCSI log of the enumeration? Regards Oliver >From d4ddac88bbf9cb15e7d8638582f96d31e245f15b Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Wed, 21 Dec 2016 15:34:54 +0100 Subject: [PATCH] uas: device crashes on reset We avoid resetting it. Signed-off-by: Oliver Neukum --- drivers/usb/core/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c index d2e50a2..52483fb 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c @@ -194,6 +194,8 @@ static const struct usb_device_id usb_quirk_list[] = { { USB_DEVICE(0x1532, 0x0116), .driver_info = USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL }, + { USB_DEVICE(0x152d, 0x9561), .driver_info = USB_QUIRK_RESET }, + /* BUILDWIN Photo Frame */ { USB_DEVICE(0x1908, 0x1315), .driver_info = USB_QUIRK_HONOR_BNUMINTERFACES }, -- 2.1.4