Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4303855pxu; Tue, 1 Dec 2020 01:21:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxx6Lqmovdk5GTzvRXtQPIGGD74rtUfdm7Ei+nJMhWsJGkhqOxLpRvLPUAXq9kS8Vwt/W3D X-Received: by 2002:a17:906:8c7:: with SMTP id o7mr2149864eje.413.1606814517641; Tue, 01 Dec 2020 01:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606814517; cv=none; d=google.com; s=arc-20160816; b=WHeBkBogqBDqf/8clEnRFDMl3iu1pPVi53eNZEULiYFiRAuVgA7JXkxtuUy/DagHgB RY//RDGzz9tbUFBV0YNn/pTDDrF6Kw8m8vCknTpewZH7X0NzxGzd7Chv6Ol2isgE0QYn NN36dDxjWZPeTgYmx64PIlY9ML8R5Elu7yV+0BR0rKsPjVuY2DmZFQ2mT6ifyaXIRIV1 FerRFGQDpVyBzqF3XrDYhNderfR5Lb9Py3/HKnU+716EtefDAve2jpf9is6QAPMqaHYb 2qXNBDT9//F3cg/jp4REXAatLTAXWU0l/p6GqbLf8eutMO/K45EqdUPRQygKxzwWMX6e tsBA== 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=CR2T+m65yn5tJJycrbqLydN2mWk5li7dZvgSENJNAvU=; b=CXP/CyI6jXEi5mfKJ99/TMC7W57xYPqT+7hNsB4FuSFAqjyOY+6WwOMmZL7KLhsFgr vhhYL09S8tzwm1NSbbGLb5FOBJSyTZOzBacub55YhD8HEJ9Rt4Ol9WvWkUMkLf+EeV6Y dD/9Kz02MrV4nGzB7a23cLaX3p/E+9wxcdGTjP3Wv0UBjgL/9dnbdOIXcnbOOHf1p7dh zv8QDPPZoTPeqWslAhgqURearNiDAKz7PRjTwSAoVNwFfUB7TTC8mpb40Mrb4pkU9oc8 SaBP79LaTBdTiQrvcPCdDl/R8jufSMGooh3h/H3p8T6LlgUrb432F6vP9SkcVsLz5l53 YMZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MQaF7TC4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d27si548851ejt.291.2020.12.01.01.21.35; Tue, 01 Dec 2020 01:21:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MQaF7TC4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2390482AbgLAJPc (ORCPT + 99 others); Tue, 1 Dec 2020 04:15:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:53850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390400AbgLAJPE (ORCPT ); Tue, 1 Dec 2020 04:15:04 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BCAF02222A; Tue, 1 Dec 2020 09:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606814063; bh=pynIvTVwK6Jxv+hqQsB5h73aO+IfY/6ggeBfO0zHbw4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MQaF7TC4FbBLJjGWAZCJFamBI+C9B1MER7pqyWLoO01nvWIrPTOGkeX1J39vwHwDQ PR1jGdLNzCUp8P+5WDOCX8FOA0aSmxTo5i6ahf25nkd7VJsrrQWawSm0yk1jrpJmmS 9mbNVdmAH6sKp5aeLYuDQKOXko+oXCvnqgRkabAc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Chalikiopoulos , Alan Stern Subject: [PATCH 5.9 144/152] USB: core: Fix regression in Hercules audio card Date: Tue, 1 Dec 2020 09:54:19 +0100 Message-Id: <20201201084730.694007007@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084711.707195422@linuxfoundation.org> References: <20201201084711.707195422@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 184eead057cc7e803558269babc1f2cfb9113ad1 upstream. Commit 3e4f8e21c4f2 ("USB: core: fix check for duplicate endpoints") aimed to make the USB stack more reliable by detecting and skipping over endpoints that are duplicated between interfaces. This caused a regression for a Hercules audio card (reported as Bugzilla #208357), which contains such non-compliant duplications. Although the duplications are harmless, skipping the valid endpoints prevented the device from working. This patch fixes the regression by adding ENDPOINT_IGNORE quirks for the Hercules card, telling the kernel to ignore the invalid duplicate endpoints and thereby allowing the valid endpoints to be used as intended. Fixes: 3e4f8e21c4f2 ("USB: core: fix check for duplicate endpoints") CC: Reported-by: Alexander Chalikiopoulos Signed-off-by: Alan Stern Link: https://lore.kernel.org/r/20201119170040.GA576844@rowland.harvard.edu Signed-off-by: Greg Kroah-Hartman --- drivers/usb/core/quirks.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c @@ -348,6 +348,10 @@ static const struct usb_device_id usb_qu /* Guillemot Webcam Hercules Dualpix Exchange*/ { USB_DEVICE(0x06f8, 0x3005), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Guillemot Hercules DJ Console audio card (BZ 208357) */ + { USB_DEVICE(0x06f8, 0xb000), .driver_info = + USB_QUIRK_ENDPOINT_IGNORE }, + /* Midiman M-Audio Keystation 88es */ { USB_DEVICE(0x0763, 0x0192), .driver_info = USB_QUIRK_RESET_RESUME }, @@ -521,6 +525,8 @@ static const struct usb_device_id usb_am * Matched for devices with USB_QUIRK_ENDPOINT_IGNORE. */ static const struct usb_device_id usb_endpoint_ignore[] = { + { USB_DEVICE_INTERFACE_NUMBER(0x06f8, 0xb000, 5), .driver_info = 0x01 }, + { USB_DEVICE_INTERFACE_NUMBER(0x06f8, 0xb000, 5), .driver_info = 0x81 }, { USB_DEVICE_INTERFACE_NUMBER(0x0926, 0x0202, 1), .driver_info = 0x85 }, { USB_DEVICE_INTERFACE_NUMBER(0x0926, 0x0208, 1), .driver_info = 0x85 }, { }