Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1565634ybt; Thu, 18 Jun 2020 11:38:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx++jhWclAjHTnBvMSR/uwYm0BriPcKvlyq8FrI6qkgX3tvoov551YqcEfZC35M/BzCEpYa X-Received: by 2002:a50:f19d:: with SMTP id x29mr5491810edl.215.1592505504844; Thu, 18 Jun 2020 11:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592505504; cv=none; d=google.com; s=arc-20160816; b=gY0mpDIZDzKYeVUXLXJLTKKpWETNsXeznm3Iw9rLx/lvKtOD7xDXPATsKKEsp0ZtZS 7zWrVcZIJ+vz92Frtb5ES11X9u71X0rJI6PuU5U583trvBJp6W/Jr2o47HbF7qRBR1Ag 5AHfnBCvyy/lOD3RkgVBxIKB40ibk9Cek54dC45zab6R2E3u9nB8FAvo/Akoo4Y0Lsj2 L2miXvlcnNHMHWxPZBZDoGkGd64dQ3XPN/CXoSrATaWcTVdaOv/8vSoUC8PM7IWtGFoX KLwW93/FcYZgoArbUpBKKkEaTnaJEH1EUX83HIMQ0mPNw+Bsmv1dohjLzGEN4H+W16ba Z21Q== 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=aIMuUqJs1tmzFB2+HbtLhR9cJ2vWBiC+B/GO3abxod4=; b=Lcen06NFzH3+W4xmy6iqNLZyD1di4A0LZ49kNKTSeOYNllOEyEfhVlZaHx1+5168zm i1BZDzuhDKUBkIESxmwOa8YLUO6fML710yCQBYFuXKMIb5kpcwOp4BJ66/E3Nxy6Pvlo 9h5lwh4ZxM82HqjVH47VlkCdThwYr6W88PO8iyxvcpg7IJY9mkN7V8+dbKjXOzn2W8fT Z08IdcBsf46m4hPSoahUlP2LGj/TNJRUzLS2o78HvsiIN9YnB/ycsqhFRp26/QRHyOrr JAgkXqMzMG/2PEFZWYFdg+PtrDb5UQbCfLQhh36VtOgNWDGI0qhPH3EhGoOMFW0HDzZG TOVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=slS5eq2e; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si2297706edt.402.2020.06.18.11.38.01; Thu, 18 Jun 2020 11:38: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=@kernel.org header.s=default header.b=slS5eq2e; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731615AbgFRP6c (ORCPT + 99 others); Thu, 18 Jun 2020 11:58:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:59054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729225AbgFRP6b (ORCPT ); Thu, 18 Jun 2020 11:58:31 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 CF90F20732; Thu, 18 Jun 2020 15:58:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592495911; bh=+KZmL52GIm7EihsT05Q49pyQj6KTBxyDgCq04pwK7Sc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=slS5eq2eelDBTkTN+YE2koLjJkA1T4jOn/J3pc6Nhbp+B+9CaSiptkj9cRfkRkQ0X NdxAnrzSCZEjX3M7q5js+8XrRroVek9+HThygE7TBaIK7VwpoTjpNJlP3hlQeV/GT5 GfWM9YsGTi4yBkUvXX3YY7zuWnboCdl/2RtzPwkk= Date: Thu, 18 Jun 2020 17:58:20 +0200 From: Greg Kroah-Hartman To: Matthias Kaehlcke Cc: Sandeep Maheswaram , Andy Gross , Bjorn Andersson , Rob Herring , Mark Rutland , Felipe Balbi , Stephen Boyd , Doug Anderson , rafael@kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Manu Gautam Subject: Re: [PATCH] driver core:Export the symbol device_is_bound Message-ID: <20200618155820.GA3076467@kroah.com> References: <1591123192-565-1-git-send-email-sanm@codeaurora.org> <20200618081443.GA1043700@kroah.com> <20200618154555.GD4525@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200618154555.GD4525@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 08:45:55AM -0700, Matthias Kaehlcke wrote: > Hi Greg, > > On Thu, Jun 18, 2020 at 10:14:43AM +0200, Greg Kroah-Hartman wrote: > > On Wed, Jun 03, 2020 at 12:09:52AM +0530, Sandeep Maheswaram wrote: > > > Export the symbol device_is_bound so that it can be used by the modules. > > > > What modules need this? > > drivers/usb/dwc3/dwc3-qcom.c (and probably other dwc3 'wrappers'). Why wasn't that said here? No context is not good :( > Short summary: QCOM dwc3 support is split in two drivers, the core dwc3 > driver and the QCOM specific parts. dwc3-qcom is probed first (through > a DT entry or ACPI), dwc3_qcom_probe() then calls of_platform_populate() > to probe the core part. After a successful return from _populate() the > driver assumes that the core device is fully initialized. However the > latter is not correct, the driver core doesn't propagate errors from > probe() to platform_populate(). The dwc3-qcom driver would use > device_is_bound() to make sure the core device was probed successfully. why does the dwc3-qcom driver care? And why is the driver split in a way that requires such "broken" structures? Why can't that be fixed instead? thanks, greg k-h