Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp401477pxu; Tue, 1 Dec 2020 14:19:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGYoVTu7G1fA4FgFLry+ObCzZNo9ywsGu1C53umgOhPgg+aCKpbbUoOO2v0SuwNzCi2ErE X-Received: by 2002:a50:eb0a:: with SMTP id y10mr5540735edp.342.1606861188436; Tue, 01 Dec 2020 14:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861188; cv=none; d=google.com; s=arc-20160816; b=Ps0JenIC8gUofqxyAuHjfVR0oJkXdKDzJcBE+xbUqsqQvakQaWWDJNP++evAylZZoa 4yPpeXvbzytpBCSGHoGkB7i3D4pkuoXGX04/a1r+xkkLF2G6Rl+28FiD70/mFWqYBP06 2zTuy8oLHpS9bWstNRikjtOxs5v9WfXL3Acn+QKtU2iKag9Ll73iw2xi3POuq4ER1HEK AbLagAwT9svx2FklmlhO3JFn9UYvAz69htLZ3BsK+7yuLSEjcHGlk0XyD/2gsaWX/SP1 nV/0UQENY5ToksCNiD6+g6si8gvz4qILFeagSkCQ1k9XoqToXp92+3zzvz7oxDoRibZz Bhew== 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=tk5AyZACjhCKSNA5uGKMdn0Pra0EcNPD/2fhd7Svdg7diPyBga1PHDaoIRGGdXqtep NaTjFRgV9ZYu81okKgowy85MW/UxYrrTErxvpgWmktkTiR+Nb4XCTyWW0AMCZSqNamSr l4DFVfT0+fyqO2/MeMK7BuKFS9FR2CcE7duP6VfbSilL9ZsZ1ku20Rl5Xs0H/caSiGY9 0ecXib8emVaqXLEwm9q6Msg4G8zWSjjwFM0+F9iGWzOHbEriXPfP+KoOJaSl0jvMUp4J 2SzhXZyyNqcBRlstu7/PxFTAksJHyLm5MQ5465Ke/004iCjuQeTUxuyV3qIV0Rlt3JET xkqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="C1Ni/TVE"; 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 rn21si850627ejb.130.2020.12.01.14.19.26; Tue, 01 Dec 2020 14:19:48 -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="C1Ni/TVE"; 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 S2387518AbgLAIzi (ORCPT + 99 others); Tue, 1 Dec 2020 03:55:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:58390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387458AbgLAIzd (ORCPT ); Tue, 1 Dec 2020 03:55:33 -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 C5AF922241; Tue, 1 Dec 2020 08:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606812853; bh=nMcV0TF/rDiiyT2nMQ2/33+20aLpple7nWMURFyN7HI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C1Ni/TVEoJ63urWso0oTqWTB9FeeOo8EkdaFEHInK5inVdZYxFKyFb5g4gJ6nD8so l0xv48jHE+cueyNj2yaNBrrmLbIubqZzWztVBFREFt4Pja/lZ4PuRxXOSdvlBI1J0a WWKoQo1SMbDCR6wunz3RReXDXkXgCjlDUE7w4s7M= 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.4 23/24] USB: core: Fix regression in Hercules audio card Date: Tue, 1 Dec 2020 09:53:29 +0100 Message-Id: <20201201084638.920652865@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084637.754785180@linuxfoundation.org> References: <20201201084637.754785180@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 }, { } };