Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp628596ybj; Tue, 5 May 2020 05:10:16 -0700 (PDT) X-Google-Smtp-Source: APiQypI4R616Goko1Xj52FZnsmO7C1tcCIvuBoWGWh7KKvYGPggGWXCHCItsW9HPcKFmCpkdmkAK X-Received: by 2002:a17:906:6811:: with SMTP id k17mr2300841ejr.351.1588680616528; Tue, 05 May 2020 05:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588680616; cv=none; d=google.com; s=arc-20160816; b=DKvhKg8g7KCVDRQih1vqVaJgYNmIU7xALJNUaf4JUUrAMZap2QDa2ub/Ry/ArOtOGh A4ioC5hp/vkDsE3MihbcPwnwVIeP7FB4kD3/7Mx6ANKSzBexpfacNvQxVr6uJE9i8QS5 1K0SPcEn5mum5410+0lguiQf7KLEX8/kuiC54WaX8ssPVZx1qek00zDEqYeLYGxPq3f9 JW46LPxF1EiSNiGxy79N7F55p3GN7Rv28ls5hXa3giRKgnkVMEmdc9DBpzwzpmMxu+4Z kPCa0cliqkWMPzE+r/HkdwBffAM7opvUiz2morNEiQlvm5DK9eKJUw5mzsES6cilOH+H vOQQ== 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=4JXwKOC4+4uehKWWAP7RfomSiidD4LezP0uv2EZe8m8=; b=onl/PEPJ/GmNsNtBXEpN0QVM76ytumnUhNAEk/4x4VnSZ0cQnuxVDE1YbTQ9gzbAaG Z1RTSphbPUfrVFQx26C6aGrj57BzoSK+RxgZcVX7vXFCclGN3lmSTENAzqox2vWqxR0Y MUL1Wcw+4c5TQu1uT3jcMFZs2C4sOhGk/aFyL3B2UjxeWGOI1ucN5wTO9jpmZt1LcmG4 ODn1jQU7zT96q5V8Py+641zeIQB5UtFKgJSH1O5mEHkBL/pnPA/3YL8+/j8DX4n5YZN2 Ye/gtq1t+eTKiEEBmZXo0EG3HJJ5qNBRTOzSQp36lLftDYE/ZmvtvPvl0k44S8x21wmW zcgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ATTDZkYh; 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 dd22si1067650edb.162.2020.05.05.05.09.51; Tue, 05 May 2020 05:10:16 -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=ATTDZkYh; 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 S1728703AbgEEMFP (ORCPT + 99 others); Tue, 5 May 2020 08:05:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:57864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbgEEMFO (ORCPT ); Tue, 5 May 2020 08:05:14 -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 6260C206A4; Tue, 5 May 2020 12:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588680313; bh=bK5N6cPviP+5CuDHCJsCJS64jDtjE4iLNlvSfRpPdJ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ATTDZkYhTWScPWm7/yMYpCBcnZoLEuEXwCmNTSf3BhAqni2MqDeUVhEn6WlfWsLMR J+9KiJt1WUJ301j+8xFZu1E6cZNOZaYsGr8c85O1QqazB6iB4hBvAoXxMWwowYoJP5 gyhLIgD1E1XDMi+WTCv9MMQZHdZCSCsTdB6b8y1E= Date: Tue, 5 May 2020 14:05:09 +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: <20200505120509.GA116918@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> <20200505110438.GC93160@kroah.com> <20200505113354.GX1375924@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200505113354.GX1375924@vkoul-mobl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 05, 2020 at 05:03:54PM +0530, Vinod Koul wrote: > 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. Yes, it would not be "invoked", but it still would always be loaded into memory. Please only load this code if the hardware is present in the system. thanks, greg k-h