Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4416327pxa; Mon, 10 Aug 2020 08:35:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaTn99qDO5hKpY5RxyjhW+sBxg3hUNiKfUUL8gq9aJ7UIpgOh5rXUXDaUX4ezyLVel4cBa X-Received: by 2002:a17:906:ccda:: with SMTP id ot26mr7159367ejb.389.1597073706299; Mon, 10 Aug 2020 08:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597073706; cv=none; d=google.com; s=arc-20160816; b=Os7cnlFbL5thKSAo6YUK0RJbsija541lQmHYGG895+rw6hcMj5d1GgONJETl15rhZu QYCO1VULksfkunv8a1V8o74wHNDD6V8a/b8zma0dPyogc3ZoAOeHT3p96Ur8U9cvngN5 TdNxRdy6XEk+5vniR5Nnn5lOrzljImknsYz17vlLjJDgAVz2GsL0DPeB3ZOIcDjqUjxi /0f91Bg+Y+3WwC0gk6hRkszo/sxylYCVkg/uzASzUEewpi02k0czNliPOgaMrM4rJwid mresVrbnpUWSEcyoKlwCoGFWAHINKeyLMrVQ1hCrAHuY+BYKEVgU8QPkN72DUnosDh1Q VZYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Je0vJ6ss0b6XhhYoj926VHfpl0kICb7ORvo8Z6Ol4mk=; b=kK+Skhsh2oz+9QwJUZnN/jnYIV2bBUk38g/f/D6bh68kS+5EvEwgQWKxNi3GOokYzk dMW7TAUBiVKemiId3Uikjm8D29Q3gv9L0Yr6RJaLtH+aZ5dXt/0sIq0iZcDQjsQt8MBW I/3HnH9RMnAIMYLaG8sc8pp7scSmpSZZmP0Zuo5awPXU6+HJJqF+vHi9KDBJVpE28UE7 hpNkVGc3Eq04kWxeftqAbEkqsxNr3vQ/JVGQrG3njHo9oZN15hdGeSynYK6iFabIIIVo frBDVrw7NggKvkS9934eswMxL5J/ztSNSoRNCLaLm/EfrPDaqT9icJrzJnkXDgVgxnUB Shhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="U/0YWbgI"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si10660626ejv.279.2020.08.10.08.34.42; Mon, 10 Aug 2020 08:35:06 -0700 (PDT) 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=@kernel.org header.s=default header.b="U/0YWbgI"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728433AbgHJP3z (ORCPT + 99 others); Mon, 10 Aug 2020 11:29:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:36482 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729021AbgHJP3x (ORCPT ); Mon, 10 Aug 2020 11:29:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 4C95322D07; Mon, 10 Aug 2020 15:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597073392; bh=TU8KcSxgf0mh/aZ/qfkuGB8IhN9MgKoxul2BZV7PuG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U/0YWbgI9Tshv7X9qRmzvzWCPalehGsgWiT4BMamrA2STMtBc6C/BITKTxgs78mMU V2Cy6hcGSMMuH1EOOJy+jVjolkW8xxmxW9i9x6SW7hReSiTdRBCPXL07ge+q8i+Iay uZ2WogZR/M6miQOc3a7D85kQ4WorhEM4xX0/s/1I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathias Nyman , Forest Crossman Subject: [PATCH 4.19 03/48] usb: xhci: define IDs for various ASMedia host controllers Date: Mon, 10 Aug 2020 17:21:25 +0200 Message-Id: <20200810151804.380935938@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200810151804.199494191@linuxfoundation.org> References: <20200810151804.199494191@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Forest Crossman commit 1841cb255da41e87bed9573915891d056f80e2e7 upstream. Not all ASMedia host controllers have a device ID that matches its part number. #define some of these IDs to make it clearer at a glance which chips require what quirks. Acked-by: Mathias Nyman Signed-off-by: Forest Crossman Link: https://lore.kernel.org/r/20200728042408.180529-2-cyrozap@gmail.com Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci-pci.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -47,7 +47,9 @@ #define PCI_DEVICE_ID_AMD_PROMONTORYA_3 0x43ba #define PCI_DEVICE_ID_AMD_PROMONTORYA_2 0x43bb #define PCI_DEVICE_ID_AMD_PROMONTORYA_1 0x43bc +#define PCI_DEVICE_ID_ASMEDIA_1042_XHCI 0x1042 #define PCI_DEVICE_ID_ASMEDIA_1042A_XHCI 0x1142 +#define PCI_DEVICE_ID_ASMEDIA_2142_XHCI 0x2142 static const char hcd_name[] = "xhci_hcd"; @@ -226,13 +228,13 @@ static void xhci_pci_quirks(struct devic xhci->quirks |= XHCI_BROKEN_STREAMS; if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && - pdev->device == 0x1042) + pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) xhci->quirks |= XHCI_BROKEN_STREAMS; if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && - pdev->device == 0x1142) + pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) xhci->quirks |= XHCI_TRUST_TX_LENGTH; if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && - pdev->device == 0x2142) + pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI) xhci->quirks |= XHCI_NO_64BIT_SUPPORT; if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&