Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1695424pxb; Wed, 2 Feb 2022 10:23:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxziND7YHrwE/e2coo3gx4Z03Mqq0z9nx8qlzXU90WTbWF6pCWjkUNAJ9tjDSWCfffCE16 X-Received: by 2002:a65:4b82:: with SMTP id t2mr25485042pgq.607.1643826239311; Wed, 02 Feb 2022 10:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643826239; cv=none; d=google.com; s=arc-20160816; b=NvWOuQkymUc4Qelupt+4K4MNGFs7kE64E7cKNhGf6Eu0BfkeoGb6jOYNNf9V4/GDC3 6mdTFsdhwnmI6R8inP3NigfvevdWv+jo0tUSFT+0dl+NAkeHBEG9YtHRap8pyqQGSK7O //Zs9qoEvcV19SJ/Hg9qyOQyYeWuVze2Or8GnKCSvT7q4l5lR67GkTy7P0UCPKVZ+DO+ 8KxCDY3eSlwLTadMmss9m15A+VcliWjZrft5qTx3HI+gHI6SIt3amIG474YIE/owMUjV yPY1TOhKB9vxV7gEq0z2WH++r2pkYMdhm8bdJiiZgWZ2I/6FmSU8H61yX6yA3Xj4KF9l vSUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bbz+wzwRZoEIP9MW9tJl6ESo6YlLmsu7CZO3l1N3e1o=; b=yzrd2s6vvV5LpAYaAX/jD1zY/+bYaecVIvntU7DLlcodnSPonH4B1Vth/BjNAdMJ+k yrw/AijpK3erE/2EsrFiOerVOejVQY4UkNksaM1UtqRT3SwgG1df+eSLR3dCeB3fIkxR goPogfE+FznQQuz8Wp+MXllk7vqij1pIzwiI0ilJtKPgtHmq3Cx8mNDFzjBmBNIguZLC Yc5wnm98RmZb1DBmShTDeEqkMbW34M3VxSw6FLBRQ4U6UKTqnTU+V/EAJNM4006ou2u9 fidXj/EVFXLOrnSL7LUlmKjoU9/D3w3dh0d39d43ECyFGhuHFcauXBrQqm9emy5aU09L FCbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eOBEdDOk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10si23113417plr.231.2022.02.02.10.23.47; Wed, 02 Feb 2022 10:23:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eOBEdDOk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241794AbiBASRR (ORCPT + 99 others); Tue, 1 Feb 2022 13:17:17 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:50910 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235853AbiBASRH (ORCPT ); Tue, 1 Feb 2022 13:17:07 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 9C63CCE1A62; Tue, 1 Feb 2022 18:17:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ED1BC340EC; Tue, 1 Feb 2022 18:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643739423; bh=lBcROs1Daf1Jr4c7hHZCULg35d5YTTVvDnXRNlSAnuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eOBEdDOkEcbqv1OvEsP4kNTfwoDqoK2SdSFYzA+PTQ2nXW7YeLK6jvKxVOsUPI0x8 zvDbYalJn/xqJF9lFtCyLAaaxgra9UsJB7U2TWDTlHH++pCqy01MJVqesGcyKIY3FG IwH3ojByuup1CZRTwpLwb7x6ipAZ+HqUa9OGS7Ns= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, DocMAX , Alan Stern , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH 4.4 11/25] usb-storage: Add unusual-devs entry for VL817 USB-SATA bridge Date: Tue, 1 Feb 2022 19:16:35 +0100 Message-Id: <20220201180822.517937494@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220201180822.148370751@linuxfoundation.org> References: <20220201180822.148370751@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alan Stern commit 5b67b315037250a61861119683e7fcb509deea25 upstream. Two people have reported (and mentioned numerous other reports on the web) that VIA's VL817 USB-SATA bridge does not work with the uas driver. Typical log messages are: [ 3606.232149] sd 14:0:0:0: [sdg] tag#2 uas_zap_pending 0 uas-tag 1 inflight: CMD [ 3606.232154] sd 14:0:0:0: [sdg] tag#2 CDB: Write(16) 8a 00 00 00 00 00 18 0c c9 80 00 00 00 80 00 00 [ 3606.306257] usb 4-4.4: reset SuperSpeed Plus Gen 2x1 USB device number 11 using xhci_hcd [ 3606.328584] scsi host14: uas_eh_device_reset_handler success Surprisingly, the devices do seem to work okay for some other people. The cause of the differing behaviors is not known. In the hope of getting the devices to work for the most users, even at the possible cost of degraded performance for some, this patch adds an unusual_devs entry for the VL817 to block it from binding to the uas driver by default. Users will be able to override this entry by means of a module parameter, if they want. CC: Reported-by: DocMAX Reported-and-tested-by: Thomas Weißschuh Signed-off-by: Alan Stern Link: https://lore.kernel.org/r/Ye8IsK2sjlEv1rqU@rowland.harvard.edu Signed-off-by: Greg Kroah-Hartman --- drivers/usb/storage/unusual_devs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -2155,6 +2155,16 @@ UNUSUAL_DEV( 0x2027, 0xa001, 0x0000, 0x USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_euscsi_init, US_FL_SCM_MULT_TARG ), +/* + * Reported by DocMAX + * and Thomas Weißschuh + */ +UNUSUAL_DEV( 0x2109, 0x0715, 0x9999, 0x9999, + "VIA Labs, Inc.", + "VL817 SATA Bridge", + USB_SC_DEVICE, USB_PR_DEVICE, NULL, + US_FL_IGNORE_UAS), + UNUSUAL_DEV( 0x2116, 0x0320, 0x0001, 0x0001, "ST", "2A",