Received: by 10.213.65.68 with SMTP id h4csp904078imn; Wed, 14 Mar 2018 03:51:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELtVXczQy3fDJL/UBLzBduDRU6LlDD+DPWOW/tdxbRKD6e5bFVkRTqnSvU8PaV84Js6b+b7l X-Received: by 10.99.117.68 with SMTP id f4mr1604642pgn.437.1521024666050; Wed, 14 Mar 2018 03:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521024666; cv=none; d=google.com; s=arc-20160816; b=Szo2IWPOj7bmO2FOmUJmhXuc1+cLqT++aEsaLirq6USSgC0ZnoOxlX9LYkfaBjlLCP xzdTrmLzj+IXafthlFyMBAvApKWUtt1JM5buPh8TEOpuc0tfcvmiiNTvRj288o25UCZP ipFdvLbawFGmdtBV+N0ndVK0InqOpvuruAjH4q2iBjtKxVOIHL+yomM9X6sEmDXzVxWz d8/TYD5ohqa7F2zUN9+Ry8mrrkTQQboBHLV5e/A8PlNW4N14JjiQqWWxOk5utOBaaiMU X4ya7lRMn05g7zBQdNBJhmyQfZ9/JqVYeMKIZCmNskLjfGaBDVntt5oCnyBl98K83BKi 0OdQ== 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=gewxWpj2/ZNvtARaxyCWU+BGP9JQrOtJhJOy+gJECSw=; b=A3q/jVG2v5g49+grJDbQ7tKMxfhQItqG71rM0PcVRPwlSqGul7KKEJqTeaCgX2pEte GmN/Mm06a9QfId7JPkoB3hnoXGy+sogJtkEqF7rvnvRvkHFHWDBVVLorImbOmcZJ1pRs KxHvH5xY7fsBuNFkWJY+E+0rmhVl0VjX2RbKlLbTS/bhgNf+rSDFi2Pl7nCiX2YTCy6Y rOb78sY4S/HAlj259kDEjPjPbpzSguujuiAHx19D0QouyCwJviiUf9ru1sT/WCJoky7y zT4wmISkQRfo5LT6fzLIdZSKjr5Y1GsyVDCfdAUbx1pmFKWQyBbtCtBg480HCERAUDUJ QYYg== 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 i6-v6si1765867plt.186.2018.03.14.03.50.51; Wed, 14 Mar 2018 03:51:06 -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 S1752140AbeCNKt2 (ORCPT + 99 others); Wed, 14 Mar 2018 06:49:28 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39006 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbeCNKt1 (ORCPT ); Wed, 14 Mar 2018 06:49:27 -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 36FA6113F; Wed, 14 Mar 2018 10:49:26 +0000 (UTC) Date: Wed, 14 Mar 2018 11:49:25 +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 3/3] usb: host: pci: replace hardcoded renesas PCI IDs Message-ID: <20180314104925.GC32615@kroah.com> References: <20180314102933.21367-1-dev@g0hl1n.net> <20180314102933.21367-4-dev@g0hl1n.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180314102933.21367-4-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:33AM +0100, Richard Leitner wrote: > From: Richard Leitner > > Introduce Renesas uPD72020{1,2} PCI device IDs in pci_ids.h and replace > the harcoded values with them. > > Signed-off-by: Richard Leitner > --- > drivers/usb/host/pci-quirks.c | 6 ++++-- > drivers/usb/host/xhci-pci.c | 4 ++-- > include/linux/pci_ids.h | 2 ++ > 3 files changed, 8 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c > index 39d163729b89..5e1ad523622e 100644 > --- a/drivers/usb/host/pci-quirks.c > +++ b/drivers/usb/host/pci-quirks.c > @@ -1170,7 +1170,8 @@ static void quirk_usb_handoff_xhci(struct pci_dev *pdev) > /* Auto handoff never worked for these devices. Force it and continue */ > if ((pdev->vendor == PCI_VENDOR_ID_TI && > pdev->device == PCI_DEVICE_ID_TI_TUSB73X0) || > - (pdev->vendor == PCI_VENDOR_ID_RENESAS && pdev->device == 0x0014)) { > + (pdev->vendor == PCI_VENDOR_ID_RENESAS && > + pdev->device == PCI_DEVICE_ID_RENESAS_UPD720201)) { > val = (val | XHCI_HC_OS_OWNED) & ~XHCI_HC_BIOS_OWNED; > writel(val, base + ext_cap_offset); > } > @@ -1282,7 +1283,8 @@ bool usb_xhci_needs_pci_reset(struct pci_dev *pdev) > * quirk, or the system will be in a rather bad state. > */ > if (pdev->vendor == PCI_VENDOR_ID_RENESAS && > - (pdev->device == 0x0014 || pdev->device == 0x0015)) > + (pdev->device == PCI_DEVICE_ID_RENESAS_UPD720201 || > + pdev->device == PCI_DEVICE_ID_RENESAS_UPD720202)) > return true; > > return false; > diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c > index a5bfd890190c..a453e4c35ac7 100644 > --- a/drivers/usb/host/xhci-pci.c > +++ b/drivers/usb/host/xhci-pci.c > @@ -189,10 +189,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) > xhci->quirks |= XHCI_BROKEN_STREAMS; > } > if (pdev->vendor == PCI_VENDOR_ID_RENESAS && > - pdev->device == 0x0014) > + pdev->device == PCI_DEVICE_ID_RENESAS_UPD720201) > xhci->quirks |= XHCI_TRUST_TX_LENGTH; > if (pdev->vendor == PCI_VENDOR_ID_RENESAS && > - pdev->device == 0x0015) > + pdev->device == PCI_DEVICE_ID_RENESAS_UPD720202) > xhci->quirks |= XHCI_RESET_ON_RESUME; > if (pdev->vendor == PCI_VENDOR_ID_VIA) > xhci->quirks |= XHCI_RESET_ON_RESUME; > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index d23a97868dee..eb52f0e9b651 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -2427,6 +2427,8 @@ > #define PCI_DEVICE_ID_RENESAS_SH7763 0x0004 > #define PCI_DEVICE_ID_RENESAS_SH7785 0x0007 > #define PCI_DEVICE_ID_RENESAS_SH7786 0x0010 > +#define PCI_DEVICE_ID_RENESAS_UPD720201 0x0014 > +#define PCI_DEVICE_ID_RENESAS_UPD720202 0x0015 Now this patch was fine :) Care to redo this series? thanks, greg k-h