Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp601512ybj; Tue, 5 May 2020 04:38:56 -0700 (PDT) X-Google-Smtp-Source: APiQypKD3kXofdSl/qtJcBvT+a8tHa8e7Yh71GnDPXAVW1E4L1cfxi/H2U25ZOzlmGP97hJ/51KG X-Received: by 2002:a05:6402:391:: with SMTP id o17mr2168289edv.71.1588678735904; Tue, 05 May 2020 04:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588678735; cv=none; d=google.com; s=arc-20160816; b=ZRisxhqXA2kxHCD/nFp1MKzQh+op3fciNYqfahRjuPMDinLk2lqP0+1PO2JGOyV8U6 ZoPyZB3KmDi/YvE8yw8Yp38oWzocXbPJ64kh991DSqDeU2HSM3uQXdi1znu6hbox2Bd1 ZwBIby0v8bsI+bM4HlA43RUkrlcjBjkXJjdIOu52kffrxuNEyrDKkAjYaeBpuhGox0y/ qNgAYjYvnOai2pv1Pg3lSZ6L4q5YOTmYlPhc9HYHyeMZRJd640fwP9L0Lk3tPp9edZwv UG60X7ZDc/CCYynkccKGq+imRMSmT/BF4QWtL5NdU1AuGYD5UqIJRmLNmJA1ClZearSx Dh9g== 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=WSBMpb8NWLRZ4C610SA3ulgsxStUy2/KylkQC5dgtiM=; b=LiP10/eD+fhIXu6o9vD2uKHhKciGtD42b2pUJaKSun+aXoph2SzGrFU83l+uI4iNnZ P/Uof1p0jeSxKYHwZNsup3p+yw9a86O8JkOviicaUNggIuP3+jzwxCgiJd9TL0gnYn+Q SM6MhoMnqa+6LiRRNfS4PuLfHlaqaCkIdiGly9hU2mYJHt+Wr6/pe0XM8Lz5V/FMf7Zj WoE453O+C+BD1NklatBtbeTQqd0O9az5vEPSxV4mCBwWsViSs+7fE4DVufnQM8LfY0dQ j+ibkLcd7mfl6wutoFkvb5KUW4qpciY7tIuylXz8QKY5YMv+fsiV2A1fd5A+x/vUVvcu NEZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Hei2vThh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si897156ejw.403.2020.05.05.04.38.33; Tue, 05 May 2020 04:38:55 -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=Hei2vThh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728874AbgEELeA (ORCPT + 99 others); Tue, 5 May 2020 07:34:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:49238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728664AbgEELd7 (ORCPT ); Tue, 5 May 2020 07:33:59 -0400 Received: from localhost (unknown [122.181.213.114]) (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 2F82C20735; Tue, 5 May 2020 11:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588678439; bh=BIDNivoYYArr1mgNzZNlFHarjyA+1JxmkV0Pd9IfbtU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hei2vThh3fDPJJe5S3ZSQeNuun9d/8uHbm3ksqhgvpfA+IF0olXgQ9b0u8FkhW7xG kGappr474a7EgDcoD7MyXyWqmJDpdwzWS5WEHepav4d5I7wYvo7wTkuZn2Fumc3JWi BufJSxUhnpt1nj3X4/CbkNR8POXcUA+hiCbChQBA= Date: Tue, 5 May 2020 17:03:54 +0530 From: Vinod Koul To: Greg Kroah-Hartman 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: <20200505113354.GX1375924@vkoul-mobl> 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> <20200505110438.GC93160@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200505110438.GC93160@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05-05-20, 13:04, Greg Kroah-Hartman wrote: > On Mon, May 04, 2020 at 08:04:38PM +0530, Vinod Koul wrote: > > > > --- 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? Since the code is moved out and is based on PCI ID of the device, this wont be invoked at all for folks not having this hardware. But adding a config option would work too and avoid renaming file. I think this looks as a better option to me atm. We no longer have load order issue with current approach so we dont care about that as well. Mathias, let me know if you are okay with approach, I can respin this, or if you have better idea do let us know Thanks -- ~Vinod