Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp573745ybj; Tue, 5 May 2020 04:07:18 -0700 (PDT) X-Google-Smtp-Source: APiQypLlB5zYUjjLvml6jD4mzddm+GrBF5Ven8/xRHR1JgJ0DLVNwWuNWdH81IY3VaZ8mQcpwpdh X-Received: by 2002:a05:6402:1757:: with SMTP id v23mr2080052edx.335.1588676838151; Tue, 05 May 2020 04:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588676838; cv=none; d=google.com; s=arc-20160816; b=uEJbIBuZCUBwrtluU+rOQFFlwtiBfrBGXkHzT3fX4El+gtgnW/XLQbrg62DGvqsYsG B2fjDnWiyov716zIV550d3FAx8OuGxjFSNsxi+h/dVQZbkzF9ELhqBaWm8CQGYnSC24G qVTZjaqAYqj2oExjb8FWefbx2aKz0MEzGo2IPXVoG0KpxxSrg09asO+C5hIaOhFbHERB SWxekUsoA4o9FyUiqaHEyF94pCdB1WNQbZV0cBKNb41DrMQo2AZS0mweHl+NPxi1yFzl VWwJoPC4nd5PSE3B6ACaXHgBuMRNJn2Oz2dasTxCtkcQl4ShoVuhJbXQBzgZHad1NwRd 0bgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bvRmNP74F8GZpzfOsuEuVrOQX2iOqIl49I6OnK5dPSE=; b=a8p/PlaETxuZID2SnkzDhzYx06/lxBtbh1E/k1VWIsaiekifnYiJYY90Z7iEPv1j2R h+W1dPpLMKRWaW6BAY3CU7hN6Bbppc31SyJI3xurtJLt3ejD8HKwFOSjpZnajCvEI5GW Cx45iO0gaPBynBGYwdOVKSGLFVGxeNFvJ6acYjGGLvvajbWEAb+eVnwXdOekdAv7WYFx zZAfuJCtph3TSV1w+OnORmZVmuFxFOeAY9wJgJaB9H/s/7SYN2dsfUh7RFGtNb8X6kZI SuFQGPLCy+oF5YublNvvuZDpUfjJStaderqclf4uMEBtgg7jLXnIAXRQd6j0ul3S0oRd KNRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BBCgI7d2; 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 q10si902589eji.306.2020.05.05.04.06.54; Tue, 05 May 2020 04:07:18 -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=BBCgI7d2; 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 S1728784AbgEELEm (ORCPT + 99 others); Tue, 5 May 2020 07:04:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:43150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725766AbgEELEm (ORCPT ); Tue, 5 May 2020 07:04:42 -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 A9470206B8; Tue, 5 May 2020 11:04:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588676680; bh=qQz7Wc0iV6lltQX1X6gMaSxn3yyMWV+Fg5hhEXA0Ytg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BBCgI7d2H1aUoqDx3WyDtsimuN5WaE6Jo4Qzu3lJxq8tnlW/E34w/bnArIwyIWxSE I9qyHEETD7eWdfvaaCTcQY/0hPIH0NTCli/NeoI323hyUWP/rvz+LNcNIFgIy9MTS2 WRQUjDV/k+TzdSN1KG7DuO3bNIu0rEFxQyHLGSPc= Date: Tue, 5 May 2020 13:04:38 +0200 From: Greg Kroah-Hartman To: Vinod Koul Cc: Mathias Nyman , Mathias Nyman , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Christian Lamparter , Yoshihiro Shimoda , John Stultz , Alan Stern , Andreas =?iso-8859-1?Q?B=F6hler?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v12 2/5] usb: renesas-xhci: Add the renesas xhci driver Message-ID: <20200505110438.GC93160@kroah.com> References: <20200430165920.1345409-1-vkoul@kernel.org> <20200430165920.1345409-3-vkoul@kernel.org> <81e0eff0-8b40-3c47-e39b-929e1dc07fd5@linux.intel.com> <20200504143438.GT1375924@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200504143438.GT1375924@vkoul-mobl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 04, 2020 at 08:04:38PM +0530, Vinod Koul wrote: > Hi Mathias, > > On 04-05-20, 16:01, Mathias Nyman wrote: > > On 30.4.2020 19.59, Vinod Koul wrote: > > > From: Christian Lamparter > > > > > > This add a new driver for renesas xhci which is basically a firmware > > > loader for uPD720201 and uPD720202 w/o ROM. The xhci-pci driver will > > > invoke this driver for loading/unloading on relevant devices. > > > > > > This patch adds a firmware loader for the uPD720201K8-711-BAC-A > > > and uPD720202K8-711-BAA-A variant. Both of these chips are listed > > > in Renesas' R19UH0078EJ0500 Rev.5.00 "User's Manual: Hardware" as > > > devices which need the firmware loader on page 2 in order to > > > work as they "do not support the External ROM". > > > > > > The "Firmware Download Sequence" is describe in chapter > > > "7.1 FW Download Interface" R19UH0078EJ0500 Rev.5.00 page 131. > > > > > > The firmware "K2013080.mem" is available from a USB3.0 Host to > > > PCIe Adapter (PP2U-E card) "Firmware download" archive. An > > > alternative version can be sourced from Netgear's WNDR4700 GPL > > > archives. > > > > > > The release notes of the PP2U-E's "Firmware Download" ver 2.0.1.3 > > > (2012-06-15) state that the firmware is for the following devices: > > > - uPD720201 ES 2.0 sample whose revision ID is 2. > > > - uPD720201 ES 2.1 sample & CS sample & Mass product, ID is 3. > > > - uPD720202 ES 2.0 sample & CS sample & Mass product, ID is 2. > > > > > > Signed-off-by: Christian Lamparter > > > Signed-off-by: Bjorn Andersson > > > [vkoul: fixed comments: > > > used macros for timeout count and delay > > > removed renesas_fw_alive_check > > > cleaned renesas_fw_callback > > > removed recursion for renesas_fw_download > > > add register defines and field names > > > move to a separate file > > > make fw loader as sync probe so that we execute in probe and > > > prevent race > > > export symbols for xhci-pci to use] > > > Signed-off-by: Vinod Koul > > > --- > > > drivers/usb/host/Makefile | 2 +- > > > drivers/usb/host/xhci-pci-renesas.c | 365 ++++++++++++++++++++++++++++ > > > drivers/usb/host/xhci-pci.h | 16 ++ > > > 3 files changed, 382 insertions(+), 1 deletion(-) > > > create mode 100644 drivers/usb/host/xhci-pci-renesas.c > > > create mode 100644 drivers/usb/host/xhci-pci.h > > > > > > diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile > > > index b191361257cc..f3a5a2f01874 100644 > > > --- a/drivers/usb/host/Makefile > > > +++ b/drivers/usb/host/Makefile > > > @@ -70,7 +70,7 @@ obj-$(CONFIG_USB_OHCI_HCD_DAVINCI) += ohci-da8xx.o > > > obj-$(CONFIG_USB_UHCI_HCD) += uhci-hcd.o > > > obj-$(CONFIG_USB_FHCI_HCD) += fhci.o > > > obj-$(CONFIG_USB_XHCI_HCD) += xhci-hcd.o > > > -obj-$(CONFIG_USB_XHCI_PCI) += xhci-pci.o > > > +obj-$(CONFIG_USB_XHCI_PCI) += xhci-pci.o xhci-pci-renesas.o > > > > Hmm, now we end up with two modules, xhci-pci and xhci-pci-renesas, even if > > xhci-pci-renesas just includes helper functions to load firmware for renesas. > > Right, these are two modules. Do you forsee an issue with two ko's Two kos should be fine, but as you aren't giving people the option to not select this, it's a bit harsh to add it. Can this be a separate module/config option? Why force everyone to need this additional code if they do not have this hardware? thanks, greg k-h