Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3214083ybk; Mon, 18 May 2020 21:55:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP9CqVI4+W6ZCRiYkcDnvvi/XH7E8dcyhkAh3bSJVOGw4PKjcJdSFe0JkqQUs4E817jB8N X-Received: by 2002:a17:906:b4c:: with SMTP id v12mr17784859ejg.25.1589864134124; Mon, 18 May 2020 21:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589864134; cv=none; d=google.com; s=arc-20160816; b=nADZLYoMJ8OK2+W9r3Z/+NJC1qqnMPYgdyVRUit7zHqsY6GeZH7N07g+IrQUlwpizI pE3uAINYPJ8PNNvzehRgZqPoClhg5mJEaJ1SlkpbW4bFCP8/mlHkTdr2yL1NYV9c6y3J DJksA7tFSHcIlQoysQk5gBnkgOIO6k26B2lxxGueCa4nRglmFiPfaycECPRXiUd9J7B5 nmF+n/z85FKtrbJ/R/pyft2GxEnQn11uJ0Y9y15daA9lzUG+P8i/AQ7ZDKli8jtkyZZ5 Tfv+YDBK2HnzjPF1ZJFH/qsl5DDneJ8uiaYyROPPVvT50wrasGMxAtc/uaZjVHapWXvS Gsxg== 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=BwK/Mqy025awOpjUZ6G4Cy9OgjR/GBTfabrGl++8FeU=; b=J3P6gaxw4WEzPJdPNaL2QASQdilW92wFlctthG9wT1GduBNmHoZJqF4bxfuU4YtHaw pAGeqLJ2eT9eNwbI9zbQEkAYguSRbaS4Ll39l9Zi9TewaTGgyu01AlquYs4pGVJ42/fA JGONE3jrgnDLe3MkCZP25HpWY2W5SRG+PWCpyJRkorfkEnNowiU/R+8VinGRBm7NxBff 2rpGWmqvp/zeW6S3b7Jo+W5wRYhcXejMw6XTEJ8nJlhMYV7KHvXoStDIjwiHPd+5NaZE +FF3RTjRaNn77Q8dXaajFfo9mLGrFeLGZJuc7Pccfsu7htJpVG3f1y45plJN+IatDz3k rXxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uhDTlhwI; 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 g4si7735981ejb.192.2020.05.18.21.55.10; Mon, 18 May 2020 21:55:34 -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=uhDTlhwI; 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 S1726861AbgESExo (ORCPT + 99 others); Tue, 19 May 2020 00:53:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:53304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbgESExo (ORCPT ); Tue, 19 May 2020 00:53:44 -0400 Received: from localhost (unknown [122.182.207.24]) (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 2890C206D4; Tue, 19 May 2020 04:53:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589864023; bh=EFZI8aHD4horrMDegve7hawQWaX8uESqvuhZbCN5SJc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uhDTlhwIHpzFn+ofiON9l5HIrcik8GFenOeHk0Gy9BX1R7e3BU4k5jNYiDMAQEMYC 9iszc4vJAYPY41Rntq0KVO14DwLZ3spyXkoYUKQYBqSyqDaQg8fnbA79I5HKA9Q2Oz AxpmsPkdfL8ns6Wnws/NK+fARyhLLNSEhxGvlojw= Date: Tue, 19 May 2020 10:23:36 +0530 From: Vinod Koul To: Anders Roxell Cc: Arnd Bergmann , Mathias Nyman , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Yoshihiro Shimoda , Christian Lamparter , John Stultz , Alan Stern , Andreas =?iso-8859-1?Q?B=F6hler?= , linux-usb@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH v13 3/5] usb: xhci: Add support for Renesas controller with memory Message-ID: <20200519045336.GH374218@vkoul-mobl.Dlink> References: <20200506060025.1535960-1-vkoul@kernel.org> <20200506060025.1535960-4-vkoul@kernel.org> <20200518195719.GG374218@vkoul-mobl.Dlink> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-05-20, 00:37, Anders Roxell wrote: > On Mon, 18 May 2020 at 21:57, Vinod Koul wrote: > > > > Hi Anders, > > Hi Vinod, > > > > > On 18-05-20, 19:53, Anders Roxell wrote: > > > On Wed, 6 May 2020 at 08:01, Vinod Koul wrote: > > > > > > > > Some rensas controller like uPD720201 and uPD720202 need firmware to be > > > > loaded. Add these devices in pci table and invoke renesas firmware loader > > > > functions to check and load the firmware into device memory when > > > > required. > > > > > > > > Signed-off-by: Vinod Koul > > > > > > Hi, I got a build error when I built an arm64 allmodconfig kernel. > > > > Thanks for this. This is happening as we have default y for USB_XHCI_PCI > > and then we make USB_XHCI_PCI_RENESAS=m. That should be not allowed as > > we export as symbol so both can be inbuilt or modules but USB_XHCI_PCI=y > > and USB_XHCI_PCI_RENESAS=m cant. While it is valid that USB_XHCI_PCI=y|m > > and USB_XHCI_PCI_RENESAS=n > > > > So this seems to get fixed by below for me. I have tested with > > - both y and m (easy) > > - make USB_XHCI_PCI_RENESAS=n, USB_XHCI_PCI=y|m works > > - try making USB_XHCI_PCI=y and USB_XHCI_PCI_RENESAS=m, then > > USB_XHCI_PCI=m by kbuild :) > > - try making USB_XHCI_PCI=m and USB_XHCI_PCI_RENESAS=y, kbuild gives > > error prompt that it will be m due to depends > > > > Thanks to all the fixes done by Arnd which pointed me to this. Pls > > verify > > I was able to build an arm64 allmodconfig kernel with this change. I will send the formal patch and add your name in reported and tested. Thanks for the quick verification > > Cheers, > Anders > > > and I will send the fix with you as reported :) > > > > ---- >8 ---- > > > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > > index b5c542d6a1c5..92783d175b3f 100644 > > --- a/drivers/usb/host/Kconfig > > +++ b/drivers/usb/host/Kconfig > > @@ -40,11 +40,11 @@ config USB_XHCI_DBGCAP > > config USB_XHCI_PCI > > tristate > > depends on USB_PCI > > + depends on USB_XHCI_PCI_RENESAS || !USB_XHCI_PCI_RENESAS > > default y > > > > config USB_XHCI_PCI_RENESAS > > tristate "Support for additional Renesas xHCI controller with firwmare" > > - depends on USB_XHCI_PCI > > ---help--- > > Say 'Y' to enable the support for the Renesas xHCI controller with > > firwmare. Make sure you have the firwmare for the device and > > > > -- > > ~Vinod -- ~Vinod