Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2624666ybl; Mon, 20 Jan 2020 06:26:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxpnMShm083MGQH0eN7YOIrx+dyUFNwsgpN0iT12Bez1fRXpRZ1x8j6OEAuyL/SzMbxB/0D X-Received: by 2002:a05:6808:292:: with SMTP id z18mr12436177oic.131.1579530419527; Mon, 20 Jan 2020 06:26:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579530419; cv=none; d=google.com; s=arc-20160816; b=AVuRNk0H2Uo50vjBKuTDE2xU0ExADOXPwgLDJm1oShq2s2CLwemwrMHhHat5155DkQ TerX62cFmO5o50xAyK/aanRQxYl/hjW6gcnV/toORZ27Yplvls9GEky41zDZDXUE3i0v TEK5k9bHpj+jQ/Hv653Q6iY2MerTVvcCtWnEnAS/nbENkkmVpMYqK2vVC4I/TO/xmfU+ nuOADBqr3MimSEbPkknQ7zg+OjVdjv6LhpVF8ctZ6706HDV3SCWQgABy6v2KSBiSkNyN N0ZuAMr5bONitT4U0xBF303kTs+i5kt9Z4d54fesFrl5A14fnAR065oG2Sr7xndUmBTU TPbA== 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 :message-id:date:subject:cc:to:from; bh=hBraXX+dGYbOtpqb4HI7S7zdJSwa03/PU7B36fiUR+I=; b=LmY9BIdn1EH5fyh0/4Wrvl1g7NS/77oAQJ8Q093tenp0hJRBQEcu5XO7LekI6vSyVS rROgdluva6RFM7KvQUgAOk1W9IQCenU4EUFTYxHaiWU9OplBtFR3ghu1uBTOxSXyeG0G syHdkDUcBxDA05xMohhgsVTIHW6y+QwdC0/PSgeiY6/X2SrSCL5NXOwU0qNNBeGgYWZp a9Y6VHlQXZUDvgUIdZNO51/1UigIW8ZWyq89SypRUw0vzdBUXacX1XWF/rFsS+UGxsjn hXjHNauvTCfdab4Gpsu1X/EelRJhMF/nclPaxEER2v3sjiu4g+KcBrCzELdlKhlcSvSX aAUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si17031448oii.54.2020.01.20.06.26.48; Mon, 20 Jan 2020 06:26:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729273AbgATOYa (ORCPT + 99 others); Mon, 20 Jan 2020 09:24:30 -0500 Received: from mx2.suse.de ([195.135.220.15]:56868 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727048AbgATOY3 (ORCPT ); Mon, 20 Jan 2020 09:24:29 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 6D238ACA4; Mon, 20 Jan 2020 14:24:27 +0000 (UTC) From: Nicolas Saenz Julienne To: Mathias Nyman Cc: linux-rpi-kernel@lists.infradead.org, Nicolas Saenz Julienne , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: xhci: Enable LPM for VIA LABS VL805 Date: Mon, 20 Jan 2020 15:24:22 +0100 Message-Id: <20200120142422.3907-1-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This PCIe controller chip is used on the Raspberry Pi 4 and multiple adapter cards. There is no publicly available documentation for the chip, yet both the downstream RPi4 kernel and the controller cards support/advertise LPM support. Signed-off-by: Nicolas Saenz Julienne --- drivers/usb/host/xhci-pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 4917c5b033fa..c1976e98992b 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -241,6 +241,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) pdev->device == 0x3432) xhci->quirks |= XHCI_BROKEN_STREAMS; + if (pdev->vendor == PCI_VENDOR_ID_VIA && pdev->device == 0x3483) + xhci->quirks |= XHCI_LPM_SUPPORT; + if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && pdev->device == 0x1042) xhci->quirks |= XHCI_BROKEN_STREAMS; -- 2.24.1