Received: by 10.213.65.68 with SMTP id h4csp903484imn; Wed, 14 Mar 2018 03:49:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELuqI9ZOfAI7I41nO9lLhTDN+HDA4oAtF0i5Wg025fgKFH4yYYaAI7Zx6Smw8OOAAQcVIvx7 X-Received: by 2002:a17:902:be02:: with SMTP id r2-v6mr3616380pls.234.1521024588017; Wed, 14 Mar 2018 03:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521024587; cv=none; d=google.com; s=arc-20160816; b=BCewRi1mdUB8Mp5ahce5CWhvGF5eDMBHIDt2YSlW0ahhPfjjQxg4I6/0sZM7l+v+1C lYCSH6NEU2W6EzcsBsCTJ1LxUUzvWxReV0FE+mTnMXOmDiFxaU5Y3Ny7HnqYD0ajHHR4 qlldgPVX/BaBQj9TN9eWhHkcE4s9yV5M/Uad5V0lNyUQMkTm1bxV20YJF9kiPP5jMeh5 8SVVsxY9k2FdaDBuyumnpiRRLZZfbnOs9EQrw3oQUwHNub9UXpU7Ogia//MGAK8PFrgP SwWDFvr1NZmHSh78bQYonpqlPVb0PjH1QhjrwINehgodNwB0HLrGlPyIWm3RSwOxXue9 RG/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=p1UXNzamVe+zsSFiAbj8FSgBee2goDPGOOz0mbz3i8o=; b=b/RUBFjpk5PDBrlY/K1zD/Qq2ioxHZYv6NbqnhEjTA8mpdUECCH2yMmJ1EgRqtWoMM +97ZGVIa9ikE+ryN0jIKPiuzqgfQuCChCMhfxYegW6KBz8pkBgahbAPtsf2PB3rkojYR ZmjZ41qqqVJg7AbXg0cE0snB7vAkDwU9ksXJUWdQfL32MW42V5V7757mZH5AHcDlMNh5 +tjocYaQ6H28pFA08XZqvPdjT/jQSZJjSCXJXpYLkOR3DVYSnNVBTTlAJ4OOesDiLZu3 yBzcg5S0Jc2VvRHyiMYBdgcwxtreBzwhevmTQ6GSXbzENnByrNyDlQMSKWDn30LLpuj8 Jcyg== 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 s11-v6si1784772plj.701.2018.03.14.03.49.33; Wed, 14 Mar 2018 03:49:47 -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 S1751748AbeCNKsZ (ORCPT + 99 others); Wed, 14 Mar 2018 06:48:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38504 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751370AbeCNKsX (ORCPT ); Wed, 14 Mar 2018 06:48:23 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 69D39B00; Wed, 14 Mar 2018 10:48:22 +0000 (UTC) Date: Wed, 14 Mar 2018 11:48:21 +0100 From: Greg KH To: Richard Leitner Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, mathias.nyman@intel.com, bhelgaas@google.com, richard.leitner@skidata.com Subject: Re: [PATCH 1/3] usb: host: pci: use existing Intel PCI ID macros Message-ID: <20180314104821.GA32615@kroah.com> References: <20180314102933.21367-1-dev@g0hl1n.net> <20180314102933.21367-2-dev@g0hl1n.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180314102933.21367-2-dev@g0hl1n.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 14, 2018 at 11:29:31AM +0100, Richard Leitner wrote: > From: Richard Leitner > > Instead of the hardcoded hexadecimal PCI IDs use the existing macros > from pci_ids.h for Intel IDs. You also did something else in this patch, yet failed to mention it here: > Signed-off-by: Richard Leitner > --- > drivers/usb/host/pci-quirks.c | 10 +++++----- > drivers/usb/host/xhci-pci.c | 3 ++- > include/linux/pci_ids.h | 1 + > 3 files changed, 8 insertions(+), 6 deletions(-) > > diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c > index 67ad4bb6919a..4f4a9f36a68e 100644 > --- a/drivers/usb/host/pci-quirks.c > +++ b/drivers/usb/host/pci-quirks.c > @@ -858,8 +858,8 @@ static void ehci_bios_handoff(struct pci_dev *pdev, > * > * The HASEE E200 hangs when the semaphore is set (bugzilla #77021). > */ > - if (pdev->vendor == 0x8086 && (pdev->device == 0x283a || > - pdev->device == 0x27cc)) { > + if (pdev->vendor == PCI_VENDOR_ID_INTEL && > + (pdev->device == 0x283a || pdev->device == 0x27cc)) { > if (dmi_check_system(ehci_dmi_nohandoff_table)) > try_handoff = 0; > } > @@ -1168,9 +1168,9 @@ static void quirk_usb_handoff_xhci(struct pci_dev *pdev) > val = readl(base + ext_cap_offset); > > /* Auto handoff never worked for these devices. Force it and continue */ > - if ((pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241) || > - (pdev->vendor == PCI_VENDOR_ID_RENESAS > - && pdev->device == 0x0014)) { > + if ((pdev->vendor == PCI_VENDOR_ID_TI && > + pdev->device == PCI_DEVICE_ID_TI_TUSB73X0) || > + (pdev->vendor == PCI_VENDOR_ID_RENESAS && pdev->device == 0x0014)) { > val = (val | XHCI_HC_OS_OWNED) & ~XHCI_HC_BIOS_OWNED; > writel(val, base + ext_cap_offset); > } > diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c > index 5262fa571a5d..a5bfd890190c 100644 > --- a/drivers/usb/host/xhci-pci.c > +++ b/drivers/usb/host/xhci-pci.c > @@ -213,7 +213,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) > pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) > xhci->quirks |= XHCI_ASMEDIA_MODIFY_FLOWCONTROL; > > - if (pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241) > + if (pdev->vendor == PCI_VENDOR_ID_TI && > + pdev->device == PCI_DEVICE_ID_TI_TUSB73X0) > xhci->quirks |= XHCI_LIMIT_ENDPOINT_INTERVAL_7; > > if (xhci->quirks & XHCI_RESET_ON_RESUME) > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index a6b30667a331..e8d1af82a688 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -838,6 +838,7 @@ > #define PCI_DEVICE_ID_TI_XX12 0x8039 > #define PCI_DEVICE_ID_TI_XX12_FM 0x803b > #define PCI_DEVICE_ID_TI_XIO2000A 0x8231 > +#define PCI_DEVICE_ID_TI_TUSB73X0 0x8241 You shared a TI device id. Please break this up into 2 patches. thanks, greg k-h