Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp256011ybk; Thu, 14 May 2020 23:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaMjsQvtNi9eRhqiO5BA1KVi8oJPUeVRHM6qMXsuNSK1262u2qv/Emb4bvPw/XGklLdvxj X-Received: by 2002:a50:8165:: with SMTP id 92mr1351587edc.263.1589523264235; Thu, 14 May 2020 23:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589523264; cv=none; d=google.com; s=arc-20160816; b=qfqFjC5dqTt5PpguQuCNxqnkb5+eMzfAtJmDHeATegRNkWQ0klC4bfEsf6VDo/vtCa /QbSGP6DRQ3lbOZA8qFGoHg/u3QKjVOqSuZuoBcGvkT6nohgjPDr7LP/5MLBFrb6X2yb rz8IUqGTKz8mdUIoPjvQn1BQT/3UVK26lD05TlrhJ2/XjipVOSCUuqjeS5OqqrGc9AF9 9Zx7XjjCyNQmmPyF2A85bMy/Xeml5ZgiKYaRitjEvfNvDQvfRQC3LDzdKiFpAXDunWTL oXXurzjuyfz0ykqe+ROM5tivh47NlMhuFkK8xTC1T7ufNLEbSLZkkSZL4c5UQcK5kA6w BWIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature; bh=wy7SkokOXED+zXcabkbOGd6dTUOIU/PqPk33gv8HT6A=; b=0gVvn3xNjIADfdFH9OJwGYHR/8TzHGFlwUxyVhKh+g/L0fJikiTlzLqfQfl3T7lgGy SmV6Jtcsc6KMlbCykcsr5UxTZ7ZbJ5Tu6sbe5Nj6D11SWwQ4G0rzy+FG4hcqbPUOrKgz FGFasj82ianmyQeqvOa+H91Puk5srQH0Axj02ANdu475K6DxMEbQkqUJFL3Gr5vY0g5u 9eWLUba4GjzN0pg3xbahE02ruqLjndqypuaZrAMPPmJAYq1y8p2OyLA4NG7SuY0zUHmn KPFl11YHR3XQQoBJvDmyDxdWM6bqm1w13o5JklH4WsvQrKpi2/T69Z2YfUbaGE548EyG rapQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bNkj+QVD; 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 y89si665205edy.357.2020.05.14.23.14.00; Thu, 14 May 2020 23:14:24 -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=bNkj+QVD; 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 S1726496AbgEOGLb (ORCPT + 99 others); Fri, 15 May 2020 02:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726172AbgEOGLa (ORCPT ); Fri, 15 May 2020 02:11:30 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10A4DC061A0C for ; Thu, 14 May 2020 23:11:30 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id y16so2075639wrs.3 for ; Thu, 14 May 2020 23:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wy7SkokOXED+zXcabkbOGd6dTUOIU/PqPk33gv8HT6A=; b=bNkj+QVDqvnrHB4NVRawww5FGe7Rle4UtDMpXdakjkRpOOhlDFhy9XxX6dGU9GO3oI CFu0WQEt27jk6xPzzpDDtCHRSCodcVGgCJCstFl3T8++1GrYf1T+AQzMzIn7gESQQlN8 tj5RrKLQyPciUOJD9ZDgbW3BwCc2ujLGLcYRAuAMsTOX/MNjJf4rt0tLvUFG+2qxMaB7 7E3SgGzrWWcyBQ4k46/0MMYYC6uZYp5yAj3qKa4S3tH3KBw1gIYiLIkXXgoWf699M8i0 98ULWYCc1L2pfdCHig7SksJFFi6dtc+1yviIoj5o1nImlXVIrHjzz5QW8iZkvlTyDt1d 93cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wy7SkokOXED+zXcabkbOGd6dTUOIU/PqPk33gv8HT6A=; b=h+exQX6v8WVUuxgR99QAwqczMCHp03NL/7V5El9LTtC528YK2uGhSxPMpmq/zA2vFM W5RKIsAPgFvEysp5EtZzirYFUQr4FLGiB4OKPk82EB1rX9KQndZdD4iH+lddKFkpmxMr HhVjSAsxtbMugoAygVYjfeWPeNiFKdOpvgL86LPJEox4I9YyiXh6IxPPvcs5iZtuvttO 3Ej+Ln/pq6Oqyh9hGCW24OhakeENvHSs67wdSQ3GXIJOjNl/SvWIvcnauUKIRMDlK9+v m+8bot637dwfdkQPaZwjUebbAw7qNj4NOR/3HiiJkfVS9j+2KxCrzT13tcb6+uqmrk7B 3zNA== X-Gm-Message-State: AOAM530dIUR/Umzx/YVnRIN4a041c6dPD+s6DBbWoPdLCmQZ4PQVEcov eMd7W/IISG0lYbcNKGzQDLifG9H/QlE= X-Received: by 2002:a5d:5710:: with SMTP id a16mr2227668wrv.209.1589523088522; Thu, 14 May 2020 23:11:28 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id d126sm2150965wmd.32.2020.05.14.23.11.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 May 2020 23:11:27 -0700 (PDT) Subject: Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver To: Felipe Balbi , 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 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> <87tv0h3fpv.fsf@kernel.org> From: Georgi Djakov Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= mQINBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk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gHK4GqGCFK76bFrHQYgiBOrcR4GDklj4Gk9osIfdXIAkBvRGw8zg1zzUYwMYk+A6v40gBn00 OOB13qJe9zyKpReWMAhg7BYPBKIm/qSr82aIQc4+FlDX2Ot6T/4tGUDr9MAHaBKFtVyIqXBO xOf0vQEokkUGRKWBE0uA3zFVRfLiT6NUjDQ0vdphTnsdA7h01MliZLQ2lLL2Mt5lsqU+6sup Tfql1omgEpjnFsPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <090e48d7-7988-eea1-bf39-f6820578d354@linaro.org> Date: Fri, 15 May 2020 09:11:18 +0300 MIME-Version: 1.0 In-Reply-To: <87tv0h3fpv.fsf@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 5/15/20 08:54, Felipe Balbi wrote: > > 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 = 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 ;-) >>> >>> 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] undefined! >> >>> 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=m and >> USB_DWC3_QCOM=y and it definitely exists here and could be triggered with >> 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() Agree, but just to clarify, that these are two separate issues that need to be fixed. The device_is_bound() is the first one and USB_DWC3_QCOM=y combined with INTERCONNECT=m is the second one. Thanks, Georgi