Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp402075pxu; Tue, 1 Dec 2020 14:20:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeQGxddQ7p72YFt+YA44i7Lxi40h3KtaDO4yhPNxDmqvghZjhGo11lywxgLnszAevdLgjQ X-Received: by 2002:a50:af21:: with SMTP id g30mr5106121edd.46.1606861244267; Tue, 01 Dec 2020 14:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861244; cv=none; d=google.com; s=arc-20160816; b=FAva7ktQ+Ee+ZGo+pCDWd96Ni6fRmOD2suehLWcFGScY1xcDW6OjDfTvBu/K0soLX2 LkZ2jjpHgDTo+I/RUvdAhjTS23wDh3OaAtTM2PtH6XzEfyoidXJjPTzO6a0NtEAOkAmU Bo84jySsanpaClNhyWwM3A29GWzqy9liUcA5ntjF8gyrsd8wB7bcoG8WACE9oxan7sUa cztoW64I3lvLHkfQTtRHzkUrwNyhMiuYkUi2EOL7wshjRXkd9RR0VzN5YE4VP/ja0mEo FO7Kb3OZILHY4UJDLttyxZyWOEMAUkoaXW78Vx5+Ig1UV/rOfdsGV9k2Zqv26K69abLp rcxQ== 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=i79T6nG5qUfbvjizicKgLrx/CoZOj5lOU1hUvUwj8i4=; b=MD9U/2/aUxGYunKeNu1QScmDiodySlYlGyr3gffI9a3i7TyAIVerX+zPT3JV3j/dkV iAU3BwwygkR5eOwC2EoXohaQHfKb03uvxDtOe7BmHI78fyxj+kGEqQg7YiszgbZMLMh8 s8+JGdFcXoFwmjhnvShoanwHhnOJ9R434al7uNZZN5ari/5y3P3AJdCF/hEC53ffcyI4 jR8qwCaILxYZEa5vxo1NHtUSJiHlvEvCuLENO4mf8jwKc2gNZNHRaltFTU8xevt+ipIE HOnwqKynP8S+4bGTLUPxKw+knNvByTiwbaYC6mYqVFk8HBha+GNCwE6WK1Goo/vdddzR uXfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R1zwL5DF; 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 q17si807198ejn.294.2020.12.01.14.20.21; Tue, 01 Dec 2020 14:20:44 -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=R1zwL5DF; 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 S2388208AbgLAI7x (ORCPT + 99 others); Tue, 1 Dec 2020 03:59:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:35390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387525AbgLAI7u (ORCPT ); Tue, 1 Dec 2020 03:59:50 -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 22A83217A0; Tue, 1 Dec 2020 08:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813174; bh=nMcV0TF/rDiiyT2nMQ2/33+20aLpple7nWMURFyN7HI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R1zwL5DFFdWn8EYMxX1W+nXhyOLsWHZCOdSeErh9v9vTqBlr8MilFc7Z7v9ijcLKW UmrA1bQdlZY4qkQC/sdXDuwwYKAgPzgLMFHvaNay42SZ61mcsunOQMnsamWCkWLNoE QfHqhYfC0co397cNxDuzMD+qBPZ2e+1gMvWC7Ufs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Chalikiopoulos , Alan Stern , Sudip Mukherjee Subject: [PATCH 4.14 50/50] USB: core: Fix regression in Hercules audio card Date: Tue, 1 Dec 2020 09:53:49 +0100 Message-Id: <20201201084650.574312710@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084644.803812112@linuxfoundation.org> References: <20201201084644.803812112@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 [sudip: use usb_endpoint_blacklist and USB_QUIRK_ENDPOINT_BLACKLIST] Signed-off-by: Sudip Mukherjee 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 @@ -195,6 +195,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_BLACKLIST }, + /* Midiman M-Audio Keystation 88es */ { USB_DEVICE(0x0763, 0x0192), .driver_info = USB_QUIRK_RESET_RESUME }, @@ -351,6 +355,8 @@ static const struct usb_device_id usb_am * Matched for devices with USB_QUIRK_ENDPOINT_BLACKLIST. */ static const struct usb_device_id usb_endpoint_blacklist[] = { + { USB_DEVICE_INTERFACE_NUMBER(0x06f8, 0xb000, 5), .driver_info = 0x01 }, + { USB_DEVICE_INTERFACE_NUMBER(0x06f8, 0xb000, 5), .driver_info = 0x81 }, { } };