Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1536518pjr; Mon, 18 May 2020 15:48:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt2/9cDN7CB8o2JwRZkP9G9EUMjeNMJjTu7Qp6Uf6+Vntl4CToSV7px2yPSD+QTzHytms5 X-Received: by 2002:a17:906:935a:: with SMTP id p26mr17280916ejw.103.1589842084549; Mon, 18 May 2020 15:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589842084; cv=none; d=google.com; s=arc-20160816; b=Y/uNiiyRVHX8iYx49BIHO7rl09eGCFAuysfYLFnOueKdFZc91M26QitsezAWrM83LW yCeDPBeOmLzwWLYxtwstWIb7CsK7e/PhxRdZ8jJZnCu/jXhoZDHVM0MXuBxF38oGav91 BsXmEOMZTlPR6t0ySvxYNSe3OvXmgZhv4fWb4C8pcEkImxJbRwJsFKBWBf/4Znsd6ZMD q8sibuwu8h3B/TCohkBEVfBykPKRkL0ApahqMrZQ/v62KefbSZmBkq1JUKrELTXnhwvw aF1yy45d+BEcicjrKN7zzSDDqgvEKw7A1ntMpYTNuhTr00LNiLx/5LF/pxH1Zge5yFuF 1PPQ== 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=Yqx7fwzdjHJkmgg9PpHSWruK1legOs9tOHB9RxnwbRs=; b=xmOjoMh17sVB+bY9Z6P3SKpCQrqp2PwpJYnedUk1pS5BAvx8QeEROkbcbhEybcIkW0 c1NBthKxrGAITazJWVOc11Mje6YxY3B4IBpZzbO5KF03uAYv9nitgJ8frT3+2TZ1vkjJ Om0FYipaDJs1qNjw5ha7eA1Bx2jwzDnwau4FapCIBJKM/cuL+L/KWcTsLh7QW4wFRDcf A8I0YAgc5CvMjoJtTmKRDkuXZwIrqJVJB4MJe5NGbBltcWMou97kik4aj7PgbpjvaO3T td+LoWz8pHUAbt2PcF4CzibwQufkAsSuQmLck0hi36qk8pHzIMwZKJHPCbTYkDXOmZFO 1Zvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mACWKIf6; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si6936226edr.243.2020.05.18.15.47.42; Mon, 18 May 2020 15:48:04 -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=@linaro.org header.s=google header.b=mACWKIf6; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726985AbgERWn7 (ORCPT + 99 others); Mon, 18 May 2020 18:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbgERWn6 (ORCPT ); Mon, 18 May 2020 18:43:58 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA26C05BD09 for ; Mon, 18 May 2020 15:43:58 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 145so5610601pfw.13 for ; Mon, 18 May 2020 15:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Yqx7fwzdjHJkmgg9PpHSWruK1legOs9tOHB9RxnwbRs=; b=mACWKIf6r3CqCdMcDBn6VjpepgfOd38WJ3opB+zwOCwxfXXdrBEKsrATprGGroAeMp wot++3+d03nJK0ZPSe+gJZuyUoYC3hQ4Z5zmK5de4eRmDwRQmvmHX2BJc/BGWKLPpvpF txm+8RCl4VFZUOqT3ZZr4VTpnCbW04VJfhQ3Lm3z/iRHkFx7eFp6mvCH9JcO46pQHYE/ 8rdPZMVduzbwNmQWSV95602GHTGAunWlY9GxhKRCZ9fap3cJgkyAcVwwVPAmU+Ock3uh vBcYLsSElqLyph0oIep9XjvpkQrsS7xjUIVE+jhf+sa8MScL7Z7/aSb6cVbcnRIcNI1+ 61+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Yqx7fwzdjHJkmgg9PpHSWruK1legOs9tOHB9RxnwbRs=; b=ugJP+uRa+z/iO/SzucE3Hxuddrn68q3rCf3SeVmArTrtnUEr/wTRimy8cCcwnEIfQR Sd/0SnYlxHQl8kckPjQ74P/OtpaAtya7xjbr2zHC4K92SrCZoG343bnwZvI21qTHjPDw uIA422Dy0hVktDulbLw2kBFvcaESbVG0kdy/YUvRMlavQVhNxNLgl4mxedUcTS55TIWK 1PFm8NwE2fxAUIZ8AkT2s3roZfDrmhxgHH1H9i52uAJG9iu2tYy/NalCv6ddbm0j2neK SEIW+gpeRHHCEmgrHjtznAWKS+HIHz19AyT/bW2wbfMhN3Vdq4fKJ+S9XQuuo56xmaFZ kbkA== X-Gm-Message-State: AOAM5327H2AVyGOFnuC8PRiB1jhSwFhpHgu30xa5DfTne57xfViPhytO IJnHpxm1/N8Bum6bXwP3+EWz9Q== X-Received: by 2002:aa7:973b:: with SMTP id k27mr2880419pfg.219.1589841837792; Mon, 18 May 2020 15:43:57 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id c21sm5583248pfo.131.2020.05.18.15.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 15:43:57 -0700 (PDT) Date: Mon, 18 May 2020 15:42:34 -0700 From: Bjorn Andersson To: Vinod Koul Cc: Anders Roxell , Arnd Bergmann , Mathias Nyman , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Yoshihiro Shimoda , Christian Lamparter , John Stultz , Alan Stern , Andreas B?hler , 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: <20200518224234.GK2165@builder.lan> 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: <20200518195719.GG374218@vkoul-mobl.Dlink> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 18 May 12:57 PDT 2020, Vinod Koul wrote: > 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 This correctly captures the variations you describe above. Regards, Bjorn > 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