Received: by 10.213.65.68 with SMTP id h4csp895063imn; Wed, 14 Mar 2018 03:31:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELtsyF6r9B31hsijFo027zJsuctDy+QmugG4gh8qguQWh/qHwScY841FIylbBHetNsVrYhth X-Received: by 2002:a17:902:6a17:: with SMTP id m23-v6mr3577179plk.342.1521023487129; Wed, 14 Mar 2018 03:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521023487; cv=none; d=google.com; s=arc-20160816; b=cvxifcBcPZvNJvrr/ov7Bh1Dt/lHyd7IL7BvRTpnDOAYXsmuHHelKv+f5lT2AweY+9 be1hQ9gOOcRJt1OaXrb7bmYyHvH8WZvPSQBUD8h3PXC2YgnGmCmAclETH5sLqegVtUpD r7rh4LopYGPGMxpSdjpqZLBqTycz6ZpVaqCmeZT1VScT2GRim8LH+dVgyddsp5k05le/ Xg1XSE3N20+NMjZBBZu7CsaYKJ3NMGE9AybCatjtwdUxAPfYLehaljWnQoNryCl+6r0V EqmSAm0r9Z583VK7EhREIQwxIZ+0WH5UksYpkZHU6KU9z8CuqwgUg5HP6dbNo3znZmHy VYBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=mQozJP0Id94Wn7dEft/1tXhK0mFwc8jXg5l5+AIp/xc=; b=H8oEmrW7c6CZvQyewQfNYNfOxwwgbSucFFi/JOzlsC1djmwLuHei4KAZ3YH44+tbUo YSSlVGCDv+PCqLaWUBA8FiE5yXF59i24DwN8WiBFOSkTGKLlW1api8XdRQe823+U8i14 qaEIK/mqSj+01rBHBVrhcvXs0HODeXk8msjS/JuRzA1KIqbzCbfbA73MS84sSAQLIt3M /1nBNWzjfMoBSxghNcmxIzf8TgIHV4pE40VJLklZZskpCAP+pbkH0fUrPsRfzNVRZfBT 9EClM/6TuKhmx56vXH2+HxsbrnP9VwqhQSRjFRH4EYFOKgWWNOJAI1JZVrx6VJjAo8yS iosw== 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 i33-v6si1764479pld.212.2018.03.14.03.31.12; Wed, 14 Mar 2018 03:31:27 -0700 (PDT) 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 S1751660AbeCNK3z (ORCPT + 99 others); Wed, 14 Mar 2018 06:29:55 -0400 Received: from relay12.alfahosting-server.de ([109.237.142.232]:6629 "EHLO relay12.alfahosting-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751559AbeCNK3x (ORCPT ); Wed, 14 Mar 2018 06:29:53 -0400 Received: by relay01.alfahosting-server.de (Postfix, from userid 1001) id 152B132C1BF2; Wed, 14 Mar 2018 11:29:52 +0100 (CET) X-Spam-DCC: : X-Spam-Level: X-Spam-Status: No, score=-1000.0 required=7.0 tests=BAYES_50,D_SENT_WITH_SASL autolearn=disabled version=3.2.5 Received: from alfa3028.alfahosting-server.de (alfa3028.alfahosting-server.de [109.237.138.38]) by relay01.alfahosting-server.de (Postfix) with ESMTPS id A7CAD32C1BF2; Wed, 14 Mar 2018 11:29:50 +0100 (CET) Received: from localhost.localdomain (unknown [91.230.2.244]) (Authenticated sender: yes) by alfa3028.alfahosting-server.de (Postfix) with ESMTPA id 51E6C430CEE7; Wed, 14 Mar 2018 11:29:50 +0100 (CET) From: Richard Leitner To: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Cc: gregkh@linuxfoundation.org, mathias.nyman@intel.com, bhelgaas@google.com, richard.leitner@skidata.com Subject: [PATCH 2/3] usb: host: pci: introduce PCI vendor ID for Netlogic Date: Wed, 14 Mar 2018 11:29:32 +0100 Message-Id: <20180314102933.21367-3-dev@g0hl1n.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180314102933.21367-1-dev@g0hl1n.net> References: <20180314102933.21367-1-dev@g0hl1n.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Leitner Replace the hardcoded PCI vendor ID of Netlogic with a definition in pci_ids.h Signed-off-by: Richard Leitner --- drivers/usb/host/pci-quirks.c | 2 +- include/linux/pci_ids.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c index 4f4a9f36a68e..39d163729b89 100644 --- a/drivers/usb/host/pci-quirks.c +++ b/drivers/usb/host/pci-quirks.c @@ -1243,7 +1243,7 @@ static void quirk_usb_early_handoff(struct pci_dev *pdev) /* Skip Netlogic mips SoC's internal PCI USB controller. * This device does not need/support EHCI/OHCI handoff */ - if (pdev->vendor == 0x184e) /* vendor Netlogic */ + if (pdev->vendor == PCI_VENDOR_ID_NETLOGIC) return; if (pdev->class != PCI_CLASS_SERIAL_USB_UHCI && pdev->class != PCI_CLASS_SERIAL_USB_OHCI && diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index e8d1af82a688..d23a97868dee 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -3067,4 +3067,6 @@ #define PCI_VENDOR_ID_OCZ 0x1b85 +#define PCI_VENDOR_ID_NETLOGIC 0x184e + #endif /* _LINUX_PCI_IDS_H */ -- 2.11.0