Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp408741pxu; Tue, 1 Dec 2020 14:32:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXHTplLvm3I52D/S4BdUpTCfQNQ8Nom00elJapVaTuwu3QXx1fpPtrXS+ll9y1mkL9FV3X X-Received: by 2002:a17:906:7016:: with SMTP id n22mr5073788ejj.402.1606861927578; Tue, 01 Dec 2020 14:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861927; cv=none; d=google.com; s=arc-20160816; b=BGbNYJ7mOTeGgMBjDev/WsHj+j50R2UfL5hgaMfD8NYqR56cr+yZYE5GmTswzNo6ya q3vvT3qFhiZAnUu4GjsMkPmKcMyXQVjmgZR+PndVXS4vzmXq+fIyAPprfPD6aNuovMkW fqIQZe0r+Lbcr0I2pKq0vPTgwW+c0qet+NhTThmJoh2S9T/zJbYtSWLZMpe8wus/e43p Ja7fITgxkvWx3sFlRcUXSRceEvUvm/KtCK/6rEL/L2Vvv9Q8P7BMVtUvR6sxAJm09//f jPABDpF0uIAf0FXV0psLH11uG+rTItBZy2HP8bCrhLbPte6EBe3IAY5Spmwok07cboMg FNVw== 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=7hWyNGXuSraXGc2XyvTZBDCx4P6NjXg9/tJwvP7H4D8=; b=h0hPA3KmAMeFsfP+GTPQcswUhBhPDbNOsqxzNNJ2kbwB7dcGZQ47SAeC5XJaMIYbux Pljf5k32PkQg0YetcVRY29yAQKNGvKArC0+7ibk5Aqgoyu32ZgnJi0Uau9B/OLI5rfbw CHV9JcEkc+WSWOX+Zq+Jr1VTw17ZDb8eU3jI6TXMzQSKl2JMcThPykhm0M55Tq4K25VO 4aWfFVb7xsbivAuz9L9000cwgd1gh3SPo2CDpCPM78JK3E73SbY1+WP7y43BfCCqBdHv 7usjaPh3Xkxu5is9s3D4u627OUNXXCiiRArP5mdanoEKoZ/ivdcU6ww8beDBKHWJMltK oKbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HSXvTH0a; 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 l20si790242ejn.671.2020.12.01.14.31.44; Tue, 01 Dec 2020 14:32:07 -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=HSXvTH0a; 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 S1729460AbgLAJXA (ORCPT + 99 others); Tue, 1 Dec 2020 04:23:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:43648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389118AbgLAJHE (ORCPT ); Tue, 1 Dec 2020 04:07: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 C5F652067D; Tue, 1 Dec 2020 09:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813608; bh=YzXtEo56Ux0ugtyP4gSSkJ8sPROLpbO729eQ48puBqM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HSXvTH0ablDx+PtD+3O/PYUu07AaLEaPEh3TguInAJ1zPMMkk0yY4PIyfLFS5LWRG 79HuhOQk9NTL8kJS7qOtWWaHxoec9gX5W5/Qblqi6Kob3YXGNwseD3vkVG75mMlYq7 pvioTOCIlFfSz+8BdiDpCcqXODAp+FaqBrMZPpfI= 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 5.4 90/98] USB: core: Fix regression in Hercules audio card Date: Tue, 1 Dec 2020 09:54:07 +0100 Message-Id: <20201201084659.490281066@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084652.827177826@linuxfoundation.org> References: <20201201084652.827177826@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 @@ -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_BLACKLIST }, + /* Midiman M-Audio Keystation 88es */ { USB_DEVICE(0x0763, 0x0192), .driver_info = USB_QUIRK_RESET_RESUME }, @@ -525,6 +529,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 }, { USB_DEVICE_INTERFACE_NUMBER(0x0926, 0x0202, 1), .driver_info = 0x85 }, { USB_DEVICE_INTERFACE_NUMBER(0x0926, 0x0208, 1), .driver_info = 0x85 }, { }