Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp247555ybk; Thu, 14 May 2020 22:59:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV+a/g+vLpx1H7bVKaRdCLoKUq3jti9EaC5iIPizedNsEp3DVOHYeYmWQtArYDeAwgD7ez X-Received: by 2002:aa7:dcd7:: with SMTP id w23mr1364559edu.300.1589522343365; Thu, 14 May 2020 22:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589522343; cv=none; d=google.com; s=arc-20160816; b=zCAqk0PJWF/a9YI9IRKFhEr6x45IVm9v9gnxTX/phlzhjq7HipVqKnvUl0CjTnCorT oXX0VjG4i+gCYORsp0qv5Kmtf/hlFj9wKE6O2k/RfjesNYo3mu0YYZCCOdTjH7hITk/F cKCKEHajYIx1xoWcekqa5RByAiSR9pwP4FUFMJ4dsbiWnGCZyFuFrvVCmmio4fW5yCBC anfjNoR2bzrj8tteVUdD2RdReFdAkuT6j0SLYLyD8/cMyou2kIIXVemjyokjLV2JqDgO twGnpEbe7N2qtwgmPNRg7rJftdqXzdDk5Bbgdf9ISs6K1mMOLA4BDTqKDPHu1nM+8cOy LoCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=RZ6EyBiNrwZtXyvbzHCxFWgyIztslexb29jI2BW7Kv0=; b=xnJgXvscfWO0dap+SUhfFErMDp/KL+uz6SrfXFo9tsLO6F659CD2sfSHTA/9YVrdeE yrHwcV59QLwynqHwro+JYxfxGyVHec2PqEdxKKFVE0ah/K4wjqfWQhiI5heXAj9hZOqg bXe4frZS4LQ2UzJ/oZmwHv0p1tLsSx2doYXN5HrT2fh0D2L0abr7Qhvjzr5joA2L8BwW /oOgVy+lRx4S79Nh0e1HkAf9sAgcOLrfyHbSajnz9eJUDiuwPdpix8nyrDKo9iYAVZSu U1EZQaYK1u5ztaO3j55nOCheWueHx41Z9HfLu5QP77z0oQ3jIUifL5GXE+8rCLx/IFTd Epyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=J642fWQQ; 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 r13si548153edq.64.2020.05.14.22.58.40; Thu, 14 May 2020 22:59:03 -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=fail header.i=@gmail.com header.s=20161025 header.b=J642fWQQ; 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 S1726407AbgEOFzC (ORCPT + 99 others); Fri, 15 May 2020 01:55:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725899AbgEOFzB (ORCPT ); Fri, 15 May 2020 01:55:01 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 860F6C061A0C; Thu, 14 May 2020 22:54:59 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id e25so895024ljg.5; Thu, 14 May 2020 22:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=RZ6EyBiNrwZtXyvbzHCxFWgyIztslexb29jI2BW7Kv0=; b=J642fWQQ1SNn1dH498G050WOzQk4Vmf5Nxc5W9Iq3SQrLIOkl8GuhWcB2TVAuRRYzH H72A/F6xd9rzl1ii8rFFRY48JXWFREqGhSPRbbDffux5ncAbJak25hm3x7zmPyP/pdTY 0wq+C/dlirs1x+TBcgwdS8IVmkazSiMnJLinvIKL81IXqSoifXm30fW442eCGv9fo4zi NTax+cWKRg9HzYhglJpAyCh0unG4fmsck+oAZIpyqD5GN2zKZZJDc/BQCe8mUSuK9Dqr pRIbyF2eOMn6zjbd96CFnFSoymklXeY+CtsC1uZ1U8r7zzwm2/D7U4nv+fMfaXcgBQe7 QvPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :date:message-id:mime-version; bh=RZ6EyBiNrwZtXyvbzHCxFWgyIztslexb29jI2BW7Kv0=; b=b7D89LfRSOjzGgU9ZUnOtibzKL7zUy6bc/JYWriB3zROLkpn9k1Wg7KVVp4PBIBHMX vuWyqPwt469KpSqn9JIcRCljfv8DeB9PQEHvAxlyD3XlLLD6lSZ6+shzgATjbRLmjRv3 +4/kOte+GpSf4sIZqRPp4+NAcF85o/LY7iz76FFWrYG7JgZPjxlqTuNsmqitD7ufCyVn VTPi0uq54GbfEvDGJdQpAi7A/KsJsi0S2m3gsKfDmQg8BqVbCAYWQrCRYUHR7cREdywC QPhgyFfKGf27+cMLR4gdh3vsZfwdqNfUU4xmtWlDPyTK2dRPA7L5W4ccM0pnAXnmasGr j/2A== X-Gm-Message-State: AOAM530f8b3yEPYkmWa0hxZgB3xs8ze6QhLiUvk8aFqY21AJf2Pg+vYX eyQOwuowWYxZT75nLyDS+No= X-Received: by 2002:a2e:954b:: with SMTP id t11mr1119092ljh.98.1589522097882; Thu, 14 May 2020 22:54:57 -0700 (PDT) Received: from saruman (91-155-214-58.elisa-laajakaista.fi. [91.155.214.58]) by smtp.gmail.com with ESMTPSA id m15sm570156lji.21.2020.05.14.22.54.56 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 May 2020 22:54:56 -0700 (PDT) From: Felipe Balbi To: Georgi Djakov , Matthias Kaehlcke Cc: Sandeep Maheswaram , Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Stephen Boyd , Doug Anderson , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manu Gautam , Chandana Kishori Chiluveru , Viresh Kumar Subject: Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver In-Reply-To: References: <1585718145-29537-1-git-send-email-sanm@codeaurora.org> <1585718145-29537-3-git-send-email-sanm@codeaurora.org> <878shu4uwk.fsf@kernel.org> <875zcy4uuj.fsf@kernel.org> <20200514171352.GP4525@google.com> Date: Fri, 15 May 2020 08:54:52 +0300 Message-ID: <87tv0h3fpv.fsf@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Georgi Djakov writes: > On 5/14/20 20:13, Matthias Kaehlcke wrote: >> On Thu, May 14, 2020 at 02:30:28PM +0300, Felipe Balbi wrote: >>> Felipe Balbi writes: >>> >>>> Hi, >>>> >>>> Sandeep Maheswaram writes: >>>>> +static int dwc3_qcom_interconnect_init(struct dwc3_qcom *qcom) >>>>> +{ >>>>> + struct device *dev =3D qcom->dev; >>>>> + int ret; >>>>> + >>>>> + if (!device_is_bound(&qcom->dwc3->dev)) >>>>> + return -EPROBE_DEFER; >>>> >>>> this breaks allmodconfig. I'm dropping this series from my queue for >>>> this merge window. >>> >>> Sorry, I meant this patch ;-) >>=20 >> I guess that's due to INTERCONNECT being a module. There is currently a > > I believe it's because of this: > ERROR: modpost: "device_is_bound" [drivers/usb/dwc3/dwc3-qcom.ko] undefin= ed! > >> discussion about this with Viresh and Georgi in response to another >> automated build failure. Viresh suggests changing CONFIG_INTERCONNECT >> from tristate to bool, which seems sensible to me given that interconnect >> is a core subsystem. > > The problem you are talking about would arise when INTERCONNECT=3Dm and > USB_DWC3_QCOM=3Dy and it definitely exists here and could be triggered wi= th > randconfig build. So i suggest to squash also the diff below. > > Thanks, > Georgi > > ---8<--- > diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig > index 206caa0ea1c6..6661788b1a76 100644 > --- a/drivers/usb/dwc3/Kconfig > +++ b/drivers/usb/dwc3/Kconfig > @@ -129,6 +129,7 @@ config USB_DWC3_QCOM > tristate "Qualcomm Platform" > depends on ARCH_QCOM || COMPILE_TEST > depends on EXTCON || !EXTCON > + depends on INTERCONNECT || !INTERCONNECT I would prefer to see a patch adding EXPORT_SYMBOL_GPL() to device_is_bound= () =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAl6+LqwACgkQzL64meEa mQZBeg//fCQv3kTlgIEG58i2znWQ4FsluvuUsxpT6c2Pvumr98MxZU6KQYo+914F 8anWhvq67+Nn52KaibXXnbff7jcc1wY6o/soN8EKEhVtGLJZ2K5o0YJJsj71gvf6 Ktphgmj6UDlkYa+dJdITSSKIxAFqPfwVBiC59RqA1TCKqZsVMiEfPXgmxVyxzML0 aNIcN8BEB994PM0N0nNfDCw01auhVyzkffeEywCrSRbQ/AigPGxr8KaN0hg1suLJ 1XQ6X+texaRV1Z/Mu5ivIQs76oumM15LHCHOCP3+bNH7ShQdCXoDcAJYR3IYcDQX gSZjGAevnOEaNo9wAS2MgmZ32DnoWadekMxBICmORFlcdDjWspdqCQylUqvsyjX8 dNZcqqv5vFCVJX2vJ5wfeH16PemC+ex0GW6zI6Q1DzsjOIipJg6RsGLyVzT6JPbU F2r+EAqCSGute04Ne2lYiCwTvdIKNj+Xudm2YxDKGeSMlj+jYboGmJMuk83Ebogf B7MaoCWhXOlcfBrUL+9qdp9N5hBU26kGwmuoNXahnpxgKZGQUGZUmC4c6ko7YksJ of+dSkLvbvyP71CrJAgiKyr8pBQbPgim/wxIBDxtQDZKQ9pwUx86Y/cWJT6lPSvZ NkiXDlO/gQoq2jnPSstmuQUa8gnoCdylvsrreuAaAY/UuXimiP4= =oYkY -----END PGP SIGNATURE----- --=-=-=--