Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1974579ybz; Thu, 30 Apr 2020 08:40:18 -0700 (PDT) X-Google-Smtp-Source: APiQypKmD4B/bo5hugPL2UIUpOgq/UKvXQDCJRBicp+CO4YLmybFUc/knaZRtqt4z+iwlHFHAeXh X-Received: by 2002:aa7:dd95:: with SMTP id g21mr3231987edv.148.1588261218276; Thu, 30 Apr 2020 08:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588261218; cv=none; d=google.com; s=arc-20160816; b=MyqpKlyvmIfSZ2URVo4ZiKyKfsc5RZ2is0rFk5bYtNMb3n7aZEIBXVuII2Lsz5Agum CmftkoEhwxA2wVxaLUYwYB3PB6vNyxPTrhMcqif7ZUfHFhKfF980hoLHmHUbnUbplOtO G5mTctVcLguO6HutCJAej8GDPWHcrBGs2e+1eMf9T0Q64LXy6a8R1QGNjxx3ff+O3ZRM NWMlvCoBz9g8+wxxsKAVPR20fUEFMkyzaKChl7WAnV85B4j3OQuxGB4VxaUjBKCECqz7 7F6HFkgvF6Kbo2fsskpReySeguEwtwy6tS7P6Q6dF8YrMD4HfKIYERCMXrO1n9t7iBZ7 x87g== 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=aWvXXoq8WIm7ktkLyWHWYEbcUEabnTf7eyVlEx1USZ4=; b=wMF5A+Q7yhY5tdKkXq4pUIZ+4+R77w8gKYeIs02fEZGFTQB3sPCBG98SqNCsyTgRbH 5mVvswvbHXfzGiCsM+VzpwvtnBAFFv9lpZvn2D4EcJrXrcB0NZ50Le9hPzaKSbKjXdt+ 5NY+FJH85JhF6rlnvuwQG7QWIo18b3J3V8l9LYQXCOiHsDHTB2Fh8e8Wa8BdMW5LtgBr 6Sko3+SqhP7ald+Q9d9IHyewDJQNYdWHzKLMifkAf1LyugNXUopAQ7QMCrqRl8lOU1Il rdB9ArPuWimrxYvLy/P7vyKzfSSJcIVs4BTpHFH0ztv+X65IOASbbXs4V4TZhKGm2Svy g9eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LqqNKh8l; 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 v11si5929621edy.483.2020.04.30.08.39.55; Thu, 30 Apr 2020 08:40: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=LqqNKh8l; 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 S1727923AbgD3PfV (ORCPT + 99 others); Thu, 30 Apr 2020 11:35:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:38490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbgD3PfV (ORCPT ); Thu, 30 Apr 2020 11:35:21 -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 13B3B2082E; Thu, 30 Apr 2020 15:35:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588260919; bh=pJjZBKRTTymzRVQ9d8F5feurChOw0jxy9nep9EPI7XY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LqqNKh8l1ky8WfaDQcTmHaRgj5+WQqbf9FwHp1/+QoWTSopmzM2XoXUIwCVOCBMj3 IvDQrUIyNfJwUEKCACn4NJX8Hde0RRYzXt0ik3i75jZBxpMOikSMrLX6V/1JwxjWxG +9xWa8O13Y99+55A+tyYDCfy4aiFF228DfyxuqoA= Date: Thu, 30 Apr 2020 17:35:17 +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 v11 2/5] usb: renesas-xhci: Add the renesas xhci driver Message-ID: <20200430153517.GA3711293@kroah.com> References: <20200430101019.1130956-1-vkoul@kernel.org> <20200430101019.1130956-3-vkoul@kernel.org> <8ffd119b-192f-8fcc-46cc-3a405e30338c@linux.intel.com> <20200430144641.GJ948789@vkoul-mobl.Dlink> <20200430145302.GB3495619@kroah.com> <20200430152650.GK948789@vkoul-mobl.Dlink> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200430152650.GK948789@vkoul-mobl.Dlink> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 30, 2020 at 08:56:50PM +0530, Vinod Koul wrote: > On 30-04-20, 16:53, Greg Kroah-Hartman wrote: > > On Thu, Apr 30, 2020 at 08:16:41PM +0530, Vinod Koul wrote: > > > > > diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile > > > > > index b191361257cc..c3a79f626393 100644 > > > > > --- a/drivers/usb/host/Makefile > > > > > +++ b/drivers/usb/host/Makefile > > > > > @@ -70,7 +70,8 @@ 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 > > > > > +usb-xhci-pci-objs := xhci-pci.o xhci-pci-renesas.o > > > > > +obj-$(CONFIG_USB_XHCI_PCI) += usb-xhci-pci.o > > > > > > > > I don't think it's a good idea to rename the xhci-pci module to usb-xhci-pci > > > > > > > > does > > > > > > > > xhci-pci-y := xhci-pci.o xhci-pci-renesas.o > > > > obj-$(CONFIG_USB_XHCI_PCI) += xhci-pci.o > > > > > > > > cause some kbuild issues? > > > > > > Yes with this version I get the warning: > > > make[4]: Circular drivers/usb/host/xhci-pci.o <- drivers/usb/host/xhci-pci.o dependency dropped. > > > > > > I don't speak enough Kbuild, but I guess it does make sense that we have > > > xhci-pci.o as target for both xhci-pci.o xhci-pci-renesas.o! That was > > > the reason for adding usb tag to this to resolve the conflict. > > > > > > I am okay for any other mechanism which can work well here. Btw what > > > issues do you foresee with adding usb tag to module name. > > > > It will break all sorts of things. Happens every time we rename > > modules, let's not do it unless we absolutely have to. > > Hmm that is interesting, am not sure why though :) Module parameters, blacklists, init scripts, you name it. Lots of them default to module names and do not only look at the pci ids that modules consist of after the system is originally set up. > Anyway, I have fixed it up and was able to make both as modules and > export two symbols for xhci-pci.ko to use :) great. thanks, greg k-h