Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2994738ybk; Mon, 18 May 2020 13:05:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU1eXmEF4iBpmss7m7Sx5Tr/UuyJXVV3ENtUednVhsY10E+b+DDCpReP7aB+GFliAOvaCP X-Received: by 2002:a17:906:3584:: with SMTP id o4mr16816735ejb.70.1589832343407; Mon, 18 May 2020 13:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589832343; cv=none; d=google.com; s=arc-20160816; b=BCMFYKaY0bOtLg3HmnC5D9/bESnTyFd2YH8nHu0ePbdprndHe74yxmHhkTRF1MsuHz rKjqz6zDjnGwhCP3VqkRA+EplxAw8/hZyEi0idDTHlIOPD1DIC9EDqcSGmPuniCC668O AoWFOYEP5AIG22noZgkVwH1cI6VnRCNbSYYBwtJThUSBfrvMrB95iJT2pvLzdddcy3Jh rgr3P1L0cUk+4kJbZFPdJ+uQWMfBr4dj7Nie4RFmYWl7mf3rQ/xqBhx9fEJDrETuPD6J Md0e+QhxrZ0ySDgso0GZQSJAWxc/hi024dOMTB5ub+N+YMpmRQ46Y5W9VbC6wXDsjOwi PmAA== 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=hKbclDkaBQAsWFJMO8jbixdgZscWUZOcqR3rOuMyJpw=; b=hD5IBn3+SoOG3DqXB9I2qpHeppdC8vP+sxXH0VP/EadSKzCvQrklY+Ef8tPs81X0/i c2hsBeH2npG//Li0R624hBxHQiX5RkxVdzuV4irNHDfd69qAF5GSHLgTrC5c811HWW9k +MVmpnLdL3OM0gWr5+YFEB8SjxlBGRCqkd1hkH6KYM+EgnqsG1mMFSe0AnNBFfB/KSEi 1Pxti6hDMnyPnNpAXdhPKZhsTcec9QytAW/9yDwkjKf9/AGRJfZN9a1mKXePuzQTE0hf X1Yd1woV1U/3BKb5zLhgripQVF3wsyl9iy/L3VfOeNnHxnsDvqwtP7QOCJUICDqi3uVv /5QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qc0a6OQv; 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 q16si1353588edr.390.2020.05.18.13.05.19; Mon, 18 May 2020 13:05:43 -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=Qc0a6OQv; 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 S1728637AbgERT52 (ORCPT + 99 others); Mon, 18 May 2020 15:57:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:41980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbgERT50 (ORCPT ); Mon, 18 May 2020 15:57:26 -0400 Received: from localhost (unknown [122.178.242.232]) (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 E35B320657; Mon, 18 May 2020 19:57:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589831845; bh=DRz4DAY0Mnx2npyUdBsc9qwGVxIZLo1A/yWb9iqMvwc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qc0a6OQvdCAEnO3CUTnrYxiYhaPyQTi55+IhPmvKayJnYlwQi4oxEdbuCAAoaqMDa dFImllZ7cfaCePbe7ebGoK91XABYlDlmrHmwm9ncKc6LY2DAeuS62km5DMrPTVNXnA BpsvtV7X7O3awzJsEdsD90yUG11JfNCxNl9brLZE= Date: Tue, 19 May 2020 01:27:19 +0530 From: Vinod Koul To: Anders Roxell , Arnd Bergmann Cc: 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: <20200518195719.GG374218@vkoul-mobl.Dlink> References: <20200506060025.1535960-1-vkoul@kernel.org> <20200506060025.1535960-4-vkoul@kernel.org> 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 Hi Anders, 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 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