Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1533572pjr; Mon, 18 May 2020 15:42:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymRlcm7zPd002rZl/0AwvSlapydMMmhTZ+M84q7yhkGiS1M4Q96dRm4Wc9DvCohGlklaxc X-Received: by 2002:a50:ec8e:: with SMTP id e14mr5221598edr.105.1589841763516; Mon, 18 May 2020 15:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589841763; cv=none; d=google.com; s=arc-20160816; b=sFXGqzybbSpnmHNXZYTJPybf5Hgx20KgntnT/OKw+Vn/QSoT/KPg9ZxYM5sHdS/wJu ZKtEsaNatmrlqszDepfY+ot9PEQoUTsq/osVGKS9ACEhDTPwvCYP11AId4m1EF8O6Qws WzOMTUZ3QlqlPk3igbe/S/19ZAsg2/XSLb2WU4B6Qgn3mtONxQ5ifYFXHTecP7VsOmdO /nd+Y/oBKCSC6AOECYX5AL5EJer0aZ0Uqb8nonxDVckoPQnRFTWz6N9NzAbd5Q5wc+We 3D3Be0ZoW2bwlmYg8celx0ZkHIS64hzyN8kuhdwgcL9xFppT1yXeKsI6WLPMeHYKvBMy u45w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3YtOhWL2mmndh/B9O7jrraNl2K/LA7+g4gZiQi5QFWM=; b=s4MD3tE2dOTRt6P0PIh1kAJ/5CnKjC87Pr7IElb9sgr1CD0RDpojwdXQQIq09pTi6L gNFhSshlOhc1CcsCzy6jNq97BE6EoHoVSxe0O/HnvBjqEE0Ar+KMKx3j3pTnttbeFARK FP4xiGpAbIK4tGFmVFDBb4/nyiIHtObwoO0Qm8Pr9tYtnTKueYS44jNuXjYtQmYA8lPb uNAyzHepT+bWhg+OPpHXPmcWuLiVpV2Pyo3RBGl0kbyMwPJZCV0+kMnxoswsaOrXy8Rm jDvRiVrkqvurq2+aav9Yg/HJG+8sNn80VX2EV+QRmCmOG2GW3VElNqoxsgtySassTX0t iLLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UIrEiBCK; 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 cn24si6418965edb.340.2020.05.18.15.42.19; Mon, 18 May 2020 15:42: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=@linaro.org header.s=google header.b=UIrEiBCK; 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 S1728223AbgERWiA (ORCPT + 99 others); Mon, 18 May 2020 18:38:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726640AbgERWh7 (ORCPT ); Mon, 18 May 2020 18:37:59 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46496C061A0C for ; Mon, 18 May 2020 15:37:59 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id x27so9394130lfg.9 for ; Mon, 18 May 2020 15:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3YtOhWL2mmndh/B9O7jrraNl2K/LA7+g4gZiQi5QFWM=; b=UIrEiBCKjPEaHs9txQcJ4eYhQI5sBomEmfBF7lM8+4ODX8H7kImazReFdDZPb6jRA8 46zgv7vOXYfK2uUj+LDkTzmLnBI6s/w6LwSrBSF/EGXFeVPktTKh2v1R+HvhZOu59kwj Ms7G1pG73g6eV5WYOi96KodmwBO3O/GtXVg82eTTUv/uoe6isX6pTnC1wfRKc5cSEq/i WM8Fg6Mxh9J6zV+wDO+SlMtpysc0SVTRk1Wu+tftmK8rtq4v33UgfBVfrhw5Y6uhPiJw dkOOTXjjTOFYlmLr8SOU0XBViuKFdYnckxg10s8olqKMGjwzkEvng66SXZIuqCWNRXBz tvvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3YtOhWL2mmndh/B9O7jrraNl2K/LA7+g4gZiQi5QFWM=; b=OtE5AzD9PTvkqNSBZSUI57iIWDxmQ8fq7k66ZC7t8ShrVEFbgasmiJuxJZ5WiSVLGk 7N+5EjsfP5gHTPt8RoO9Iv6CU+M8xDhg6ocIODXD86GXnss8TRJ9LgKMoxt5XXYT26nb ooQLzmSzZaANRPs26FmDgs0HhUekmKlsMEDxUk4t2yAze2jtcGs6lHjT5aGBk4Si+laC H6IJuX453m88oXpCjghlM14gpjGVpV30crGvKyUA5fISmUDljDLPjcRHVnPexasEbwcd Ly+KQALUUpItOPS169Qsf7qLEjWXBV3frKiuHZfSVRTJ5mQNAZmu/ruLV+kPYhUC7z2w LGQg== X-Gm-Message-State: AOAM533RX1inFqM+MJgyCoyBzQ29tKKjo4fkPoGxh91mKT3FFsfqn6/2 EwgW0LO1fECAB1Sjuunwq2K0NYqcrlRCR3OIYdoASg== X-Received: by 2002:a05:6512:1047:: with SMTP id c7mr6310853lfb.12.1589841477683; Mon, 18 May 2020 15:37:57 -0700 (PDT) MIME-Version: 1.0 References: <20200506060025.1535960-1-vkoul@kernel.org> <20200506060025.1535960-4-vkoul@kernel.org> <20200518195719.GG374218@vkoul-mobl.Dlink> In-Reply-To: <20200518195719.GG374218@vkoul-mobl.Dlink> From: Anders Roxell Date: Tue, 19 May 2020 00:37:46 +0200 Message-ID: Subject: Re: [PATCH v13 3/5] usb: xhci: Add support for Renesas controller with memory To: Vinod Koul Cc: Arnd Bergmann , Mathias Nyman , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Yoshihiro Shimoda , Christian Lamparter , John Stultz , Alan Stern , =?UTF-8?Q?Andreas_B=C3=B6hler?= , linux-usb@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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